Segmentation fault when inferencing with yolov8 in c++
Nobody has claimed this yet.
- Dominant language
- Jupyter Notebook
- Stars
- 9.8k
- Forks
- 1.6k
- PR merge metrics
- No merged PRs in 30d
Description
I'm getting a segmentation fault when inferencing using yolov8. I have checked every input and function arguments and it's correct. I have no idea why it's popping up.
Segmentation faults occurs here:
ThrowOnError(GetApi().Run(p_, run_options, input_names, ort_input_values, input_count, output_names, output_count, ort_output_values));
I have exported yolov8 as follows:
from ultralytics import YOLO
model = YOLO("yolov8n.pt")
model.export(format="onnx",opset=12, imgsz=[640, 640])
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the C++ Run call shown in the report and reproduce it with the provided Python YOLOv8 export command. Check the model inputs and runtime diagnostics around that call; done means the segmentation fault is reproduced with a documented cause and a verified correction or a clearly scoped missing detail.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, python
- Domain
- computer-vision, machine-learning
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100