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