deepinsight / deepinsight/insightface

InstantIDFaceAnalysis AssertionError

Open
#2,725 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
29.7k
Forks
6.1k
PR merge metrics
No merged PRs in 30d

Description

Hello,

I just installed some nodes in ComfyUI Desktop, including InstantID, and I have this issue.

I tried to put Antelopev2 models *.onnx inside './insightface/models/antelopev2' or './insightface/models/antelope' from the 'ComfyUI/models' directory, and inside './models/antelopev2' or './models/antelope' from the 'insightface' python package directory.
Also, I tried to change the root folder for the AnalysisFace Class from './insightface' to 'C:\ComfyUI\.venv\Lib\site-packages\insightface' but nothing change.

Could you help me, please ?

# ComfyUI Error Report
## Error Details
- **Node ID:** 20
- **Node Type:** InstantIDFaceAnalysis
- **Exception Type:** AssertionError
- **Exception Message:**
## Stack Trace
```
File "C:\Users\user\AppData\Local\Programs\@comfyorgcomfyui-electron\resources\ComfyUI\execution.py", line 327, in execute
output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "C:\Users\user\AppData\Local\Programs\@comfyorgcomfyui-electron\resources\ComfyUI\execution.py", line 202, in get_output_data
return_values = _map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "C:\Users\user\AppData\Local\Programs\@comfyorgcomfyui-electron\resources\ComfyUI\execution.py", line 174, in _map_node_over_list
process_inputs(input_dict, i)

File "C:\Users\user\AppData\Local\Programs\@comfyorgcomfyui-electron\resources\ComfyUI\execution.py", line 163, in process_inputs
results.append(getattr(obj, func)(**inputs))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "C:\ComfyUI\custom_nodes/ComfyUI_InstantID\InstantID.py", line 217, in load_insight_face
model = FaceAnalysis(name="antelopev2", root=INSIGHTFACE_DIR, providers=[provider + 'ExecutionProvider',]) # alternative to buffalo_l
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "C:\ComfyUI\.venv\Lib\site-packages\insightface\app\face_analysis.py", line 43, in __init__
assert 'detection' in self.models
^^^^^^^^^^^^^^^^^^^^^^^^^^

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.