patrickvonplaten commited on
Commit
8792715
1 Parent(s): 2113ebf

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -1
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 = Image.open('images/room.png')
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