Instructions to use lllyasviel/sd-controlnet-scribble with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use lllyasviel/sd-controlnet-scribble with Diffusers:
pip install -U diffusers transformers accelerate
from diffusers import ControlNetModel, StableDiffusionControlNetPipeline controlnet = ControlNetModel.from_pretrained("lllyasviel/sd-controlnet-scribble") pipe = StableDiffusionControlNetPipeline.from_pretrained( "runwayml/stable-diffusion-v1-5", controlnet=controlnet ) - Notebooks
- Google Colab
- Kaggle
Commit ·
8a4efb8
1
Parent(s): 4a4b210
Update README.md
Browse files
README.md
CHANGED
|
@@ -101,7 +101,7 @@ image = load_image("https://huggingface.co/lllyasviel/sd-controlnet-scribble/res
|
|
| 101 |
image = hed(image, scribble=True)
|
| 102 |
|
| 103 |
controlnet = ControlNetModel.from_pretrained(
|
| 104 |
-
"
|
| 105 |
)
|
| 106 |
|
| 107 |
pipe = StableDiffusionControlNetPipeline.from_pretrained(
|
|
|
|
| 101 |
image = hed(image, scribble=True)
|
| 102 |
|
| 103 |
controlnet = ControlNetModel.from_pretrained(
|
| 104 |
+
"lllyasviel/sd-controlnet-scribble", torch_dtype=torch.float16
|
| 105 |
)
|
| 106 |
|
| 107 |
pipe = StableDiffusionControlNetPipeline.from_pretrained(
|