This repository helps to convert retinface with mobilenet
or resnet50
backbones to onnx
.
pip3 install -r requirements.txt
cd weights
./download-weights.sh
# mobilenet
python3 export_onnx.py --trained_model weights/mobilenet0.25_Final.pth --network mobile0.25
# resnet50
python3 export_onnx.py --trained_model weights/Resnet50_Final.pth --network resnet50
python3 inference_onnx.py