Community
cancel
Showing results for 
Search instead for 
Did you mean: 
OKI__HIdetaka
New Contributor I
320 Views

GetExecGraphInfo() with Imported executable nwtwork causes segmentation fault

Hi,

I am trying to modify ReadNetwork() & LoadNetwork() sequence to ImportNetwork() for reducing compileNetwork elapse on runtime.

Segmentation fault in GetExecGraphinfo() with imported executable network in the following sequence . I use object_detection_sample_ssd in toolkit and mobilenet-ssd model to reproduce the symptom. 

--

std::string blobFileName = fileNameNoExt(FLAGS_m) + ".blob";

ExecutableNetwork executable_network = ie.ImportNetwork(blobFileName, FLAGS_d, {});

CNNNetwork exec_graphinfo = executable_network.GetExecGraphInfo();

--

Following sequence does not cause segmentation fault.

--

CNNNetwork network = ie.ReadNetwork(FLAGS_m);

ExecutableNetwork executable_network = ie.LoadNetwork(network, FLAGS_d, configure(FLAGS_config));

CNNNetwork exec_graphinfo = executable_network.GetExecGraphInfo();

--

I generate  mobilenet-ssd.blob with the following commnad :

myriad_compile -m <model_dir>/mobilenet-ssd.xml -ip U8 -op FP32

I am trying  2019R3.1 and 2020.3 LTS and get the same symptom.

 

I appreciate any suggestion for this  symptom.

Best regards,

 

0 Kudos
5 Replies
OKI__HIdetaka
New Contributor I
313 Views

Here is addition information :

HW platform : Xeon E-2246G  and NCS2 usb stick

OpenVINO toolkit : 2019.3.376 and 2020.3.194  x86_64 binary package

OS : Ubuntu 18.04.5 LTS

 

Regards,

 

Iffa_Intel
Moderator
286 Views

Greetings,


Could you provide more details so that I could replicate this? (Src code, etc)

ReadNetwork() & LoadNetwork() is a core code. They are meant to be used as they are and modifications are not officially supported hence success in these is not guaranteed.


Sincerely,

Iffa


OKI__HIdetaka
New Contributor I
281 Views

HI,

I attach cpp code to repuroduce the symptom. This is modified from  openvino_2020.3.194/inference_engine/samples/cpp/object_detection_sample_ssd/main.cpp .

main.cpp_diff.txt shows added line to call GetExecGraphInfo() .

Best Regards,

 

Iffa_Intel
Moderator
240 Views

Greetings,


I had go through and cross checked your code. There are 3 possible ways to use ImportNetwork - https://docs.openvinotoolkit.org/latest/classInferenceEngine_1_1Core.html#af5dd52e92164a99ce9ed90f78...

Need to understand which of them you have been trying to utilize when you provide blobFileName as a first argument.

This is the public example of what you are trying to do:- https://docs.openvinotoolkit.org/2020.1/_inference_engine_tools_compile_tool_README.html#import

Also one more example from internal notes :

executable_network[thread] = ie.ImportNetwork(FLAGS_m, HDDLDevices.at(0));


Perhaps you can try to use the parameters as above.


Sincerely,

Iffa


Iffa_Intel
Moderator
221 Views

Greetings,


Intel will no longer monitor this thread since we have provided a solution. If you need any additional information from Intel, please submit a new question


Sincerely,

Iffa



Reply