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

Support static model export with End2End (EfficientNMS) #479

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

laugh12321
Copy link

The previous onnx_end2end option enforced dynamic model export, preventing static model export.

This pull request introduces the ability to export static models.

Example:

# dynamic export
python3 export.py --weights ./yolov9-c.pt --imgsz 640 --simplify --include onnx_end2end --dynamic

# static export with batch size 2
python3 export.py --weights ./yolov9-c.pt --imgsz 640 --simplify --include onnx_end2end --batch-size 2

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

Successfully merging this pull request may close these issues.

None yet

1 participant