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
f6137292
Commit
f6137292
authored
Jan 15, 2020
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #16357 from dkurt:dnn_ie_reset_myriad
parents
f6a8f785
d92a883d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
dnn.cpp
modules/dnn/src/dnn.cpp
+1
-1
op_inf_engine.cpp
modules/dnn/src/op_inf_engine.cpp
+9
-3
No files found.
modules/dnn/src/dnn.cpp
View file @
f6137292
...
@@ -103,7 +103,7 @@ public:
...
@@ -103,7 +103,7 @@ public:
#ifdef HAVE_INF_ENGINE
#ifdef HAVE_INF_ENGINE
static
inline
bool
checkIETarget
(
Target
target
)
static
inline
bool
checkIETarget
(
Target
target
)
{
{
#if INF_ENGINE_VER_MAJOR_G
T
(INF_ENGINE_RELEASE_2019R3)
#if INF_ENGINE_VER_MAJOR_G
E
(INF_ENGINE_RELEASE_2019R3)
// Lightweight detection
// Lightweight detection
const
std
::
vector
<
std
::
string
>
devices
=
getCore
().
GetAvailableDevices
();
const
std
::
vector
<
std
::
string
>
devices
=
getCore
().
GetAvailableDevices
();
for
(
std
::
vector
<
std
::
string
>::
const_iterator
i
=
devices
.
begin
();
i
!=
devices
.
end
();
++
i
)
for
(
std
::
vector
<
std
::
string
>::
const_iterator
i
=
devices
.
begin
();
i
!=
devices
.
end
();
++
i
)
...
...
modules/dnn/src/op_inf_engine.cpp
View file @
f6137292
...
@@ -573,7 +573,7 @@ InferenceEngine::Core& getCore()
...
@@ -573,7 +573,7 @@ InferenceEngine::Core& getCore()
#if !defined(OPENCV_DNN_IE_VPU_TYPE_DEFAULT)
#if !defined(OPENCV_DNN_IE_VPU_TYPE_DEFAULT)
static
bool
detectMyriadX_
()
static
bool
detectMyriadX_
()
{
{
#if INF_ENGINE_VER_MAJOR_G
T
(INF_ENGINE_RELEASE_2019R3)
#if INF_ENGINE_VER_MAJOR_G
E
(INF_ENGINE_RELEASE_2019R3)
// Lightweight detection
// Lightweight detection
InferenceEngine
::
Core
&
ie
=
getCore
();
InferenceEngine
::
Core
&
ie
=
getCore
();
const
std
::
vector
<
std
::
string
>
devices
=
ie
.
GetAvailableDevices
();
const
std
::
vector
<
std
::
string
>
devices
=
ie
.
GetAvailableDevices
();
...
@@ -1074,8 +1074,14 @@ void resetMyriadDevice()
...
@@ -1074,8 +1074,14 @@ void resetMyriadDevice()
#if INF_ENGINE_VER_MAJOR_LE(INF_ENGINE_RELEASE_2019R1)
#if INF_ENGINE_VER_MAJOR_LE(INF_ENGINE_RELEASE_2019R1)
getSharedPlugins
().
erase
(
"MYRIAD"
);
getSharedPlugins
().
erase
(
"MYRIAD"
);
#else
#else
// To unregister both "MYRIAD" and "HETERO:MYRIAD,CPU" plugins
// Unregister both "MYRIAD" and "HETERO:MYRIAD,CPU" plugins
getCore
()
=
InferenceEngine
::
Core
();
InferenceEngine
::
Core
&
ie
=
getCore
();
try
{
ie
.
UnregisterPlugin
(
"MYRIAD"
);
ie
.
UnregisterPlugin
(
"HETERO"
);
}
catch
(...)
{}
#endif
#endif
#endif // HAVE_INF_ENGINE
#endif // HAVE_INF_ENGINE
}
}
...
...
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