convert darknet to onnx with fixed pads. It means conv and maxpool with no auto_pads but fixed pads for model deploy.
onnx >= 1.9.0 (opset_version >=11, default is 12)
onnxruntime
- download model weights from https://pjreddie.com/media/files/yolov3-tiny.weights.
- put yolo_to_onnx.py, weights, cfg in the same directory.
- run $python yolo_to_onnx.py --model=yolov3-tiny-416 to generate yolov3-tiny-416.onnx
- if you want to test it, run $python img_predict.py