Requirement: Python >= 3.8
conda create -n nanodet_env python=3.9
conda activate nanodet_env
pip install -r requirement.txt
python setup.py develop
docker build -t nanodet_train .
docker run -it -d --restart always --shm-size=32GB --gpus=all -v `pwd`/workspace:/workspace/out_snapshot -v `pwd`/dataset:/workspace/dataset --name nanodet_train nanodet_train:latest
python tools/train.py --config config/nanodet-plus-m_416.yml
python tools/export_onnx.py --cfg_path config/nanodet-plus-m_416.yml --model workspace/nanodet-plus-m_416/model_best/nanodet_model_best.pth
- This code is based on Nanodet.