Skip to content

DNN: IE Backend: Not work with other width-height - #13746

Merged
opencv-pushbot merged 1 commit into
opencv:3.4from
allnes:fix_step_dnn
Feb 8, 2019
Merged

opencv-pushbot merged 1 commit into
opencv:3.4from
allnes:fix_step_dnn

Conversation

@allnes

@allnes allnes commented Feb 1, 2019 •

Copy link
Copy Markdown
Member

Issue: #13724


CV_Assert(_stepX == _stepY);
ieLayer.setStep(_stepX);
ieLayer.setSteps({_stepX, _stepY});

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

l.getParameters()["step"] = 0.0;
l.getParameters()["step_h"] = _stepY;
l.getParameters()["step_w"] = _stepX;
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

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

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Please rebase a branch. These changes already merged.

Could you also add some test which covers this bug?

Comment thread modules/dnn/test/test_ie_models.cpp Outdated
);

typedef TestWithParam< tuple< Size, Target > > IEBackend_Test;
TEST_P(IEBackend_Test, Frame_Width_Height_Test)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think that it'd be better to replace this test to test_backends.cpp.

@allnes
allnes force-pushed the fix_step_dnn branch 4 times, most recently from 0562dab to 1f7e361 Compare February 6, 2019 18:25
@allnes

allnes commented Feb 6, 2019

Copy link
Copy Markdown
Member Author

@dkurt done fix

inp, "detection_out", "", diffScores);
}

TEST_P(DNNTestNetwork, MobileNet_SSD_Caffe_Different_Width_Height)

@dkurt dkurt Feb 7, 2019 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

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 dkurt left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

👍 Tested it locally with IE and all the targets. All the tests are passed. Well done!

@opencv-pushbot
opencv-pushbot merged commit 9cbdb48 into opencv:3.4 Feb 8, 2019
@allnes
allnes deleted the fix_step_dnn branch February 8, 2019 11:12
@alalek alalek mentioned this pull request Feb 8, 2019
SavyaSanchi-Sharma pushed a commit to SavyaSanchi-Sharma/opencv that referenced this pull request Jul 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants