patrickvonplaten
commited on
Commit
•
8792715
1
Parent(s):
2113ebf
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 MLSDdetector
|
|
|
95 |
|
96 |
mlsd = MLSDdetector.from_pretrained('lllyasviel/ControlNet')
|
97 |
|
98 |
-
image =
|
99 |
|
100 |
image = mlsd(image)
|
101 |
|
|
|
92 |
from diffusers import StableDiffusionControlNetPipeline, ControlNetModel, UniPCMultistepScheduler
|
93 |
import torch
|
94 |
from controlnet_aux import MLSDdetector
|
95 |
+
from diffusers.utils import load_image
|
96 |
|
97 |
mlsd = MLSDdetector.from_pretrained('lllyasviel/ControlNet')
|
98 |
|
99 |
+
image = load_image("https://huggingface.co/lllyasviel/sd-controlnet-mlsd/resolve/main/images/room.png")
|
100 |
|
101 |
image = mlsd(image)
|
102 |
|