patrickvonplaten commited on
Commit
98b703d
1 Parent(s): 0671e6f

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -1
README.md CHANGED
@@ -86,8 +86,9 @@ import numpy as np
86
  import cv2
87
  from diffusers import StableDiffusionControlNetPipeline, ControlNetModel, UniPCMultistepScheduler
88
  import torch
 
89
 
90
- image = Image.open("images/toy.png").convert("RGB")
91
 
92
  depth_estimator = pipeline("depth-estimation", model ="Intel/dpt-hybrid-midas" )
93
 
 
86
  import cv2
87
  from diffusers import StableDiffusionControlNetPipeline, ControlNetModel, UniPCMultistepScheduler
88
  import torch
89
+ from diffusers.utils import load_image
90
 
91
+ image = load_image("https://huggingface.co/lllyasviel/sd-controlnet-normal/resolve/main/images/toy.png").convert("RGB")
92
 
93
  depth_estimator = pipeline("depth-estimation", model ="Intel/dpt-hybrid-midas" )
94