rockchip-linux / rknn-toolkit

BSD 3-Clause "New" or "Revised" License
831 stars 175 forks source link

yolov3的onnx转rknn,上传模型失败。 #270

Open isleak opened 2 years ago

isleak commented 2 years ago

D Using CPPUTILS: False I Start importing onnx... D ONNX model check failed, Exception: ValidationError("Your model ir_version is higher than the checker's.",) W Call onnx.optimizer.optimize fail, skip optimize I Current ONNX Model use ir_version 7 opset_version 12 W Please confirm that your onnx opset_version <= 11 (current opset_verison = 12)!!! I Call RKNN onnx optimize fail, skip optimize E Catch exception when loading onnx model: yolov3.onnx! E Traceback (most recent call last): E File "rknn/base/RKNNlib/RK_nn.py", line 141, in rknn.base.RKNNlib.RK_nn.RKnn.load_onnx E File "rknn/base/RKNNlib/app/importer/import_onnx.py", line 118, in rknn.base.RKNNlib.app.importer.import_onnx.Importonnx.run E File "rknn/base/RKNNlib/converter/convert_onnx.py", line 111, in rknn.base.RKNNlib.converter.convert_onnx.convert_onnx.init E File "rknn/base/RKNNlib/converter/convert_onnx.py", line 1059, in rknn.base.RKNNlib.converter.convert_onnx.convert_onnx._build_subgraph E File "rknn/base/RKNNlib/converter/onnx_util.py", line 366, in rknn.base.RKNNlib.converter.onnx_util.onnx_subgraph.build_subgraph E KeyError: '500'

TRQ-UP commented 1 year ago

输出写错了吗?看看有没有500这个output呢?