Community
cancel
Showing results for 
Search instead for 
Did you mean: 
li__peng
Beginner
193 Views

Load network failed by InferenceEngine::core

// 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
193 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

jiang__menghua
Beginner
193 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.

 

Shubha_R_Intel
Employee
193 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

Reply