一、pt转onxx
在终端运行项目中的export.py
python export.py --weights models/best.pt --simplify
运行后能够得到best.onxx文件
二、onxx转n***n
使用转换网站进行转换
一键转换 Caffe, ONNX, TensorFlow 到 N***N, MNN, Tengine
但是遇到运行超时的报错
解决方法是下载这个工具,然后手动转换
下载地址:GitHub - Tencent/n***n: n***n is a high-performance neural ***work inference framework optimized for the mobile platform
转