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 ldm/modules/image_degradation/__init__.py from georgefen/Face-Landmark-ControlNet: direct link, hf CLI and curl.
- Browser
- Download file 208 Bytes
-
https://huggingface.co/georgefen/Face-Landmark-ControlNet/resolve/main/ldm/modules/image_degradation/__init__.py
- Command line
-
hf download hf://georgefen/Face-Landmark-ControlNet/ldm/modules/image_degradation/__init__.py
-
curl -L -o __init__.py https://huggingface.co/georgefen/Face-Landmark-ControlNet/resolve/main/ldm/modules/image_degradation/__init__.py
208 Bytes
| from ldm.modules.image_degradation.bsrgan import degradation_bsrgan_variant as degradation_fn_bsr | |
| from ldm.modules.image_degradation.bsrgan_light import degradation_bsrgan_variant as degradation_fn_bsr_light | |