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
fce6e724
Commit
fce6e724
authored
Feb 23, 2020
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #16629 from alalek:dnn_test_32bit
parents
8b5efc6f
1540ae34
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
1 deletion
+35
-1
test_caffe_importer.cpp
modules/dnn/test/test_caffe_importer.cpp
+12
-0
test_darknet_importer.cpp
modules/dnn/test/test_darknet_importer.cpp
+8
-1
test_onnx_importer.cpp
modules/dnn/test/test_onnx_importer.cpp
+15
-0
No files found.
modules/dnn/test/test_caffe_importer.cpp
View file @
fce6e724
...
...
@@ -159,7 +159,11 @@ typedef testing::TestWithParam<tuple<bool, Target> > Reproducibility_AlexNet;
TEST_P
(
Reproducibility_AlexNet
,
Accuracy
)
{
Target
targetId
=
get
<
1
>
(
GetParam
());
#if defined(OPENCV_32BIT_CONFIGURATION) && defined(HAVE_OPENCL)
applyTestTag
(
CV_TEST_TAG_MEMORY_2GB
);
#else
applyTestTag
(
targetId
==
DNN_TARGET_CPU
?
CV_TEST_TAG_MEMORY_512MB
:
CV_TEST_TAG_MEMORY_1GB
);
#endif
ASSERT_TRUE
(
ocl
::
useOpenCL
()
||
targetId
==
DNN_TARGET_CPU
);
bool
readFromMemory
=
get
<
0
>
(
GetParam
());
...
...
@@ -637,7 +641,11 @@ INSTANTIATE_TEST_CASE_P(Test_Caffe, opencv_face_detector,
TEST_P
(
Test_Caffe_nets
,
FasterRCNN_vgg16
)
{
applyTestTag
(
#if defined(OPENCV_32BIT_CONFIGURATION) && defined(HAVE_OPENCL)
CV_TEST_TAG_MEMORY_2GB
,
// utilizes ~1Gb, but huge blobs may not be allocated on 32-bit systems due memory fragmentation
#else
(
target
==
DNN_TARGET_CPU
?
CV_TEST_TAG_MEMORY_1GB
:
CV_TEST_TAG_MEMORY_2GB
),
#endif
CV_TEST_TAG_LONG
,
CV_TEST_TAG_DEBUG_VERYLONG
);
...
...
@@ -662,7 +670,11 @@ TEST_P(Test_Caffe_nets, FasterRCNN_vgg16)
TEST_P
(
Test_Caffe_nets
,
FasterRCNN_zf
)
{
applyTestTag
(
#if defined(OPENCV_32BIT_CONFIGURATION) && defined(HAVE_OPENCL)
CV_TEST_TAG_MEMORY_2GB
,
#else
(
target
==
DNN_TARGET_CPU
?
CV_TEST_TAG_MEMORY_512MB
:
CV_TEST_TAG_MEMORY_1GB
),
#endif
CV_TEST_TAG_DEBUG_LONG
);
if
((
backend
==
DNN_BACKEND_INFERENCE_ENGINE_NN_BUILDER_2019
||
...
...
modules/dnn/test/test_darknet_importer.cpp
View file @
fce6e724
...
...
@@ -300,7 +300,14 @@ public:
TEST_P
(
Test_Darknet_nets
,
YoloVoc
)
{
applyTestTag
(
CV_TEST_TAG_LONG
,
CV_TEST_TAG_MEMORY_1GB
);
applyTestTag
(
#if defined(OPENCV_32BIT_CONFIGURATION) && defined(HAVE_OPENCL)
CV_TEST_TAG_MEMORY_2GB
,
#else
CV_TEST_TAG_MEMORY_1GB
,
#endif
CV_TEST_TAG_LONG
);
#if defined(INF_ENGINE_RELEASE) && INF_ENGINE_VER_MAJOR_GE(2019010000)
if
(
backend
==
DNN_BACKEND_INFERENCE_ENGINE_NN_BUILDER_2019
&&
target
==
DNN_TARGET_OPENCL_FP16
)
...
...
modules/dnn/test/test_onnx_importer.cpp
View file @
fce6e724
...
...
@@ -436,7 +436,12 @@ public:
TEST_P
(
Test_ONNX_nets
,
Alexnet
)
{
#if defined(OPENCV_32BIT_CONFIGURATION) && defined(HAVE_OPENCL)
applyTestTag
(
CV_TEST_TAG_MEMORY_2GB
);
#else
applyTestTag
(
target
==
DNN_TARGET_CPU
?
CV_TEST_TAG_MEMORY_512MB
:
CV_TEST_TAG_MEMORY_1GB
);
#endif
const
String
model
=
_tf
(
"models/alexnet.onnx"
,
false
);
Net
net
=
readNetFromONNX
(
model
);
...
...
@@ -495,7 +500,12 @@ TEST_P(Test_ONNX_nets, Googlenet)
TEST_P
(
Test_ONNX_nets
,
CaffeNet
)
{
#if defined(OPENCV_32BIT_CONFIGURATION) && defined(HAVE_OPENCL)
applyTestTag
(
CV_TEST_TAG_MEMORY_2GB
);
#else
applyTestTag
(
target
==
DNN_TARGET_CPU
?
CV_TEST_TAG_MEMORY_512MB
:
CV_TEST_TAG_MEMORY_1GB
);
#endif
#if defined(INF_ENGINE_RELEASE) && INF_ENGINE_VER_MAJOR_EQ(2019030000)
if
(
backend
==
DNN_BACKEND_INFERENCE_ENGINE_NN_BUILDER_2019
&&
target
==
DNN_TARGET_MYRIAD
&&
getInferenceEngineVPUType
()
==
CV_DNN_INFERENCE_ENGINE_VPU_TYPE_MYRIAD_X
)
...
...
@@ -506,7 +516,12 @@ TEST_P(Test_ONNX_nets, CaffeNet)
TEST_P
(
Test_ONNX_nets
,
RCNN_ILSVRC13
)
{
#if defined(OPENCV_32BIT_CONFIGURATION) && defined(HAVE_OPENCL)
applyTestTag
(
CV_TEST_TAG_MEMORY_2GB
);
#else
applyTestTag
(
target
==
DNN_TARGET_CPU
?
CV_TEST_TAG_MEMORY_512MB
:
CV_TEST_TAG_MEMORY_1GB
);
#endif
#if defined(INF_ENGINE_RELEASE) && INF_ENGINE_VER_MAJOR_EQ(2019030000)
if
(
backend
==
DNN_BACKEND_INFERENCE_ENGINE_NN_BUILDER_2019
&&
target
==
DNN_TARGET_MYRIAD
&&
getInferenceEngineVPUType
()
==
CV_DNN_INFERENCE_ENGINE_VPU_TYPE_MYRIAD_X
)
...
...
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