frankchieng / ComfyUI_MagicClothing

unofficial implementation of Comfyui magic clothing
Other
425 stars 37 forks source link

image and image_mask must have the same image size #33

Open jonan10075 opened 2 months ago

jonan10075 commented 2 months ago

hello very good, someone has the solution to this problem, I have porbado to change sizes, and formats of the photos, I have tried with various resolutions but always gives me the same error by the way I have the models oms_diffusion_inpaint_100000_notext. safetensors and oms_diffusion_768_200000.safetensors in the directory: (E:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_MagicClothing\checkpoints\early_access):

Error occurred when executing MagicClothing_Inpainting:

image and image_mask must have the same image size

File "E:\ComfyUI_windows_portable\ComfyUI\execution.py", line 151, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\ComfyUI_windows_portable\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 "E:\ComfyUI_windows_portable\ComfyUI\execution.py", line 74, in map_node_over_list results.append(getattr(obj, func)(**slice_dict(input_data_all, i))) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_MagicClothing\nodes.py", line 101, in cloth_inpainting control_img = make_inpaint_condition(person_image,person_mask) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_MagicClothing\nodes.py", line 41, in make_inpaint_condition assert image.shape[0:1] == image_mask.shape[0:1], "image and image_mask must have the same image size" ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

aimarxjg commented 2 months ago

A necessary early IPA style transfer is the requirement that all reference and generation diagrams be the same size

helen123asd commented 1 month ago

I have the same problem, how do I fix it

Hatewinter commented 2 weeks ago

I'm having the same issue, looking at the error message, "File "F:ComfyUI_windows_portableComfyUIcustom_nodesComfyUI_MagicClothingnodes.py", line 101, in cloth_inpainting control_img = make_inpaint_condition(person_image,person_mask)"。 the size of the person image does not match the size of the person mask, and the error is that the person image does not have a mask. Right-click on the person image, open in mask edit, draw the mask, save it, and run it again .

superkentchatgpt commented 1 week ago

same problem,no way to fix,it seams like a bug !