-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
ONNX model enforcing a specific input size? #1388
Comments
@Roulbac recommend YOLOv5 repo for export: https://docs.ultralytics.com/yolov5/tutorials/model_export |
Thanks for the quick reply! |
@Roulbac no, it is not compatible. I would recommend you train a yolov5 model, but you can also train a yolov3 model on the v5 repo. You can use this command on the v5 repo: And then you simply run export.py to export. |
HI, |
@caikw0602 this repo is not interoperable with yolov5, they are completely seperate and share no models. |
Thank you for your reply. Then, how can I transfer .pt of yolov3-spp to .onnx please. |
Go to yolov5 repo. There's an export tutorial. |
I have transferred your yolov5.pt to .onnx sucessfully. I wanna know how to transfer yolov3.pt to .onnx. |
@caikw0602 what glenn is suggesting is that you retrain your yolov3 using the yolov5 github repository. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Hi,
I am looking to export the yolov3 model as an ONNX, though it looks like code in this repository is enforcing a specific size when exporting as ONNX (320x192).
yolov3/detect.py
Line 9 in 8241bf6
Is there a specific reason for that? Am I still able to use the ONNX export if I change the code to allow for a different size?
The text was updated successfully, but these errors were encountered: