Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segmentation fault #2589

Closed
diego-varela-seijas opened this issue Jul 12, 2021 · 7 comments
Closed

Segmentation fault #2589

diego-varela-seijas opened this issue Jul 12, 2021 · 7 comments
Labels
RaspberryPi OpenVINO for RapsberryPi package VPU

Comments

@diego-varela-seijas
Copy link

Hi,

I need to do inference on a Raspberry Pi 4B with NCS 2 using YOLO. I get the default model in IR (the xml and the bin file) before converting custom models to try, and used two demos of open_model_zoo but I always get a Segmentation fault error. Here are the outputs:

Command
./multi_channel_object_detection_demo_yolov3 -m ../../../build/frozen_darknet_yolov3_model.xml -d MYRIAD -i ../../../build/cars.mp4

Output:
[ INFO ] InferenceEngine: IE version ......... 2021.4 Build ........... 0 [ INFO ] Parsing input parameters [ INFO ] Detection model: ../../../build/frozen_darknet_yolov3_model.xml [ INFO ] Detection threshold: 0.5 [ INFO ] Utilizing device: MYRIAD [ INFO ] Batch size: 1 [ INFO ] Number of infer requests: 5 [ INFO ] Model path: ../../../build/frozen_darknet_yolov3_model.xml Segmentation fault

Command
./object_detection_demo -m ../../../build/frozen_darknet_yolov3_model.xml -d MYRIAD -i ../../../build/cars.mp4 -at yolo

Output:
[ INFO ] InferenceEngine: IE version ......... 2021.4 Build ........... 0 [ INFO ] Parsing input parameters [ INFO ] Reading input [ WARN:0] global ../opencv/modules/videoio/src/cap_gstreamer.cpp (1044) open OpenCV | GStreamer warning: unable to query duration of stream [ WARN:0] global ../opencv/modules/videoio/src/cap_gstreamer.cpp (1081) open OpenCV | GStreamer warning: Cannot query video position: status=1, value=0, duration=-1 [ INFO ] Loading Inference Engine [ INFO ] Device info: [ INFO ] MYRIAD myriadPlugin version ......... 2021.4 Build ........... 0 Loading network files [ INFO ] Batch size is forced to 1. [ INFO ] Checking that the inputs are as the demo expects [ INFO ] Checking that the outputs are as the demo expects [ INFO ] Loading model to the device Segmentation fault

I don't know what could be the error or how to fix it. If anyone knows another way to do inference with YOLO on a Raspberry with the NCS it would be also good.

Thanks in advance

@vladimir-dudnik
Copy link
Contributor

@alvoron @terfendail could you please look at the issue?

@alvoron
Copy link
Contributor

alvoron commented Jul 13, 2021

@diego-varela-seijas thank you for raising the issue. We will try to reproduce it at the nearest time.
The cause of segmentation fault is often related to model size. Did you consider to try tiny version of YOLO?

@diego-varela-seijas
Copy link
Author

The version was already YOLOv3 tiny

@alvoron
Copy link
Contributor

alvoron commented Jul 14, 2021

@diego-varela-seijas did you build OMZ demo multi_channel_object_detection_demo_yolov3 on Raspberry Pi?

@diego-varela-seijas
Copy link
Author

Yes, the only step I didn't do on RPi was converting the model to .xml and .bin.

@alvoron
Copy link
Contributor

alvoron commented Jul 14, 2021

@diego-varela-seijas could you try to add -DCMAKE_CXX_FLAGS="-march=armv7-a" to cmake command when you build OMZ demo?

@diego-varela-seijas
Copy link
Author

Adding that made it work. Thank you!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RaspberryPi OpenVINO for RapsberryPi package VPU
Projects
None yet
Development

No branches or pull requests

4 participants