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

[ONNX] override_model_input_shape helper function #1471

Merged
merged 2 commits into from
Mar 23, 2023

Conversation

bfineran
Copy link
Member

simple helper function to override an ONNX graph's input shape to a target shape

added to set a hardcoded starting shape for yolov5 graph exports with dynamic shape. (dynamic shape export is required to change image size, however deepsparse engine requires a static input shape and static input shapes provide good information for model analysis and shape inference)

test_plan:
manual, see yolov5 pr for extensive testing

@bfineran bfineran merged commit 77f1278 into main Mar 23, 2023
@bfineran bfineran deleted the hardcode-yolov5-export-shape branch March 23, 2023 16:17
bfineran added a commit that referenced this pull request Mar 23, 2023
…bjects (#1475) (#1476)

* [ONNX] override_model_input_shape helper function (#1471)

* [ONNX] patch previous commit to accept path-like objects (#1475)

* bump version to 1.4.4
bfineran added a commit that referenced this pull request Mar 23, 2023
…ects (#1475) (#1477)

* [ONNX] override_model_input_shape helper function (#1471)

* [ONNX] patch previous commit to accept path-like objects (#1475)
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

3 participants