cozymantis / human-parser-comfyui-node

A ComfyUI node to automatically extract masks for body regions and clothing/fashion items. Made with đź’š by the CozyMantis squad.
https://cozymantis.gumroad.com
GNU General Public License v3.0
76 stars 8 forks source link

No such file or directory: 'models/schp/exp-schp-201908261155-lip.pth' #20

Open kakachiex2 opened 2 months ago

kakachiex2 commented 2 months ago

I'm getting these errors but all models are in this correct location, but your node don't recognize the patch

Error occurred when executing Cozy Human Parser LIP:

[Errno 2] No such file or directory: 'models/schp/exp-schp-201908261155-lip.pth'

File "K:\ComfyUI\ComfyUI_Ex\ComfyUI\execution.py", line 152, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "K:\ComfyUI\ComfyUI_Ex\ComfyUI\execution.py", line 82, in get_output_data return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "K:\ComfyUI\ComfyUI_Ex\ComfyUI\execution.py", line 75, in map_node_over_list results.append(getattr(obj, func)(**slice_dict(input_data_all, i))) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "K:\ComfyUI\ComfyUI_Ex\ComfyUI\custom_nodes\human-parser-comfyui-node\HumanParserLIPCustomNode.py", line 47, in run output_img = generate(image[0], 'lip', device) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "K:\ComfyUI\ComfyUI_Ex\ComfyUI\custom_nodes\human-parser-comfyui-node\utils.py", line 82, in generate state_dict = torch.load(model_path)['state_dict'] ^^^^^^^^^^^^^^^^^^^^^^ File "K:\ComfyUI\ComfyUI_Ex\python_miniconda_env\ComfyUI\Lib\site-packages\torch\serialization.py", line 998, in load with _open_file_like(f, 'rb') as opened_file: ^^^^^^^^^^^^^^^^^^^^^^^^ File "K:\ComfyUI\ComfyUI_Ex\python_miniconda_env\ComfyUI\Lib\site-packages\torch\serialization.py", line 445, in _open_file_like return _open_file(name_or_buffer, mode) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "K:\ComfyUI\ComfyUI_Ex\python_miniconda_env\ComfyUI\Lib\site-packages\torch\serialization.py", line 426, in init super().init(open(name, mode)) ^^^^^^^^^^^^^^^^

kakachiex2 commented 2 months ago

Everything is correct. Screenshot 2024-08-09 192158

WaterKnight1998 commented 1 month ago

Same here