Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Merged
opencv-pushbot merged 1 commit intoopencv:3.4fromsl-sergei:fix_17914
Nov 17, 2020

Conversation

@sl-sergei
Copy link
Contributor

@sl-sergeisl-sergei commentedAug 20, 2020
edited by alalek
Loading

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.
image

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

Xopencv_extra=named_params_onnxforce_builders=Custom,Custom Win,Custom Macbuild_image:Custom=ubuntu-openvino-2021.1.0:20.04build_image:Custom Win=openvino-2021.1.0build_image:Custom Mac=openvino-2021.1.0test_modules:Custom=dnn,python2,python3,javatest_modules:Custom Win=dnn,python2,python3,javatest_modules:Custom Mac=dnn,python2,python3,javabuildworker:Custom=linux-1# disabled due high memory usage: test_opencl:Custom=ONtest_opencl:Custom=OFFtest_bigdata:Custom=1test_filter:Custom=*

@sl-sergei
Copy link
ContributorAuthor

@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-sergeisl-sergei requested a review fromdkurtOctober 15, 2020 19:07
@sl-sergei
Copy link
ContributorAuthor

@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.

@sl-sergeisl-sergei changed the titleWIP: Fix problems with loading ONNX networks with parametrized inputsFix problems with loading ONNX networks with parametrized inputsNov 16, 2020
@sl-sergeisl-sergeiforce-pushed thefix_17914 branch 2 times, most recently from2edc42d to00ab83fCompareNovember 16, 2020 11:59
@alalek
Copy link
Member

BTW, avoid using#N in commit messages. This causes creation of false cross-links on GitHub.

@sl-sergei
Copy link
ContributorAuthor

BTW, avoid using#N in commit messages. This causes creation of false cross-links on GitHub.

thank you!

@alalek
Copy link
Member

alalek commentedNov 16, 2020
edited
Loading

Ignore this ABI error. It belongs toexperimental namespace
I will filter out that on CI later (there is a bug in filter code).

vtable ABI issue is hard to resolve (usually it is done throughdynamic_cast, but this requires the closed list of "derived" classes)

@sl-sergeisl-sergei requested review fromdkurt and removed request fordkurtNovember 16, 2020 18:40
@sl-sergei
Copy link
ContributorAuthor

Ignore this ABI error. It belongs toexperimental namespace
I will filter out it on CI later.

vtable ABI issue is hard to resolve (usually it is done throughdynamic_cast, but this requires the closed list of "derived" classes)

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
Copy link
Member

alalek commentedNov 16, 2020
edited
Loading

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).

https://github.com/opencv/opencv/wiki/CI-configuration

@JulienMaille
Copy link
Contributor

@sl-sergei Could you check if these added onnx do pass with this PR?
opencv/opencv_extra#816

@alalek
Copy link
Member

@sl-sergei Please squash commits and rebase on latest 3.4 branch

@sl-sergeisl-sergeiforce-pushed thefix_17914 branch 3 times, most recently fromd245084 toad0fbf4CompareNovember 17, 2020 10:31
@sl-sergei
Copy link
ContributorAuthor

@dkurt friendly reminder

Copy link
Member

@alalekalalek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

LGTM

@opencv-pushbotopencv-pushbot merged commit4f3130f intoopencv:3.4Nov 17, 2020
@alalekalalek mentioned this pull requestNov 17, 2020
@alalekalalek mentioned this pull requestNov 27, 2020
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@alalekalalekalalek approved these changes

@dkurtdkurtAwaiting requested review from dkurt

Assignees

@alalekalalek

Projects

None yet

Milestone

3.4.13

Development

Successfully merging this pull request may close these issues.

4 participants

@sl-sergei@alalek@JulienMaille@opencv-pushbot

[8]ページ先頭

©2009-2025 Movatter.jp