deepinsight / insightface

State-of-the-art 2D and 3D Face Analysis Project
https://insightface.ai
23.38k stars 5.41k forks source link

How to change the facedetction from MTCNN to Retinaface in deploy/test.py? #1108

Open cibinwilliam opened 4 years ago

cibinwilliam commented 4 years ago

I have run the deploy/test.py and run it for lfw dataset, The test.py file uses the MTCNN for face detction and landmark.For few of the images face detction fails.

I want to try it using the Retinaface detection ,How to change the facdetection to Retinaface in deploy/test.py?

Riut521 commented 4 years ago

add the path, initial retinaface just at where the mtcnn initialized, they have the save output structure, so you can replace mtcnn with retinaface easily

nttstar commented 4 years ago

try install insightface pip install insightface

phamthienvuong98 commented 3 years ago

@Riut521 Would you be more specific ? I can't understand you