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 |
|