Get into some trouble when using iree-import-onnx #17689
-
When using iree-import-onnx iree-import-onnx ./tinyyolov2-7.onnx -o tinyyolov2-7.mlir I get the following error message. iree-import-onnx ./tinyyolov2-7.onnx -o tinyyolov2-7.mlir
Traceback (most recent call last):
File "/usr/local/bin/iree-import-onnx", line 8, in <module>
sys.exit(_cli_main())
File "/usr/local/lib/python3.10/dist-packages/iree/compiler/tools/import_onnx/__main__.py", line 83, in _cli_main
sys.exit(main(parse_arguments()))
File "/usr/local/lib/python3.10/dist-packages/iree/compiler/tools/import_onnx/__main__.py", line 42, in main
model_proto = load_onnx_model(args.input_file)
File "/usr/local/lib/python3.10/dist-packages/iree/compiler/tools/import_onnx/__main__.py", line 62, in load_onnx_model
raw_model = onnx.load(file_path)
File "/usr/local/lib/python3.10/dist-packages/onnx/__init__.py", line 210, in load_model
model = _get_serializer(format, f).deserialize_proto(_load_bytes(f), ModelProto())
File "/usr/local/lib/python3.10/dist-packages/onnx/serialization.py", line 118, in deserialize_proto
decoded = typing.cast(Optional[int], proto.ParseFromString(serialized))
google.protobuf.message.DecodeError: Error parsing message Is there any way to fix it? |
Beta Was this translation helpful? Give feedback.
Answered by
FlintWangacc
Jul 4, 2024
Replies: 1 comment
-
This onnx is not complete. git lfs pull --include="Computer_Vision/regnetv_064_Opset16_timm/regnetv_064_Opset16.onnx" --exclude="" to update onnx file |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
FlintWangacc
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This onnx is not complete.
Use
to update onnx file