frankchieng / ComfyUI_MagicClothing

unofficial implementation of Comfyui magic clothing
Other
508 stars 44 forks source link

Error occurred when executing MagicClothing_Generate: expected str, bytes or os.PathLike object, not NoneType #38

Open AB00k opened 6 months ago

AB00k commented 6 months ago

I'm having this error from past couple of days and I have tired out everything I could but still it's not resolved, I'm using colab and bellow is the colab notebook I have created please have a look and let me know if there is anything I could be doing wrong.

https://colab.research.google.com/drive/1GfG1JavtzZsRpugXrUJZ5vNInhS3wlKB?usp=sharing

AB00k commented 6 months ago

Here's the complete error

Error occurred when executing MagicClothing_Generate:

expected str, bytes or os.PathLike object, not NoneType

File "/content/ComfyUI/execution.py", line 151, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) File "/content/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 "/content/ComfyUI/execution.py", line 74, in map_node_over_list results.append(getattr(obj, func)(**slice_dict(input_data_all, i))) File "/content/ComfyUI/custom_nodes/ComfyUI_MagicClothing/nodes.py", line 215, in garment_generation ip_model = IPAdapterFaceID(pipe, folder_paths.get_full_path("magic_cloth_checkpoint", model_path), ip_ckpt, device, enable_cloth_guidance) File "/content/ComfyUI/custom_nodes/ComfyUI_MagicClothing/garment_adapter/garment_ipadapter_faceid.py", line 134, in init self.load_ip_adapter() File "/content/ComfyUI/custom_nodes/ComfyUI_MagicClothing/garment_adapter/garment_ipadapter_faceid.py", line 198, in load_ip_adapter if os.path.splitext(self.ip_ckpt)[-1] == ".safetensors": File "/usr/lib/python3.10/posixpath.py", line 118, in splitext p = os.fspath(p)

xpluscal commented 6 months ago

This usually means that you have not downloaded the ipadapter lora or bin.

AB00k commented 6 months ago

@xpluscal I do have downloaded all the models and placed them according to the following structure. ComfyUI |-- models | |-- ipadapter | | |-- ip-adapter-faceid-plus_sd15.bin | | |-- ip-adapter-faceid-plusv2_sd15.bin | | |-- ip-adapter-faceid_sd15.bin | |-- loras | | |-- ip-adapter-faceid-plus_sd15_lora.safetensors | | |-- ip-adapter-faceid-plusv2_sd15_lora.safetensors | | |-- ip-adapter-faceid_sd15_lora.safetensors |-- custom_nodes | |-- ComfyUI_MagicClothing | | |-- checkpoints | | | |-- cloth_segm.pth | | | |-- magic_clothing_768_vitonhd_joint.safetensors | | | |-- OMS_1024_VTHD+DressCode_200000.safetensors | | | |-- stable_ckpt | | | | |-- garment_extractor.safetensors | | | | |-- ip_layer.pth

frankchieng commented 6 months ago

try update the IPAdapter custom code

AB00k commented 6 months ago

@frankchieng how do I can update the IPAdapter custom code?