TaiTair / comfyui-simswap

Simswap node for ComfyUI
GNU General Public License v3.0
15 stars 4 forks source link

how to fix this #4

Closed zachysaur closed 6 months ago

zachysaur commented 6 months ago

Error occurred when executing Simswap:

File "F:\UI\ComfyUI_windows_portable\ComfyUI\execution.py", line 151, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "F:\UI\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 "F:\UI\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 "F:\UI\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-simswap\nodes.py", line 309, in execute script.process( File "F:\UI\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-simswap\scripts\simswap_faceswap.py", line 95, in process result = swap_face( ^^^^^^^^^^ File "F:\UI\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-simswap\scripts\simswap_swapper.py", line 344, in swap_face app = Face_detect_crop(name='antelope', root=insightface_path) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "F:\UI\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-simswap\scripts\insightface_func\face_detect_crop_single.py", line 47, in init assert 'detection' in self.models ^^^^^^^^^^^^^^^^^^^^^^^^^^

TaiTair commented 6 months ago

Looks like you're missing the insightface antelope models. I left a link to those in the readme.

zachysaur commented 6 months ago

i have put it from your link still i am getting this error i even put it everywhere in case location not right

zachysaur commented 6 months ago

where exactly to put it

TaiTair commented 6 months ago

You have to put them under comfyui/models/simswap/antelope/

Did you forget to rename them maybe?
The recognition model should be named glintr100.onnx The detection model should be named scrfd_10g_bnkps.onnx

zachysaur commented 6 months ago

yes thank you i renamed it in order you mentioned now its working fine

TaiTair commented 6 months ago

Perfect - you're welcome!