Repository navigation
DNN: IE Backend: Not work with other width-height - #13746
Conversation
|
|
||
| CV_Assert(_stepX == _stepY); | ||
| ieLayer.setStep(_stepX); | ||
| ieLayer.setSteps({_stepX, _stepY}); |
There was a problem hiding this comment.
According to it's implementation, we should pass {_stepY, _stepX} instead:
| l.getParameters()["step"] = 0.0; | ||
| l.getParameters()["step_h"] = _stepY; | ||
| l.getParameters()["step_w"] = _stepX; | ||
| } |
There was a problem hiding this comment.
Why this parameters under if (!_aspectRatios.empty()) condition but not in the else section of if (_stepX == _stepY)?
| std::vector<float> confidences; | ||
| std::vector<Rect> boxes; | ||
| if (net.getLayer(0)->outputNameToIndex("im_info") != -1) // Faster-RCNN or R-FCN | ||
| if (outLayerType == "DetectionOutput") |
There was a problem hiding this comment.
Please rebase a branch. These changes already merged.
Could you also add some test which covers this bug?
| ); | ||
|
|
||
| typedef TestWithParam< tuple< Size, Target > > IEBackend_Test; | ||
| TEST_P(IEBackend_Test, Frame_Width_Height_Test) |
There was a problem hiding this comment.
I think that it'd be better to replace this test to test_backends.cpp.
0562dab to
1f7e361
Compare
|
@dkurt done fix |
| inp, "detection_out", "", diffScores); | ||
| } | ||
|
|
||
| TEST_P(DNNTestNetwork, MobileNet_SSD_Caffe_Different_Width_Height) |
There was a problem hiding this comment.
This test is failed for me locally with DNN_TARGET_MYRIAD. May I ask you to take a look? The rest of tests are OK.
dkurt
left a comment
There was a problem hiding this comment.
👍 Tested it locally with IE and all the targets. All the tests are passed. Well done!
Issue: #13724