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 ·
ba11d1c
1
Parent(s): ae28bfd
Update README.md
Browse files
README.md
CHANGED
|
@@ -92,10 +92,11 @@ from PIL import Image
|
|
| 92 |
from diffusers import StableDiffusionControlNetPipeline, ControlNetModel, UniPCMultistepScheduler
|
| 93 |
import torch
|
| 94 |
from controlnet_aux import HEDdetector
|
|
|
|
| 95 |
|
| 96 |
hed = HEDdetector.from_pretrained('lllyasviel/ControlNet')
|
| 97 |
|
| 98 |
-
image =
|
| 99 |
|
| 100 |
image = hed(image, scribble=True)
|
| 101 |
|
|
|
|
| 92 |
from diffusers import StableDiffusionControlNetPipeline, ControlNetModel, UniPCMultistepScheduler
|
| 93 |
import torch
|
| 94 |
from controlnet_aux import HEDdetector
|
| 95 |
+
from diffusers.utils import load_image
|
| 96 |
|
| 97 |
hed = HEDdetector.from_pretrained('lllyasviel/ControlNet')
|
| 98 |
|
| 99 |
+
image = load_image("https://huggingface.co/lllyasviel/sd-controlnet-scribble/resolve/main/images/bag.png")
|
| 100 |
|
| 101 |
image = hed(image, scribble=True)
|
| 102 |
|