-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Model optimizer from ONNX error: old and new shapes do not match #133
Comments
After some investigation, it seem the error pops up under this line... to be continued |
Dearest @wuhy08 Thanks for attaching your onnx model. I have downloaded it myself and reproduced your error on OpenVino 2019 R1.0.1 ( a new version has just been released). Yes I remember the Upsample issue you mention but I didn't see it in this new release, so it's been fixed. I will debug your issue and post results here. Thanks for your patience and thank you for using OpenVino ! Shubha |
Dearest @wuhy08 From where did you get this model ? Or did you build it yourself ? Thanks, Shubha |
Hi @shubha-ramani Haoyu |
Dear @wuhy08 ok ok. So the Upsample thing was not magically fixed yet. (You fixed it). Got it. Does this model actually work ? I mean does it successfully perform inference outside of OpenVino ? I'm still investigating...thanks for your patience ! Shubha |
Hi @shubha-ramani . The model was converted from pytorch. The inference in pytorch works as expected. I haven't tested whether it works as an ONNX model. I see in the ONNX file, some Slice ops has attribute "ends = 2^63-1", since I used |
I modified the model and it gave out the same error. For your reference, I have posted my modified model here. Note the differences in some of the Slice ops. (I used BTW, if you use |
@shubha-ramani |
Dear @wuhy08 Shubha |
Dear @wuhy08 Thanks for using OpenVino ! Shubha |
Glad to hear that. I am gonna close the issue and revoke the access to my files now. Have a great Sunday! |
Thanks for you @wuhy08 @shubha-ramani.
There is two things I want to know: |
I have found the changed code according to #136 |
Dearest @Fighting-JJ Thanks, Shubha |
Mostly static declarations, but one unnecessarily wide lambda capture.
Hi,
I am trying to convert my ONNX model using mo.py and it throws the error shown below.
My onnx model is attached here.
Not sure if it is due to the Slice op.
PS. There were some issues with Upsample (#93 (comment)). I fixed that by manually check the node in the onnx model.
The text was updated successfully, but these errors were encountered: