Jannchie / ComfyUI-J

Jannchie's ComfyUI custom nodes.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The size of tensors not matching

ItsDyze opened this issue · comments

commented

When trying to remove a "scarf" from Kakashi's face, I get the following error.

`
Error occurred when executing DiffusersGenerator:

The size of tensor a (562) must match the size of tensor b (560) at non-singleton dimension 2

File "G:\ComfyUI\ComfyUI\execution.py", line 151, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "G:\ComfyUI\ComfyUI\execution.py", line 81, in get_output_data
return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "G:\ComfyUI\ComfyUI\execution.py", line 74, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "G:\ComfyUI\ComfyUI\custom_nodes\ComfyUI-J_init_.py", line 718, in run
result = pipeline(
^^^^^^^^^
File "G:\ComfyUI\python_embeded\Lib\site-packages\torch\utils_contextlib.py", line 115, in decorate_context
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "G:\ComfyUI\ComfyUI\custom_nodes\ComfyUI-J\pipelines\jannchie.py", line 452, in call
masked_image = init_image * (mask_condition < 0.5)
`

Input image

Related to a similar comment on civitai

Thank you for providing an input image and I will check it tomorrow

I've fixed this and it should now handle masks correctly in some resolutions.
Feel free to reopen this issue if you still have problems.