Update README.md
Browse files
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")
|