Update sd_forge_controlnet_example.py

This commit is contained in:
lllyasviel
2024-01-27 22:51:00 -08:00
parent d04765cf3d
commit 449d542a3a

View File

@@ -69,7 +69,7 @@ class ControlNetExampleForge(scripts.Script):
height = H * 8
width = W * 8
input_image = cv2.resize(input_image, (height, width))
input_image = cv2.resize(input_image, (width, height))
canny_image = cv2.cvtColor(cv2.Canny(input_image, 100, 200), cv2.COLOR_GRAY2RGB)
# Output preprocessor result. Now called every sampling. Cache in your own way.