Spaces:
Building
on
A10G
Building
on
A10G
Update diffusion_webui/diffusion_models/controlnet/controlnet_inpaint/controlnet_inpaint_app.py
Browse files
diffusion_webui/diffusion_models/controlnet/controlnet_inpaint/controlnet_inpaint_app.py
CHANGED
@@ -26,7 +26,7 @@ class StableDiffusionControlInpaintNetCannyGenerator:
|
|
26 |
self,
|
27 |
image_path: str,
|
28 |
):
|
29 |
-
image =
|
30 |
image = np.array(image)
|
31 |
|
32 |
image = cv2.Canny(image, 100, 200)
|
|
|
26 |
self,
|
27 |
image_path: str,
|
28 |
):
|
29 |
+
image = image_path["image"].convert("RGB").resize((512, 512))
|
30 |
image = np.array(image)
|
31 |
|
32 |
image = cv2.Canny(image, 100, 200)
|