Instructions to use georgefen/Face-Landmark-ControlNet with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use georgefen/Face-Landmark-ControlNet with Diffusers:
pip install -U diffusers transformers accelerate
from diffusers import ControlNetModel, StableDiffusionControlNetPipeline controlnet = ControlNetModel.from_pretrained("georgefen/Face-Landmark-ControlNet") pipe = StableDiffusionControlNetPipeline.from_pretrained( "fill-in-base-model", controlnet=controlnet ) - Notebooks
- Google Colab
- Kaggle
Download share.py from georgefen/Face-Landmark-ControlNet: direct link, hf CLI and curl.
- Browser
- Download file 155 Bytes
-
https://huggingface.co/georgefen/Face-Landmark-ControlNet/resolve/main/share.py
- Command line
-
hf download hf://georgefen/Face-Landmark-ControlNet/share.py
-
curl -L -o share.py https://huggingface.co/georgefen/Face-Landmark-ControlNet/resolve/main/share.py
155 Bytes
| import config | |
| from cldm.hack import disable_verbosity, enable_sliced_attention | |
| disable_verbosity() | |
| if config.save_memory: | |
| enable_sliced_attention() | |