-
Notifications
You must be signed in to change notification settings - Fork 334
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Converting onnx to nnp opset version error #1170
Comments
Thank you for reporting! |
nnabla does not support to import quantized onnx model. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi
I have been trying to build a Downsized U-Net model to deploy on the spresense board
I have been using pytorch
To deploy on the spresense board I need the model file to be .nnb format
Thus I use the following code to generate a .nnb model file
Pytorch code to genrate .ONNX file
ONNX code to qauntize model to int8
Convert Opset Version of the ONNX model to 13
CLI to convert ONNX file to NNP file
ISSUE
When I run the ONNX to NNP conversion command without qauntization it works , however if I qauntize the model I get the following opset error
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/nnabla/utils/cli/cli.py", line 147, in cli_main
return_value = args.func(args)
File "/usr/local/lib/python3.8/dist-packages/nnabla/utils/cli/convert.py", line 111, in convert_command
nnabla.utils.converter.convert_files(args, args.files, output)
File "/usr/local/lib/python3.8/dist-packages/nnabla/utils/converter/commands.py", line 255, in convert_files
nnp = _import_file(args, ifiles)
File "/usr/local/lib/python3.8/dist-packages/nnabla/utils/converter/commands.py", line 41, in _import_file
return OnnxImporter(*ifiles).execute()
File "/usr/local/lib/python3.8/dist-packages/nnabla/utils/converter/onnx/importer.py", line 4449, in execute
return self.onnx_model_to_nnp_protobuf()
File "/usr/local/lib/python3.8/dist-packages/nnabla/utils/converter/onnx/importer.py", line 4426, in onnx_model_to_nnp_protobuf
raise ValueError(
ValueError: Unsupported opset from domain ai.onnx.m
The text was updated successfully, but these errors were encountered: