Fixing dnn Resize layer for variable input size#18708
Fixing dnn Resize layer for variable input size#18708JulienMaille wants to merge 0 commit intoopencv:3.4from
Conversation
|
@JulienMaille Looks good. Could you add simple test for the issue? |
2ce5db3 to
f02c0e4
Compare
|
@sl-sergei :( did I waste my time? Can you check your own PR passes the tests I have added? |
12cc334 to
2179327
Compare
No, you didn't waste time, because my changes are conditioned on ONNX "dynamic_axes" option (thus your tests will pass only under this condition). I planned to extend my work further to make the fixes unconditional. |
|
@JulienMaille So, please:
Note: no needs to re-open PR, apply changes "inplace". |
|
I will rebase as soon as I can fix the failing tests. Handling all cases is harder than expected |
|
@JulienMaille The Solution introduces several test failures on all platforms. Please take a look: https://pullrequest.opencv.org/buildbot/builders/precommit_linux64/builds/28872 |
Yes, I know, and I'm a bit struggling with them. For instance I get this error on 'Upsample' which has not been changed by my PR: |
|
@l-bat Can you explain me what is this assert doing? Thanks in advance opencv/modules/dnn/src/onnx/onnx_importer.cpp Lines 1674 to 1677 in b5c1621 |
This assert checks if the input tensors (outputs of the previous layers) are already added to the graph |
43c765d to
7bfa053
Compare
How do you handle if they're not? This assert is triggered on one of the new tests |
|
This assert checks that all inputs of node are constant and we can get them using |
The answer above is correct, sorry for my mistake( |
4e16909 to
95ed5a1
Compare
|
@l-bat @sl-sergei I'm sorry I'm getting lost, specifically with input existing but not being accesible to Can you help? |
95ed5a1 to
62132fe
Compare
62132fe to
b645fc1
Compare

resolves #18695
merge with extra opencv/opencv_extra#816