Instructions to use ControlNet-1-1-preview/control_v11p_sd15_lineart with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use ControlNet-1-1-preview/control_v11p_sd15_lineart with Diffusers:
pip install -U diffusers transformers accelerate
from diffusers import ControlNetModel, StableDiffusionControlNetPipeline controlnet = ControlNetModel.from_pretrained("ControlNet-1-1-preview/control_v11p_sd15_lineart") pipe = StableDiffusionControlNetPipeline.from_pretrained( "runwayml/stable-diffusion-v1-5", controlnet=controlnet ) - Notebooks
- Google Colab
- Kaggle
Download images/control.png from ControlNet-1-1-preview/control_v11p_sd15_lineart: direct link, hf CLI and curl.
- Browser
- Download file 266 kB
-
https://huggingface.co/ControlNet-1-1-preview/control_v11p_sd15_lineart/resolve/main/images/control.png
- Command line
-
hf download hf://ControlNet-1-1-preview/control_v11p_sd15_lineart/images/control.png
-
curl -L -o control.png https://huggingface.co/ControlNet-1-1-preview/control_v11p_sd15_lineart/resolve/main/images/control.png
266 kB
