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

Error occurred when executing MagicClothing_Generate: #40

Open
osmania101 opened this issue May 5, 2024 · 4 comments
Open

Error occurred when executing MagicClothing_Generate: #40

osmania101 opened this issue May 5, 2024 · 4 comments

Comments

@osmania101
Copy link

Error occurred when executing MagicClothing_Generate:

'str' object cannot be interpreted as an integer

File "C:\Users\bashi\ComfyUI_windows_portable\ComfyUI\execution.py", line 151, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\bashi\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 "C:\Users\bashi\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 "C:\Users\bashi\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_MagicClothing\nodes.py", line 301, in garment_generation
images, cloth_mask_image = full_net.generate(cloth_image, cloth_mask_image, prompt, a_prompt, num_samples, n_prompt, seed, scale, cloth_guidance_scale, sample_steps, height, width)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\bashi\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_MagicClothing\garment_adapter\garment_diffusion.py", line 72, in generate
cloth = prepare_image(cloth_image, height, width)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\bashi\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_MagicClothing\utils\utils.py", line 33, in prepare_image
image = [i.resize((width, height), resample=PIL.Image.LANCZOS) for i in image]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\bashi\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_MagicClothing\utils\utils.py", line 33, in
image = [i.resize((width, height), resample=PIL.Image.LANCZOS) for i in image]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\bashi\ComfyUI_windows_portable\python_embeded\Lib\site-packages\PIL\Image.py", line 2193, in resize
return self._new(self.im.resize(size, resample, box))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

@osmania101
Copy link
Author

problem solved. Delete the node Human Garment generation and search Human Garment generation. Replace with the updated node. The workflow has outdated one.

@yzswk
Copy link

yzswk commented May 11, 2024

I also have the same question, where can I install nodes?

@kkde73
Copy link

kkde73 commented Jun 2, 2024

problem solved. Delete the node Human Garment generation and search Human Garment generation. Replace with the updated node. The workflow has outdated one.

I encountered the same issue even though I'm using the latest version.

Error occurred when executing MagicClothing_Generate:

'str' object cannot be interpreted as an integer

@Janson2
Copy link

Janson2 commented Jun 16, 2024

把这个几个数值的参数看一下,可能存在数值bu'g不规范,可能有的应该输入数字,上面确实字母

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

4 participants