mirror of
https://github.com/lllyasviel/stable-diffusion-webui-forge.git
synced 2026-04-30 03:01:15 +00:00
Update sd_forge_controlnet_example.py
This commit is contained in:
@@ -69,7 +69,7 @@ class ControlNetExampleForge(scripts.Script):
|
|||||||
height = H * 8
|
height = H * 8
|
||||||
width = W * 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)
|
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.
|
# Output preprocessor result. Now called every sampling. Cache in your own way.
|
||||||
|
|||||||
Reference in New Issue
Block a user