patrickvonplaten
commited on
Commit
·
6e9d172
1
Parent(s):
5e31529
Update README.md
Browse files
README.md
CHANGED
@@ -91,10 +91,12 @@ from PIL import Image
|
|
91 |
from diffusers import StableDiffusionControlNetPipeline, ControlNetModel, UniPCMultistepScheduler
|
92 |
import torch
|
93 |
from controlnet_aux import HEDdetector
|
|
|
94 |
|
95 |
hed = HEDdetector.from_pretrained('lllyasviel/ControlNet')
|
96 |
|
97 |
-
image =
|
|
|
98 |
|
99 |
image = hed(image)
|
100 |
|
|
|
91 |
from diffusers import StableDiffusionControlNetPipeline, ControlNetModel, UniPCMultistepScheduler
|
92 |
import torch
|
93 |
from controlnet_aux import HEDdetector
|
94 |
+
from diffusers.utils import load_image
|
95 |
|
96 |
hed = HEDdetector.from_pretrained('lllyasviel/ControlNet')
|
97 |
|
98 |
+
image = load_image("https://huggingface.co/lllyasviel/sd-controlnet-hed/resolve/main/images/man.png")
|
99 |
+
|
100 |
|
101 |
image = hed(image)
|
102 |
|