- nanodet: https://github.com/RangiLyu/nanodet
- get nanodet pretrained weights from here: COCO pretrain weight for torch>=1.6(Google Drive) | COCO pretrain weight for torch<=1.5(Google Drive)
git clone https://github.com/linghu8812/nanodet.git
copy export_onnx.py into nanodet/tools
and run export_onnx.py
to generate nanodet-m.onnx
.
python tools/export_onnx.py
mkdir build && cd build
cmake ..
make -j
./nanodet_trt ../config.yaml ../samples