Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv_contrib
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_contrib
Commits
6b3d71bc
Commit
6b3d71bc
authored
May 19, 2017
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1170 from arrybn:enable_large_models_tests
parents
27bf9e29
08ade5e1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
4 deletions
+15
-4
test_caffe_importer.cpp
modules/dnn/test/test_caffe_importer.cpp
+2
-0
test_googlenet.cpp
modules/dnn/test/test_googlenet.cpp
+3
-3
test_main.cpp
modules/dnn/test/test_main.cpp
+10
-1
No files found.
modules/dnn/test/test_caffe_importer.cpp
View file @
6b3d71bc
...
...
@@ -101,6 +101,7 @@ TEST(Reproducibility_AlexNet, Accuracy)
normAssert
(
ref
,
out
);
}
#if !defined(_WIN32) || defined(_WIN64)
TEST
(
Reproducibility_FCN
,
Accuracy
)
{
Net
net
;
...
...
@@ -126,5 +127,6 @@ TEST(Reproducibility_FCN, Accuracy)
Mat
ref
=
blobFromNPY
(
_tf
(
"caffe_fcn8s_prob.npy"
));
normAssert
(
ref
,
out
);
}
#endif
}
modules/dnn/test/test_googlenet.cpp
View file @
6b3d71bc
...
...
@@ -68,11 +68,11 @@ static void launchGoogleNetTest()
}
std
::
vector
<
Mat
>
inpMats
;
inpMats
.
push_back
(
imread
(
_tf
(
"googlenet_0.
jp
g"
))
);
inpMats
.
push_back
(
imread
(
_tf
(
"googlenet_1.
jp
g"
))
);
inpMats
.
push_back
(
imread
(
_tf
(
"googlenet_0.
pn
g"
))
);
inpMats
.
push_back
(
imread
(
_tf
(
"googlenet_1.
pn
g"
))
);
ASSERT_TRUE
(
!
inpMats
[
0
].
empty
()
&&
!
inpMats
[
1
].
empty
());
net
.
setBlob
(
".data"
,
blobFromImages
(
inpMats
,
1.
,
false
));
net
.
setBlob
(
".data"
,
blobFromImages
(
inpMats
));
net
.
forward
();
Mat
out
=
net
.
getBlob
(
"prob"
);
...
...
modules/dnn/test/test_main.cpp
View file @
6b3d71bc
#include "test_precomp.hpp"
CV_TEST_MAIN
(
""
)
static
const
char
*
extraTestDataPath
=
#ifdef WINRT
NULL
;
#else
getenv
(
"OPENCV_DNN_TEST_DATA_PATH"
);
#endif
CV_TEST_MAIN
(
""
,
extraTestDataPath
?
(
void
)
cvtest
::
addDataSearchPath
(
extraTestDataPath
)
:
(
void
)
0
)
namespace
cvtest
{
...
...
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