xinsir commited on
Commit
f4e80ce
1 Parent(s): af8f42d

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -1
README.md CHANGED
@@ -137,7 +137,8 @@ if random.random() > 0.5:
137
  # The detail about hed detect you can refer to https://github.com/lllyasviel/ControlNet/blob/main/gradio_fake_scribble2image.py
138
  # Below is a example using diffusers HED detector
139
 
140
- image_path = Image.open("your image path, the image can be real or anime, HED detector will extract its edge boundery")
 
141
  processor = HEDdetector.from_pretrained('lllyasviel/Annotators')
142
  controlnet_img = processor(image_path, scribble=False)
143
  controlnet_img.save("a hed detect path for an image")
 
137
  # The detail about hed detect you can refer to https://github.com/lllyasviel/ControlNet/blob/main/gradio_fake_scribble2image.py
138
  # Below is a example using diffusers HED detector
139
 
140
+ # image_path = Image.open("your image path, the image can be real or anime, HED detector will extract its edge boundery")
141
+ image_path = cv2.imread("your image path, the image can be real or anime, HED detector will extract its edge boundery")
142
  processor = HEDdetector.from_pretrained('lllyasviel/Annotators')
143
  controlnet_img = processor(image_path, scribble=False)
144
  controlnet_img.save("a hed detect path for an image")