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

How to Use CLI to export dynamic onnx model? #230

Closed
1 task done
wjj19950828 opened this issue Jan 11, 2023 · 3 comments
Closed
1 task done

How to Use CLI to export dynamic onnx model? #230

wjj19950828 opened this issue Jan 11, 2023 · 3 comments
Labels
question Further information is requested Stale

Comments

@wjj19950828
Copy link

wjj19950828 commented Jan 11, 2023

Search before asking

Question

How to Use CLI to export dynamic onnx model?

export static onnx model by

yolo task=detect mode=export model=yolov8s.pt format=onnx

How to export dynamic shape?

@wjj19950828 wjj19950828 added the question Further information is requested label Jan 11, 2023
@wjj19950828
Copy link
Author

export dynamic model by

yolo task=detect mode=export model=yolov8s.pt format=onnx dynamic=True

but name may have some question, [batch, Concatoutput0_dim_2, anchors]should be more appropriate?
image

@bakeryproducts bakeryproducts mentioned this issue Jan 11, 2023
1 task
@github-actions
Copy link

👋 Hello there! We wanted to give you a friendly reminder that this issue has not had any recent activity and may be closed soon, but don't worry - you can always reopen it if needed. If you still have any questions or concerns, please feel free to let us know how we can help.

For additional resources and information, please see the links below:

Feel free to inform us of any other issues you discover or feature requests that come to mind in the future. Pull Requests (PRs) are also always welcomed!

Thank you for your contributions to YOLO 🚀 and Vision AI ⭐

@github-actions github-actions bot added the Stale label Mar 24, 2023
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Apr 5, 2023
@pderrenger
Copy link
Member

@wjj19950828 to export a dynamic ONNX model using the CLI, you can run the following command:

yolo task=detect mode=export model=yolov8s.pt format=onnx dynamic=True

Regarding the naming of the dynamic output dimensions, you mentioned that [batch, Concatoutput0_dim_2, anchors] may be more appropriate. This is a customization that is often done based on the specific requirements of your project or framework. You can adjust these names as needed for your use case.

If you need further assistance with the dynamic model export or have any other questions, feel free to ask!

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

No branches or pull requests

2 participants