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
c918ac29
Commit
c918ac29
authored
6 years ago
by
Dmitry Kurtaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix IE tests
parent
eb00dce7
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
24 additions
and
9 deletions
+24
-9
blank_layer.cpp
modules/dnn/src/layers/blank_layer.cpp
+16
-5
convolution_layer.cpp
modules/dnn/src/layers/convolution_layer.cpp
+1
-1
test_layers.cpp
modules/dnn/test/test_layers.cpp
+4
-0
test_onnx_importer.cpp
modules/dnn/test/test_onnx_importer.cpp
+1
-1
test_tf_importer.cpp
modules/dnn/test/test_tf_importer.cpp
+2
-2
No files found.
modules/dnn/src/layers/blank_layer.cpp
View file @
c918ac29
...
@@ -110,14 +110,25 @@ public:
...
@@ -110,14 +110,25 @@ public:
virtual
Ptr
<
BackendNode
>
initInfEngine
(
const
std
::
vector
<
Ptr
<
BackendWrapper
>
>&
inputs
)
CV_OVERRIDE
virtual
Ptr
<
BackendNode
>
initInfEngine
(
const
std
::
vector
<
Ptr
<
BackendWrapper
>
>&
inputs
)
CV_OVERRIDE
{
{
#ifdef HAVE_INF_ENGINE
#ifdef HAVE_INF_ENGINE
InferenceEngine
::
DataPtr
input
=
infEngineDataNode
(
inputs
[
0
]);
CV_Assert
(
!
input
->
dims
.
empty
());
#if INF_ENGINE_VER_MAJOR_GE(INF_ENGINE_RELEASE_2018R5)
#if INF_ENGINE_VER_MAJOR_GE(INF_ENGINE_RELEASE_2018R5)
InferenceEngine
::
Builder
::
SplitLayer
ieLayer
(
name
);
InferenceEngine
::
Builder
::
Layer
ieLayer
(
name
);
ieLayer
.
setOutputPorts
({
InferenceEngine
::
Port
()});
ieLayer
.
setName
(
name
);
if
(
preferableTarget
==
DNN_TARGET_MYRIAD
)
{
ieLayer
.
setType
(
"Copy"
);
}
else
{
ieLayer
.
setType
(
"Split"
);
ieLayer
.
getParameters
()[
"axis"
]
=
input
->
dims
.
size
()
-
1
;
ieLayer
.
getParameters
()[
"out_sizes"
]
=
input
->
dims
[
0
];
}
ieLayer
.
setInputPorts
(
std
::
vector
<
InferenceEngine
::
Port
>
(
1
));
ieLayer
.
setOutputPorts
(
std
::
vector
<
InferenceEngine
::
Port
>
(
1
));
return
Ptr
<
BackendNode
>
(
new
InfEngineBackendNode
(
ieLayer
));
return
Ptr
<
BackendNode
>
(
new
InfEngineBackendNode
(
ieLayer
));
#else
#else
InferenceEngine
::
DataPtr
input
=
infEngineDataNode
(
inputs
[
0
]);
CV_Assert
(
!
input
->
dims
.
empty
());
InferenceEngine
::
LayerParams
lp
;
InferenceEngine
::
LayerParams
lp
;
lp
.
name
=
name
;
lp
.
name
=
name
;
lp
.
type
=
"Split"
;
lp
.
type
=
"Split"
;
...
...
This diff is collapsed.
Click to expand it.
modules/dnn/src/layers/convolution_layer.cpp
View file @
c918ac29
...
@@ -1150,7 +1150,7 @@ public:
...
@@ -1150,7 +1150,7 @@ public:
#ifdef HAVE_INF_ENGINE
#ifdef HAVE_INF_ENGINE
if
(
backendId
==
DNN_BACKEND_INFERENCE_ENGINE
)
if
(
backendId
==
DNN_BACKEND_INFERENCE_ENGINE
)
{
{
if
(
INF_ENGINE_RELEASE
=
=
2018050000
&&
(
adjustPad
.
height
||
adjustPad
.
width
))
if
(
INF_ENGINE_RELEASE
>
=
2018050000
&&
(
adjustPad
.
height
||
adjustPad
.
width
))
return
false
;
return
false
;
const
int
outGroupCn
=
blobs
[
0
].
size
[
1
];
// Weights are in IOHW layout
const
int
outGroupCn
=
blobs
[
0
].
size
[
1
];
// Weights are in IOHW layout
...
...
This diff is collapsed.
Click to expand it.
modules/dnn/test/test_layers.cpp
View file @
c918ac29
...
@@ -236,6 +236,10 @@ TEST_P(Test_Caffe_layers, Dropout)
...
@@ -236,6 +236,10 @@ TEST_P(Test_Caffe_layers, Dropout)
TEST_P
(
Test_Caffe_layers
,
Concat
)
TEST_P
(
Test_Caffe_layers
,
Concat
)
{
{
#if defined(INF_ENGINE_RELEASE) && INF_ENGINE_RELEASE > 2018050000
if
(
backend
==
DNN_BACKEND_INFERENCE_ENGINE
&&
target
==
DNN_TARGET_MYRIAD
)
throw
SkipTestException
(
""
);
#endif
testLayerUsingCaffeModels
(
"layer_concat"
);
testLayerUsingCaffeModels
(
"layer_concat"
);
testLayerUsingCaffeModels
(
"layer_concat_optim"
,
true
,
false
);
testLayerUsingCaffeModels
(
"layer_concat_optim"
,
true
,
false
);
testLayerUsingCaffeModels
(
"layer_concat_shared_input"
,
true
,
false
);
testLayerUsingCaffeModels
(
"layer_concat_shared_input"
,
true
,
false
);
...
...
This diff is collapsed.
Click to expand it.
modules/dnn/test/test_onnx_importer.cpp
View file @
c918ac29
...
@@ -395,7 +395,7 @@ TEST_P(Test_ONNX_nets, DenseNet121)
...
@@ -395,7 +395,7 @@ TEST_P(Test_ONNX_nets, DenseNet121)
TEST_P
(
Test_ONNX_nets
,
Inception_v1
)
TEST_P
(
Test_ONNX_nets
,
Inception_v1
)
{
{
#if defined(INF_ENGINE_RELEASE) && INF_ENGINE_RELEASE
=
= 2018050000
#if defined(INF_ENGINE_RELEASE) && INF_ENGINE_RELEASE
>
= 2018050000
if
(
backend
==
DNN_BACKEND_INFERENCE_ENGINE
&&
target
==
DNN_TARGET_MYRIAD
)
if
(
backend
==
DNN_BACKEND_INFERENCE_ENGINE
&&
target
==
DNN_TARGET_MYRIAD
)
throw
SkipTestException
(
"Test is disabled for OpenVINO 2018R5"
);
throw
SkipTestException
(
"Test is disabled for OpenVINO 2018R5"
);
#endif
#endif
...
...
This diff is collapsed.
Click to expand it.
modules/dnn/test/test_tf_importer.cpp
View file @
c918ac29
...
@@ -241,7 +241,7 @@ TEST_P(Test_TensorFlow_layers, unfused_flatten)
...
@@ -241,7 +241,7 @@ TEST_P(Test_TensorFlow_layers, unfused_flatten)
TEST_P
(
Test_TensorFlow_layers
,
leaky_relu
)
TEST_P
(
Test_TensorFlow_layers
,
leaky_relu
)
{
{
#if defined(INF_ENGINE_RELEASE) && INF_ENGINE_RELEASE
=
= 2018050000
#if defined(INF_ENGINE_RELEASE) && INF_ENGINE_RELEASE
>
= 2018050000
if
(
backend
==
DNN_BACKEND_INFERENCE_ENGINE
&&
target
==
DNN_TARGET_OPENCL
)
if
(
backend
==
DNN_BACKEND_INFERENCE_ENGINE
&&
target
==
DNN_TARGET_OPENCL
)
throw
SkipTestException
(
""
);
throw
SkipTestException
(
""
);
#endif
#endif
...
@@ -388,7 +388,7 @@ TEST_P(Test_TensorFlow_nets, Faster_RCNN)
...
@@ -388,7 +388,7 @@ TEST_P(Test_TensorFlow_nets, Faster_RCNN)
TEST_P
(
Test_TensorFlow_nets
,
MobileNet_v1_SSD_PPN
)
TEST_P
(
Test_TensorFlow_nets
,
MobileNet_v1_SSD_PPN
)
{
{
#if defined(INF_ENGINE_RELEASE) && INF_ENGINE_RELEASE
=
= 2018050000
#if defined(INF_ENGINE_RELEASE) && INF_ENGINE_RELEASE
>
= 2018050000
if
(
backend
==
DNN_BACKEND_INFERENCE_ENGINE
&&
(
target
==
DNN_TARGET_OPENCL
||
target
==
DNN_TARGET_OPENCL_FP16
))
if
(
backend
==
DNN_BACKEND_INFERENCE_ENGINE
&&
(
target
==
DNN_TARGET_OPENCL
||
target
==
DNN_TARGET_OPENCL_FP16
))
throw
SkipTestException
(
"Unstable test case"
);
throw
SkipTestException
(
"Unstable test case"
);
#endif
#endif
...
...
This diff is collapsed.
Click to expand it.
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