question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Custom Yolov4 IR infer at c++ sample gives me Segmentation fault (core dumped)

See original GitHub issue

I’ve trained my own custom yolov4 (darknet) on 1 class, then convert it to onnx successfully and to IR as well, now I want to infer the IR model with c++ samples, I used those samples ( multi_channel_object_detection_demo_yolov3 and object_detection_demo) and both gives me the following error (Segmentation fault (core dumped)

image

The run code is:

./multi_channel_object_detection_demo_yolov3-m /home/aya/Deployment_project/Plate_IR/Plate_yolov4_1_3_416_416_static.xml -d CPU -i /home/aya/Deployment_project/test_samples/1.jpg

OR

./object_detection_demo -m /home/aya/Deployment_project/Plate_IR/Plate_yolov4_1_3_416_416_static.xml -d CPU -i /home/aya/Deployment_project/test_samples/1.jpg -at yolo -labels /home/aya/Deployment_project/Models/Plate/Plate.txt

I use this docker image: https://hub.docker.com/r/openvino/ubuntu20_dev my cpu is: Intel® Xeon® CPU E5-2695 v4 @ 2.10GHz × 6

Is there anything I do wrong ?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:13 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
AyaNasser96commented, Feb 9, 2022

@eaidova Thank you, I forget to do that scaling step, this worked perfectly ^^ I will submit a detailed solution here and then close the issue.

2reactions
eaidovacommented, Feb 8, 2022

How do you convert model to IR? Our OMZ demos assume that model expects BGR image in [0, 255] range. It means that some preprocessing options should be included to MO command line (if I right remember for yolo models standard is RGB image [0, 1]): –scale 255 --reverse_input_channels

Read more comments on GitHub >

github_iconTop Results From Across the Web

deepstream SDK 4.0 Yolo Segmentation fault (core dumped)
Hi, I am new to deepstream. After the installation of tensorrt and deepstream, I tried to run yolo but failed. Below are the...
Read more >
Segmentation fault (core dumped) #828 - ultralytics/yolov5
when run train.py, it will show Segmentation fault (core dumped)? ... into custom iOS and Android apps for realtime 30 FPS video inference....
Read more >
Segmentation fault (core dumped) - Infering with Tensorflow ...
I am using the Tensorflow C++ API to load a SavedModel and run inference. The model loads fine, ...
Read more >
Segmentation Fault error( core dumped) while running Yolov5 ...
Hi! I am trying to run the ultralytics/yolov5 on my Raspberry Pi 4 I have custom-trained the dataset successfully and trying to measure...
Read more >
How to Train YOLOv4 on a Custom Dataset - Roboflow Blog
In this tutorial, we walkthrough how to train YOLOv4 Darknet for state-of-the-art object detection on your own dataset.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found