- RetinaFace github: https://github.com/deepinsight/insightface/tree/master/RetinaFace
- RetinaFace arxiv: RetinaFace: Single-stage Dense Face Localisation in the Wild
- get pretrained model: BaiduDrive or Dropbox
- export resnet50 model
python3 export_onnx.py
- export mobilenet 0.25 model
python3 export_onnx.py --network mnet --imagenet ./model/mobilenet_0_25 --pretrained ./model/mnet.25 --transpose ./model/mnet_retinaface --onnx mnet_retinaface.onnx --input_shape 1 3 640 640
mkdir build && cd build
cmake ..
make -j
./RetinaFace_trt ../config.yaml ../samples
resolution | MXNet Symbol | TensorRT |
---|---|---|
640x640 | 13.2ms |