TheMistoAI/MistoControlNet-Flux-dev

error with non square image

Closed this issue · 1 comments

Error occurred when executing KSamplerTheMisto:

The size of tensor a (6360) must match the size of tensor b (6420) at non-singleton dimension 1

File "/content/drive/MyDrive/ComfyUI/execution.py", line 317, in execute
output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
File "/content/drive/MyDrive/ComfyUI/execution.py", line 192, in get_output_data
return_values = _map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
File "/content/drive/MyDrive/ComfyUI/execution.py", line 169, in _map_node_over_list
process_inputs(input_dict, i)
File "/content/drive/MyDrive/ComfyUI/execution.py", line 158, in process_inputs
results.append(getattr(obj, func)(**inputs))
File "/content/drive/MyDrive/ComfyUI/custom_nodes/MistoControlNet-Flux-dev/nodes.py", line 192, in sampling
x = denoise_controlnet(
File "/content/drive/MyDrive/ComfyUI/custom_nodes/MistoControlNet-Flux-dev/modules/utils.py", line 419, in denoise_controlnet
block_res_samples, single_block_res_samples = controlnet(
File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 1518, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 1527, in _call_impl
return forward_call(*args, **kwargs)
File "/content/drive/MyDrive/ComfyUI/custom_nodes/MistoControlNet-Flux-dev/modules/misto_controlnet.py", line 211, in forward
img = img + controlnet_cond

use git pull to upgrade this repo can fixed this.