mirror of
https://github.com/opencv/opencv.git
synced 2025-06-09 10:40:46 +08:00
parent
7fae2e834c
commit
ad5e70f94e
@ -136,12 +136,6 @@ void runIE(Target target, const std::string& xmlPath, const std::string& binPath
|
|||||||
{
|
{
|
||||||
SCOPED_TRACE("runIE");
|
SCOPED_TRACE("runIE");
|
||||||
|
|
||||||
CNNNetReader reader;
|
|
||||||
reader.ReadNetwork(xmlPath);
|
|
||||||
reader.ReadWeights(binPath);
|
|
||||||
|
|
||||||
CNNNetwork net = reader.getNetwork();
|
|
||||||
|
|
||||||
std::string device_name;
|
std::string device_name;
|
||||||
|
|
||||||
#if defined(INF_ENGINE_RELEASE) && INF_ENGINE_VER_MAJOR_GT(2019010000)
|
#if defined(INF_ENGINE_RELEASE) && INF_ENGINE_VER_MAJOR_GT(2019010000)
|
||||||
@ -150,6 +144,17 @@ void runIE(Target target, const std::string& xmlPath, const std::string& binPath
|
|||||||
InferenceEnginePluginPtr enginePtr;
|
InferenceEnginePluginPtr enginePtr;
|
||||||
InferencePlugin plugin;
|
InferencePlugin plugin;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(INF_ENGINE_RELEASE) && INF_ENGINE_VER_MAJOR_GT(2019030000)
|
||||||
|
CNNNetwork net = ie.ReadNetwork(xmlPath, binPath);
|
||||||
|
#else
|
||||||
|
CNNNetReader reader;
|
||||||
|
reader.ReadNetwork(xmlPath);
|
||||||
|
reader.ReadWeights(binPath);
|
||||||
|
|
||||||
|
CNNNetwork net = reader.getNetwork();
|
||||||
|
#endif
|
||||||
|
|
||||||
ExecutableNetwork netExec;
|
ExecutableNetwork netExec;
|
||||||
InferRequest infRequest;
|
InferRequest infRequest;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user