将.pt文件转化为.tiffle
1、安装库
库 | 版本 |
---|---|
tensorflow | 2.9.1 |
protobuf | 3.19.6 |
onnx | 1.12.0 |
onnxsim | 0.4.28 |
onnxruntime-gpu | 1.14.1 |
onnx2tf | 1.7.7 |
sng4onnx | 1.0.1 |
onnx-graphsurgeon | 0.3.27 |
tflite-support | 0.3.1 |
pip --default-timeout=100 install onnx_graphsurgeon==0.3.26 -i https://pypi.douban.com/simple
requirements: YOLOv8 requirements “onnx2tf>=1.7.7” “sng4onnx>=1.0.1” “onnx_graphsurgeon>=0.3.26” “tflite_support” not found, attempting AutoUpdate…
因为我先前部署环境的时候,已经安装了2.9.1版本的tensorflow。
tensorboard的版本限定了protobuf的版本,它要<3.2.0,≥3.9.2。
所以我选择安装protobuf==3.19.6
onnx的版本与numpy、typing-extensions、protobuf有关,我选择onnx-1.12.0版本(试探出来的,先安装了1.14.0版本发现不行,改为1.12.0)
在Terminal处安装,先进入