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

YOLOv10 to onnx format #13097

Open
1 task done
shimaamorsy opened this issue Jun 17, 2024 · 1 comment
Open
1 task done

YOLOv10 to onnx format #13097

shimaamorsy opened this issue Jun 17, 2024 · 1 comment
Labels
question Further information is requested

Comments

@shimaamorsy
Copy link

Search before asking

Question

How to export yolov10-seg to onnx format ?

Additional

No response

@shimaamorsy shimaamorsy added the question Further information is requested label Jun 17, 2024
@glenn-jocher
Copy link
Member

@shimaamorsy hello!

Thank you for reaching out with your question on exporting YOLOv10-seg to ONNX format. While YOLOv10 isn't officially released by Ultralytics, I can guide you on how to export a YOLOv5 model to ONNX, which should be similar for any future versions.

First, ensure you have the latest version of the YOLOv5 repository and the required dependencies:

git clone https://github.com/ultralytics/yolov5
cd yolov5
pip install -r requirements.txt

To export a YOLOv5 model to ONNX format, you can use the export.py script. Here's an example command:

python export.py --weights yolov5s.pt --include onnx

Replace yolov5s.pt with the path to your trained YOLOv10-seg model weights. This command will generate an ONNX file in the same directory.

For more detailed instructions, you can refer to our Model Export Tutorial.

If you encounter any issues during the export process, please provide a minimum reproducible example so we can assist you better. You can find guidance on creating one here.

Feel free to reach out if you have any further questions. Happy coding! 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants