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
b16c1096
Commit
b16c1096
authored
Feb 27, 2020
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #16682 from alalek:dnn_test_keypoints_face_myriad
parents
4d8d1524
cc0066d3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
test_model.cpp
modules/dnn/test/test_model.cpp
+9
-1
No files found.
modules/dnn/test/test_model.cpp
View file @
b16c1096
...
...
@@ -308,12 +308,20 @@ TEST_P(Test_Model, Keypoints_face)
Mat
exp
=
blobFromNPY
(
_tf
(
"facial_keypoints_exp.npy"
));
Size
size
{
224
,
224
};
float
norm
=
(
target
==
DNN_TARGET_OPENCL_FP16
)
?
5e-3
:
1e-4
;
double
scale
=
1.0
/
255
;
Scalar
mean
=
Scalar
();
bool
swapRB
=
false
;
// Ref. Range: [-1.1784188, 1.7758257]
float
norm
=
1e-4
;
if
(
target
==
DNN_TARGET_OPENCL_FP16
)
norm
=
5e-3
;
if
(
target
==
DNN_TARGET_MYRIAD
)
{
// Myriad2: l1 = 0.0004, lInf = 0.002
// MyriadX: l1 = 0.003, lInf = 0.009
norm
=
0.009
;
}
if
(
target
==
DNN_TARGET_CUDA_FP16
)
norm
=
0.004
;
// l1 = 0.0006, lInf = 0.004
...
...
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