how to deal with this wrong

#5
by imeuan - opened

Error occurred when executing MagicClothing_Generate:

'str' object cannot be interpreted as an integer

File "G:\BaiduNetdiskDownload\ComfyUI_FK_202406\ComfyUI\execution.py", line 151, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "G:\BaiduNetdiskDownload\ComfyUI_FK_202406\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:\BaiduNetdiskDownload\ComfyUI_FK_202406\ComfyUI\execution.py", line 74, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "G:\BaiduNetdiskDownload\ComfyUI_FK_202406\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 "G:\BaiduNetdiskDownload\ComfyUI_FK_202406\ComfyUI\custom_nodes\ComfyUI_MagicClothing\garment_adapter\garment_diffusion.py", line 72, in generate
cloth = prepare_image(cloth_image, height, width)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "G:\BaiduNetdiskDownload\ComfyUI_FK_202406\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 "G:\BaiduNetdiskDownload\ComfyUI_FK_202406\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 "G:\BaiduNetdiskDownload\ComfyUI_FK_202406\python_embeded\Lib\site-packages\PIL\Image.py", line 2328, in resize
return self._new(self.im.resize(size, resample, box))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Sign up or log in to comment