Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ControlNet Combine Canny & IP-Adapter issue #3046

Open
4garfield opened this issue Sep 9, 2024 · 0 comments
Open

ControlNet Combine Canny & IP-Adapter issue #3046

4garfield opened this issue Sep 9, 2024 · 0 comments

Comments

@4garfield
Copy link

I'm following the guide to combine use Canny & IP-Adapter: https://stable-diffusion-art.com/change-clothes-ai/#ControlNet_IP-adapter

The original image, mask image, control image are using same sie: 512*512

But facing the below issue, do you know the root cause ?

PC: Apple M2 Pro

2024-09-10 00:17:04,035 - ControlNet - INFO - unit_separate = False, style_align = False
2024-09-10 00:17:04,035 - ControlNet - INFO - Loading model from cache: control_v11p_sd15_canny [d14c016b]
2024-09-10 00:17:04,036 - ControlNet - INFO - Using preprocessor: canny
2024-09-10 00:17:04,036 - ControlNet - INFO - preprocessor resolution = 512
2024-09-10 00:17:04,088 - ControlNet - INFO - Loading model from cache: ip-adapter_sd15_plus [32cd8f7f]
2024-09-10 00:17:04,088 - ControlNet - INFO - using mask
*** Error running process: /stable-diffusion/stable-diffusion-webui/extensions/sd-webui-controlnet/scripts/controlnet.py
    Traceback (most recent call last):
      File "/stable-diffusion/stable-diffusion-webui/modules/scripts.py", line 832, in process
        script.process(p, *script_args)
      File "/stable-diffusion/stable-diffusion-webui/extensions/sd-webui-controlnet/scripts/controlnet.py", line 1247, in process
        self.controlnet_hack(p)
      File "/stable-diffusion/stable-diffusion-webui/extensions/sd-webui-controlnet/scripts/controlnet.py", line 1232, in controlnet_hack
        self.controlnet_main_entry(p)
      File "/stable-diffusion/stable-diffusion-webui/extensions/sd-webui-controlnet/scripts/controlnet.py", line 982, in controlnet_main_entry
        controls, hr_controls, additional_maps = get_control(
      File "/stable-diffusion/stable-diffusion-webui/extensions/sd-webui-controlnet/scripts/controlnet.py", line 233, in get_control
        input_image, resize_mode = Script.choose_input_image(p, unit, idx)
      File "/stable-diffusion/stable-diffusion-webui/extensions/sd-webui-controlnet/scripts/controlnet.py", line 756, in choose_input_image
        input_image = np.concatenate([color, alpha], axis=2)
    ValueError: all the input array dimensions except for the concatenation axis must match exactly, but along dimension 0, the array at index 0 has size 512 and the array at index 1 has size 150
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant