Open Dheeraj2002 opened 3 months ago
You may forget to download antelopev2 from https://github.com/deepinsight/insightface/tree/master/python-package.
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.
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: