Intel® Distribution of OpenVINO™ Toolkit
Community assistance about the Intel® Distribution of OpenVINO™ toolkit, OpenCV, and all aspects of computer vision-related on Intel® platforms.

Load network failed by InferenceEngine::core

li__peng
Beginner
1,439 Views
// Load a plugin Core core; // Create an IR reader CNNNetReader network_reader; const std::string Model_xml = "E:/OpenVINO2_test/Refinedet_Anysize.xml"; const std::string Model_bin = "E:/OpenVINO2_test/Refinedet_Anysize.bin"; network_reader.ReadNetwork(Model_xml); network_reader.ReadWeights(Model_bin); // Configure input and output. auto network = network_reader.getNetwork(); /** Taking information about all topology inputs **/ InferenceEngine::InputsDataMap input_info(network.getInputsInfo()); /** Taking information about all topology outputs **/ InferenceEngine::OutputsDataMap output_info(network.getOutputsInfo()); /** Iterating over all input info**/ for (auto &item : input_info) { auto input_data = item.second; input_data->setPrecision(Precision::FP32); input_data->setLayout(Layout::NCHW); input_data->getPreProcess().setResizeAlgorithm(RESIZE_BILINEAR); } /** Iterating over all output info**/ for (auto &item : output_info) { auto output_data = item.second; output_data->setPrecision(Precision::FP32); output_data->setLayout(Layout::CHW); } /** Load the model to the plugin **/ auto executable_network = core.LoadNetwork(network, "CPU"); failed
0 Kudos
3 Replies
Shubha_R_Intel
Employee
1,439 Views

Dear li, peng

 Are you getting a specific exception or error ? Also which version of OpenVino are you using ? Please download the latest version 2019R2 which was just released yesterday.

Much thanks,

Shubha

0 Kudos
jiang__menghua
Beginner
1,439 Views

I have the same problem as well. I can compile the code but it just exists upon the

ExecutableNetwork executable_network = core.LoadNetwork(network, "CPU");

Just wonder if there is any additional DLLs required for linking, but they are not mentioned anywhere.

 

0 Kudos
Shubha_R_Intel
Employee
1,439 Views

Dear everyone, 

First of all, kindly upgrade to OpenVino 2019R3 if you haven't already. Also you will need to rely on something like http://www.dependencywalker.com/ on your Windows machine (or ldd on Linux) to figure out why the plugin DLL  (or *.so) is not being found. Making sure that the environment variables in setupvars.bat (or *.sh) are set within the shell from which you're invoking your program is essential.  Finally please make sure that C:\Program Files (x86)\IntelSWTools\openvino_2019.3.336\inference_engine\bin\intel64\Release (or Linux version of this path) is in your PATH environment variable.

Not being able to execute :

ExecutableNetwork executable_network = core.LoadNetwork(network, "CPU");

almost always has to do with one or more DLLs (or *.so) not being locatable by the executing program.

Hope it helps,

Thanks,

Shubha

0 Kudos
Reply