Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork56.4k
Fix problems with loading ONNX networks with parametrized inputs#18145
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
sl-sergei commentedOct 12, 2020
@alalek Can you please check test Layer_Test_Slice.slice_channels_and_batch_17762 ? My changes should not affect this test case at all, but anyway it fails on MYRIAD device |
sl-sergei commentedOct 15, 2020
@dkurt Can you please review the changes? Also, I think I need your help with some tests on Custom machines. For some reason, there are failed cases on MYRIAD/CPU with DLIE, even though some of them are not related to my code (for example, Layer_Test_Slice.slice_channels_and_batch_17762). I can't reproduce it locally on my machine, maybe you have any ideas about failed tests. |
2edc42d to00ab83fComparealalek commentedNov 16, 2020
BTW, avoid using |
sl-sergei commentedNov 16, 2020
thank you! |
alalek commentedNov 16, 2020 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Ignore this ABI error. It belongs to
|
sl-sergei commentedNov 16, 2020
Thanks! Is there some article/wiki page about such details of OpenCV's CI configuration? I am asking just for the future work, so there will be less problems like this |
alalek commentedNov 16, 2020 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
ABI checks are not intended to be configured externally. It is a part ofBuildbot configuration (updates require restart, GitHub code may be a bit outdated). |
JulienMaille commentedNov 16, 2020
@sl-sergei Could you check if these added onnx do pass with this PR? |
alalek commentedNov 17, 2020
@sl-sergei Please squash commits and rebase on latest 3.4 branch |
d245084 toad0fbf4Comparesl-sergei commentedNov 17, 2020
@dkurt friendly reminder |
alalek left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
LGTM
Uh oh!
There was an error while loading.Please reload this page.
resolves#17914 and#18072
merge with extra:opencv/opencv_extra#798
Current limitations for fix:Expand,Shape andConstantFill layers are not supported, since their parameters use constBlobs, which are not accessible during allocation of layers memory
There is a problem with loading ONNX networks with input shapes denoted by some string parameter (e.g. "width", "height"). It seems that OpenCV parser replaces these parameters to zeroes by default.

One of the examples is MaskRCNN in#17914 . I believe that converting from PyTorch to ONNX with "dynamic_axes" will produce the same issues.