mirror of
https://github.com/opencv/opencv.git
synced 2025-07-24 14:06:27 +08:00
Fixed Test_Model.DetectionOutput
This commit is contained in:
parent
e8536c4a0e
commit
b86f129393
@ -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