Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
5dc0e516
Commit
5dc0e516
authored
Jun 27, 2018
by
Vadim Pisarevsky
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #11839 from dkurt:dnn_ie_r2
parents
ba1a6ad4
b11e22c2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
test_backends.cpp
modules/dnn/test/test_backends.cpp
+2
-4
test_common.hpp
modules/dnn/test/test_common.hpp
+2
-1
test_darknet_importer.cpp
modules/dnn/test/test_darknet_importer.cpp
+1
-1
test_layers.cpp
modules/dnn/test/test_layers.cpp
+1
-0
No files found.
modules/dnn/test/test_backends.cpp
View file @
5dc0e516
...
...
@@ -182,11 +182,9 @@ TEST_P(DNNTestNetwork, MobileNet_SSD_Caffe)
throw
SkipTestException
(
""
);
Mat
sample
=
imread
(
findDataFile
(
"dnn/street.png"
,
false
));
Mat
inp
=
blobFromImage
(
sample
,
1.0
f
/
127.5
,
Size
(
300
,
300
),
Scalar
(
127.5
,
127.5
,
127.5
),
false
);
float
l1
=
(
backend
==
DNN_BACKEND_OPENCV
&&
target
==
DNN_TARGET_OPENCL_FP16
)
?
0.0007
:
0.0
;
float
lInf
=
(
backend
==
DNN_BACKEND_OPENCV
&&
target
==
DNN_TARGET_OPENCL_FP16
)
?
0.011
:
0.0
;
float
diffScores
=
(
target
==
DNN_TARGET_OPENCL_FP16
)
?
6e-3
:
0.0
;
processNet
(
"dnn/MobileNetSSD_deploy.caffemodel"
,
"dnn/MobileNetSSD_deploy.prototxt"
,
inp
,
"detection_out"
,
""
,
l1
,
lInf
);
inp
,
"detection_out"
,
""
,
diffScores
);
}
TEST_P
(
DNNTestNetwork
,
MobileNet_SSD_v1_TensorFlow
)
...
...
modules/dnn/test/test_common.hpp
View file @
5dc0e516
...
...
@@ -157,7 +157,8 @@ static inline bool checkMyriadTarget()
net
.
addLayerToPrev
(
"testLayer"
,
"Identity"
,
lp
);
net
.
setPreferableBackend
(
cv
::
dnn
::
DNN_BACKEND_INFERENCE_ENGINE
);
net
.
setPreferableTarget
(
cv
::
dnn
::
DNN_TARGET_MYRIAD
);
net
.
setInput
(
cv
::
Mat
::
zeros
(
1
,
1
,
CV_32FC1
));
static
int
inpDims
[]
=
{
1
,
2
,
3
,
4
};
net
.
setInput
(
cv
::
Mat
(
4
,
&
inpDims
[
0
],
CV_32FC1
,
cv
::
Scalar
(
0
)));
try
{
net
.
forward
();
...
...
modules/dnn/test/test_darknet_importer.cpp
View file @
5dc0e516
...
...
@@ -143,7 +143,7 @@ TEST_P(Test_Darknet_nets, YoloVoc)
classIds
[
0
]
=
6
;
confidences
[
0
]
=
0.750469
f
;
boxes
[
0
]
=
Rect2d
(
0.577374
,
0.127391
,
0.325575
,
0.173418
);
// a car
classIds
[
1
]
=
1
;
confidences
[
1
]
=
0.780879
f
;
boxes
[
1
]
=
Rect2d
(
0.270762
,
0.264102
,
0.461713
,
0.48131
);
// a bicycle
classIds
[
2
]
=
11
;
confidences
[
2
]
=
0.901615
f
;
boxes
[
2
]
=
Rect2d
(
0.1386
,
0.338509
,
0.282737
,
0.60028
);
// a dog
double
scoreDiff
=
(
targetId
==
DNN_TARGET_OPENCL_FP16
||
targetId
==
DNN_TARGET_MYRIAD
)
?
7e-3
:
8e-5
;
double
scoreDiff
=
(
targetId
==
DNN_TARGET_OPENCL_FP16
||
targetId
==
DNN_TARGET_MYRIAD
)
?
1e-2
:
8e-5
;
double
iouDiff
=
(
targetId
==
DNN_TARGET_OPENCL_FP16
||
targetId
==
DNN_TARGET_MYRIAD
)
?
0.013
:
3e-5
;
testDarknetModel
(
"yolo-voc.cfg"
,
"yolo-voc.weights"
,
outNames
,
classIds
,
confidences
,
boxes
,
backendId
,
targetId
,
scoreDiff
,
iouDiff
);
...
...
modules/dnn/test/test_layers.cpp
View file @
5dc0e516
...
...
@@ -1183,6 +1183,7 @@ TEST(Layer_Test_PoolingIndices, Accuracy)
}
}
}
net
.
setPreferableBackend
(
DNN_BACKEND_OPENCV
);
net
.
setInput
(
blobFromImage
(
inp
));
std
::
vector
<
Mat
>
outputs
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment