-
Notifications
You must be signed in to change notification settings - Fork 180
-
Notifications
You must be signed in to change notification settings - Fork 180
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
onnx2trt error #244
Comments
Hello @MohamedAfifii! Thank you for reporting your experience.
This will help us to determine whether the error is due to the keras conversion process in onnxmltools or during the onnx2trt parsing and conversion (in which case it might make more sense to report this issue directly to those developers). Any model files you can provide would also be helpful. |
@MohamedAfifii , can you try convert keras model using https://github.com/onnx/keras-onnx ? |
Thanks for the link @jiafatom! @MohamedAfifii, please see the tutorial that David linked above. It provides code for successfully converting a keras model to onnx. I tried to open your attached model using The following snippet creates a valid VGG16 ONNX model with keras2onnx 1.3.0 and onnxmltools 1.3.1.
|
Thank you,
But this error is not related to the keras to onnx conversion, it is a problem with keras' flatten layer which causes problem even with the UFF parser. |
@MohamedAfifii hi guys, i also meet the same problem: |
I exported vgg16 from keras as an onnx file:
Then on a Jetson Tx2 I executed:
onnx2trt vgg.onnx -o onnx.trt
This is what I got:
The text was updated successfully, but these errors were encountered: