Closed thinkingjimmy closed 8 months ago
it's an issue with cv2 what version of opencv-python do you have installed? try to upgrade it
I have installed it , and upgraded it. But it still gives the same error
i've solved my problem.
pip install opencv-python==4.7.0.72
but I got a new error when run the workflow:
Error occurred when executing InstantIDFaceAnalysis:
File "D:\Program\ComfyUI\execution.py", line 152, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
File "D:\Program\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 "D:\Program\ComfyUI\execution.py", line 75, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
File "D:\Program\ComfyUI\custom_nodes\ComfyUI_InstantID\InstantID.py", line 360, in load_insight_face
model = FaceAnalysis(name="antelopev2", root=INSIGHTFACE_DIR, providers=[provider + 'ExecutionProvider',]) # buffalo_l
File "C:\tools\Miniconda3\envs\comflowy\lib\site-packages\insightface\app\face_analysis.py", line 43, in __init__
assert 'detection' in self.models
if i reinstall insightface, I will get the same error: "Cannot import module 'cv2.gapi.wip.draw'"
that's another extension, you probably need to upgrade it
I have solved my problem: 1) if you get this error: AttributeError: module 'cv2.gapi.wip.draw' has no attribute 'Text'
you need to pip install opencv-python==4.7.0.72
2) if you get this error: in init assert 'detection' in self.models
you need to check this folder: models/insightface/models/antelopev2/
and make sure you have file like 1k3d68.onnx in this folder. In my case, I founded that all of this files were in models/insightface/models/antelopev2/antelopev2
so i deleted second antelopev2 folder, and move all files in the first floder
After installed the insightface, I get this error: