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.
6404 Discussions

OpenVino with NCS2 C++ Error (Corrupted Double-linked list)

Yeoh__Ru_Sern
Novice
1,099 Views

Hi,

 

I am encountering a problem performing inferencing on the NCS2 together with the Raspberry Pi 3. I so far installed OpenVino properly, and I am able to run the OpenVino examples without any problem on the Raspberry Pi with NCS2.

 

However, when I start to run my own model for inferencing, I encounter this problem:

cid:image001.jpg@01D559D3.7AA4A640

 

I'm using the C++ sdk for this. So far, I'm not doing anything fancy yet and I'm just modifying from the example code to run my model with my own input images. I trained my model in PyTorch, converted it to ONNX format and ran it through the model optimizer, targeting it for FP16 accuracy as required by the NCS2. 

 

The error seems to be occuring on this line of code:
cid:image002.jpg@01D559D3.7AA4A640

Initially, I thought that I may corrupted my model file during the conversion process. However, I have tried to run the inferencing using the python SDK, and everything just works fine. I'm kinda in a pinch here, and I don't know what is wrong. Any advice is much welcomed. 

0 Kudos
2 Replies
Yeoh__Ru_Sern
Novice
1,099 Views

Hi,

 

An update to the problem,

I have discovered the root cause to the initial problem to be me setting the wrong precision for the input info. Initially I set it to FP16, for the NCS2, when it should be U8. I have changed it to U8 and it manages to run, but now I encounter a segmentation error problem. I found another post here with the similar problem:

https://software.intel.com/en-us/forums/computer-vision/topic/809221

I have yet to try out the solution yet. Will update once again when i do.

0 Kudos
Shubha_R_Intel
Employee
1,099 Views

Dear Yeoh, Ru Sern

 the compiler switch -march=armv7-a solves the problem

Are you using the correct compiler switch ?

Thanks,

Shubha

0 Kudos
Reply