onnx2tflite
onnx2tflite copied to clipboard
yolov5s.onnx转换tflite出错
这是我的转换代码
from converter import onnx_converter
onnx_converter(
onnx_model_path = "./yolov5s.onnx",
need_simplify = True,
output_path = "./",
target_formats = ['tflite'], # or ['keras'], ['keras', 'tflite']
weight_quant = False,
int8_model = False,
int8_mean = None,
int8_std = None,
image_root = None
)
这是报错内容
Checking 0/1...
INFO:deformation_layers ::Reshape will process tensor after change back to NCHW format.
Traceback (most recent call last):
File "e:\nncase\onnx2tflite-main\onnx2tflite-main\onnx2tflite.py", line 2, in
这个问题有解决嘛,我也遇到了这个问题
额,你们可以debug一下这里,并自己修改一下。 如果还有问题,可以传一个onnx来我看看。