-
-
Notifications
You must be signed in to change notification settings - Fork 102
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
[Help]: Segmentation fault when using yolov10 #38
Comments
@timarnoldev Hi! A segmentation fault can occur due to issues related to memory access, possibly caused by model loading, image processing, or other memory management operations. To help diagnose the issue, I have a few suggestions and questions:
If possible, please share the full project code or key parts of it so I can assist you further in resolving this issue. |
Thanks for your quick response. I used the ultralytics cli to convert from .pt -> .onnx with this command
Then:
|
@timarnoldev The ONNX model exported using |
I followed the steps from #28 exactly, but I it still crashes.
This is the only output I get from the demo/detect/detect.cpp executable. Is there anything I can provide to you to troubleshoot the issue? @laugh12321 Steps to reproduce:
|
@timarnoldev Your process seems correct. Please confirm the following:
The image below shows an example of inference using |
@timarnoldev I suspect you are using the Please follow these steps: git clone -b nms https://github.com/laugh12321/yolov10.git
cd yolov10
conda create -n yolov10 python=3.9
conda activate yolov10
pip install -r requirements.txt
pip install -e .
yolo export model=best.pt format=onnx opset=13 simplify max_det=100 conf=0.17 iou=0.65 nms |
Indeed that was the problem. I guess I first installed the yolo cli from the repo and then switched the branch. |
I have a simple demo which should use this library for inference.
But it always crashes with a segmentation fault.
I tried it with yolov9 and yolov10. But everytime I get the same error
Process finished with exit code 139 (interrupted by signal 11:SIGSEGV)
Used versions:
NVIDIA-SMI 555.42.06 Driver Version: 555.42.06 CUDA Version: 12.5 TensorRT 10.2
The text was updated successfully, but these errors were encountered: