报错
Traceback (most recent call last):
File “yolov3_to_onnx.py”, line 812, in
main()
File “yolov3_to_onnx.py”, line 805, in main
onnx.checker.check_model(yolov3_model_def)
File “/home/amax/miniconda3/envs/tensorrt_py27/lib/python2.7/site-packages/onnx/checker.py”, line 82, in check_model
C.check_model(model.SerializeToString())
onnx.onnx_cpp2py_export.checker.ValidationError: Input size 2 not in range [min=1, max=1].
==> Context: Bad node spec: input: “085_convolutional_lrelu” input: “086_upsample_scale” output: “086_upsample” name: “086_upsample” op_type: “Upsample” attribute { name: “mode” s: “nearest” type: STRING }
解决方案
降低onnx版本至1.2.1。原因是官方没有更新版本。