mirror of
https://github.com/opencv/opencv.git
synced 2025-08-06 14:36:36 +08:00
Merge pull request #18863 from l-bat:lb/fix_test
This commit is contained in:
commit
dbfa1bfba4
@ -100,7 +100,7 @@ public:
|
||||
// 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);
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user