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

Where to find <INSTALL_DIR> for Openvino 2022.1 for NCS2 configuration?

Bendan
Novice
2,432 Views

Screenshot from 2023-03-05 22-44-04.png

 

Hi guys, I can only installed Openvino 2022.1 using PyPI. However, when I tried to configure my NCS2 on my Ubuntu 18.04, I can't find the <INSTALL_DIR> as needed in the figure above for configuration. 

Anyone knows where to find the <INSTALL_DIR> for my installation, or any other way to configure NCS2 on my Ubuntu 18.04? 

 

Thank you.

0 Kudos
1 Solution
Peh_Intel
Moderator
2,398 Views

Hi Bendan,


For your information, OpenVINO™ Runtime package installed from PyPI only includes a set of libraries for Intel® CPU and Intel® GPU hardware.


To configure NCS2, please download OpenVINO™ 2022.1 Runtime package using Installer. The <INSTALL_DIR> means the location where you download this OpenVINO™ 2022.1 Runtime package.



Regards,

Peh


View solution in original post

0 Kudos
18 Replies
Peh_Intel
Moderator
2,399 Views

Hi Bendan,


For your information, OpenVINO™ Runtime package installed from PyPI only includes a set of libraries for Intel® CPU and Intel® GPU hardware.


To configure NCS2, please download OpenVINO™ 2022.1 Runtime package using Installer. The <INSTALL_DIR> means the location where you download this OpenVINO™ 2022.1 Runtime package.



Regards,

Peh


0 Kudos
Bendan
Novice
2,383 Views

Hi Peh,

 

Thank you for the information! I configured NCS2 by following the documentation. When I run Yolov5 on my Ubuntu 18.04 in IR format, the inference speed is much faster than Pytorch format. However, I am still not sure if the NCS2 is being used, because by typing the "lsusb" command, Ubuntu does not show my NCS2 is being plugged in as in the figure below. Anyway I can check if the openvino format run with the NCS2 or just run with my CPU?

Screenshot from 2023-03-08 01-05-12.png

Thank you.

0 Kudos
bouachalazhar
Beginner
1,796 Views

Hi, how have you install NCS2 on Ubuntu, I can't do it I have Ubuntu 22.04 and Windows 11 but I can't test NCS2 or detect it.

0 Kudos
Peh_Intel
Moderator
2,370 Views

Hi Bendan,


Based on your screenshot, the NCS2 is being detected, which its ID is 03e7:2485.


If you are running the demo (assuming you are running this yolo_openvino_demo) without specifing the device, then the inferencing is run on CPU (default device).



Regards,

Peh


0 Kudos
Bendan
Novice
2,363 Views

Hi Peh, 

I am running this yolo_openvino_demo, and the device I set to MYRIAD. However, I get an error: "ValueError: not enough values to unpack (expected 4, got 3)". Do you have any idea with this?

Screenshot from 2023-03-08 12-43-39.png

Besides, I also tried to run detect.py, by changing the common.py  line 386 from device_name='CPU' to device_name='MYRIAD'.  However, when running the detect.py, I faced the error Segmentation fault (core dumped) as in figure below. Do you know how to solve this?

Screenshot from 2023-03-08 12-49-33.png

Thank you!

0 Kudos
Peh_Intel
Moderator
2,351 Views

Hi Bendan,


Could you share your ONNX model with us to investigate further?



Regards,

Peh


0 Kudos
Bendan
Novice
2,350 Views

Hi Peh,

I tried to upload my ONNX model here. However, the file type (.onnx) is not supported. Any other way I can share to you?

Thanks.

0 Kudos
Peh_Intel
Moderator
2,348 Views

Hi Bendan,


You can zip your ONNX model and upload the zip file here.


Or, you can email your ONNX model directly to me, yux.chern.peh@intel.com



Regards,

Peh


0 Kudos
Bendan
Novice
2,346 Views

Hi Peh,

Attached below is the zip file of my ONNX model. Thank you!

0 Kudos
Peh_Intel
Moderator
2,302 Views

Hi Bendan,

 

Thanks for sharing your model.

 

I was able to run the yolo_openvino_demo on MYRIAD from my end.

 

Here is the inference result. The output detection showed incorrect class names, this might be due to the different class names of your model. You can change the class names accordingly in the demo script.

yolov5_output.jpeg

 

The Model Optimizer command that I used to convert ONNX model to IR:

python3 mo.py --input_model best.onnx -s 255 --reverse_input_channels --output /model.24/m.0/Conv,/model.24/m.1/Conv,/model.24/m.2/Conv

 

 

Regards,

Peh

 

0 Kudos
Bendan
Novice
2,228 Views

Hi Peh, 

I converted my best.onnx into IRv10 in Openvino 2021.4.752 using Ubuntu 18.04:

cd /opt/intel/openvino_2021.4.752/deployment_tools/model_optimizer

python3 mo.py --input_model /home/rc/Desktop/yolov5/best.onnx --output_dir /home/rc/Desktop

The output of best.xml is attached below:

Bendan_0-1678441229607.png

 

After that, I copy the IRv10 files to run it at my Raspberry Pi 4 in Openvino 2021.4.582. 

However, I facing error when running  yolo_openvino_demo.py even after I changed my names of the classes. The error is shown below:

Bendan_1-1678441316913.pngBendan_2-1678441337081.png

Do you have any idea why this error still exists even after I change the names of the classes in yolo_openvino_demo.py? Is it related to Openvino version? 

 

Thank you very much.

 

0 Kudos
Bendan
Novice
2,287 Views

Hi Peh,

Thank you for helping me! I can now run yolo_openvino_demo.py on MYRIAD from my Ubuntu 18.04. However, when I am using the official yolov5 to run the detect.py with Openvino IRv11, I face the "Segmentation fault (core dumped)" error.  I already changed the common.py  line 386 from device_name='CPU' to device_name='MYRIAD'.  The best_openvino_model folder also shown at below. Do you know how to solve this?

Screenshot from 2023-03-09 16-50-50.png

Screenshot from 2023-03-09 16-52-14.png

Thank you!

0 Kudos
Peh_Intel
Moderator
2,252 Views

Hi Bendan,

 

Glad to hear that you are able to run yolo_openvino_demo.py on MYRIAD.

 

I encountered different error when running detect.py.

error.jpeg

 

Have you face this error before or do I need some additional file (e.g. class names) to run the demo?

 

 

Regards,

Peh

 

0 Kudos
Bendan
Novice
2,243 Views

Hi Peh,

Unfortunately, I never face this error before. 

0 Kudos
Wan_Intel
Moderator
2,165 Views

Hi Bendan,

Please convert your ONNX model into IRv10 in Openvino 2021.4.752 using Ubuntu 18.04 with the following command and see if the issue can be resolved:

python3 mo.py --input_model best.onnx -s 255 --reverse_input_channels --output /model.24/m.0/Conv,/model.24/m.1/Conv,/model.24/m.2/Conv

 

 

Regards,

Wan

 

0 Kudos
Bendan
Novice
2,161 Views

Hi Wan,

I am facing some error when following your step as shown in figure below.

Bendan_0-1678693916101.png

 

0 Kudos
Wan_Intel
Moderator
2,119 Views

Hi Bendan,

Thanks for your information.

Please use the following parameter when converting your ONNX model to Intermediate Representation and see if the issue was able to resolve.

python3 mo.py --input_model best.onnx -s 255 --reverse_input_channels --output /model.24/m.0/Conv,/model.24/m.1/Conv,/model.24/m.2/Conv --output_dir=/home/pi/

 

 

Regards,

Wan

 

0 Kudos
Wan_Intel
Moderator
1,969 Views

Hi Bendan,

If you need additional information from Intel, please submit a new question as this thread will no longer be monitored.

 

 

Regards,

Wan

 

0 Kudos
Reply