foivospar / Arc2Face

[ECCV 2024🔥] Arc2Face: A Foundation Model of Human Faces
https://arc2face.github.io/
MIT License
491 stars 32 forks source link

Error when loading insight face model #2

Open Dheeraj2002 opened 3 months ago

Dheeraj2002 commented 3 months ago

app = FaceAnalysis(name='antelopev2', root='./', providers=['CUDAExecutionProvider', 'CPUExecutionProvider']) When the above code runs, it produces the following error:

AssertionError Traceback (most recent call last) in <cell line: 2>()

----> 2 app = FaceAnalysis(name='antelopev2', root='./', providers=['CUDAExecutionProvider', 'CPUExecutionProvider'])

/usr/local/lib/python3.10/dist-packages/insightface/app/face_analysis.py in init(self, name, root, allowed_modules, **kwargs) 41 print('duplicated model task type, ignore:', onnx_file, model.taskname) 42 del model ---> 43 assert 'detection' in self.models 44 self.det_model = self.models['detection'] 45

AssertionError:

UZdudu commented 3 months ago

You may forget to download antelopev2 from https://github.com/deepinsight/insightface/tree/master/python-package.

lattas commented 3 months ago

Hi @Dheeraj2002 , have you followed all 4 steps in the README#USAGE section? It seems that the detection model is missing from your directory. I have itemized and update the required steps, in case they were not clear.