TensorRT-5.1.5.0/samples/python/yolov3_onnx 里面包含了基本的samples
pip 默认安装的requirements.txt 里面的环境 可能会有问题,所以还是自己搭建
我是在conda 环境下装的
一, yolov3_to_onnx 模型
python yolov3_to_onnx.py
Traceback (most recent call last):
File "yolov3_to_onnx.py", line 812, in <module>
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 }
TensorRT-5.1.5.0/sa