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

Export single output only #7259

Merged
merged 7 commits into from
Apr 3, 2022
Merged

Export single output only #7259

merged 7 commits into from
Apr 3, 2022

Conversation

glenn-jocher
Copy link
Member

@glenn-jocher glenn-jocher commented Apr 3, 2022

πŸ› οΈ PR Summary

Made with ❀️ by Ultralytics Actions

🌟 Summary

Enhanced ONNX export compatibility for YOLOv5 object detection.

πŸ“Š Key Changes

  • Added an export flag to the Detect class to enable a specific mode during model export.
  • Modified the forward method logic in Detect to accommodate the new export flag.
  • Set the export flag to True in export.py to activate the mode when exporting models.

🎯 Purpose & Impact

  • πŸ›  Purpose: Simplifies the model export process by allowing the Detect layer to adapt its output specifically for export scenarios, such as when converting to ONNX format.
  • πŸš€ Impact: Users exporting YOLOv5 models to ONNX for deployment in different environments will experience a more streamlined process with fewer compatibility issues.

@glenn-jocher glenn-jocher self-assigned this Apr 3, 2022
@glenn-jocher glenn-jocher merged commit 05cf0d1 into master Apr 3, 2022
@glenn-jocher glenn-jocher deleted the export/single_output branch April 3, 2022 19:29
BjarneKuehl pushed a commit to fhkiel-mlaip/yolov5 that referenced this pull request Aug 26, 2022
* Update

* Update

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
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