Qengineering / YoloV7-ncnn-Raspberry-Pi-4

YoloV7 for a bare Raspberry Pi using ncnn.
https://qengineering.eu/deep-learning-examples-on-raspberry-32-64-os.html
BSD 3-Clause "New" or "Revised" License
91 stars 19 forks source link

onnx 2 ncnn ? #3

Open sssssshf opened 1 year ago

sssssshf commented 1 year ago

How do I get an onnx model that can be converted to ncnn?? can you share your code which can convert pt to onnx correctly?

Qengineering commented 1 year ago

I've used an already converted model. There are guides on the net explaining how to convert onnx to ncnn. However, it may be somewhat cumbersome, due to the dynamic input size of the models. See for instance: https://github.com/xiang-wuu/ncnn-android-yolov7/tree/master/app/src/main/assets Or https://github.com/Tencent/ncnn/discussions/4541 I know it is not YoloV7, but it give a more than good direction on how to convert your model.