Skip to content

Commit

Permalink
Fixed Test_Model.DetectionOutput
Browse files Browse the repository at this point in the history
  • Loading branch information
l-bat committed Nov 19, 2020
1 parent e8536c4 commit b86f129
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion modules/dnn/src/model.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ struct Model::Impl
// Faster-RCNN or R-FCN
if (net.getLayer(0)->outputNameToIndex("im_info") != -1)
{
Mat imInfo(Matx31f(size.height, size.width, 1.6f));
Mat imInfo(Matx13f(size.height, size.width, 1.6f));
net.setInput(imInfo, "im_info");
}
net.forward(outs, outNames);
Expand Down
2 changes: 2 additions & 0 deletions modules/dnn/test/test_model.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,8 @@ TEST_P(Test_Model, DetectionOutput)
{
if (backend == DNN_BACKEND_OPENCV)
scoreDiff = 4e-3;
else
scoreDiff = 2e-2;
iouDiff = 1.8e-1;
}

Expand Down

0 comments on commit b86f129

Please sign in to comment.