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

Add --hard-fail argument to benchmarks for CI errors #8513

Merged
merged 11 commits into from
Jul 7, 2022

Conversation

glenn-jocher
Copy link
Member

@glenn-jocher glenn-jocher commented Jul 7, 2022

Will cause CI to fail on a benchmark failure (currently no hard errors are thrown, only warnings).

🛠️ PR Summary

Made with ❤️ by Ultralytics Actions

🌟 Summary

Improved error handling and model exporting options in YOLOv5 workflows.

📊 Key Changes

  • Added --hard-fail option in benchmarking script to enable throwing errors for benchmark failures.
  • Modified export options to specify support for CPU and GPU, and included assertions for CPU-specific and macOS-only support.
  • Added support for the --hard-fail flag in the Continuous Integration (CI) benchmarking workflow.

🎯 Purpose & Impact

  • 🎯 Error Handling: With the --hard-fail option, developers can more easily detect and handle issues during automated benchmarking, leading to more robust CI processes.
  • 💻 CPU/GPU Support: The differentiation between CPU and GPU support in the export options ensures users have clearer information regarding model deployment capabilities, potentially reducing confusion and unexpected errors.
  • 🛠️ CI/CD Improvements: The new flag in the CI workflow allows for stricter testing standards, which can lead to higher code quality and more reliable model performance after new changes are integrated.

@glenn-jocher glenn-jocher changed the title Add --hard-fail list argument to benchmarks for CI Add --hard-fail argument to benchmarks for CI errors Jul 7, 2022
@glenn-jocher glenn-jocher self-assigned this Jul 7, 2022
@glenn-jocher glenn-jocher merged commit 3e54651 into master Jul 7, 2022
@glenn-jocher glenn-jocher deleted the update/ci-benchmarks branch July 7, 2022 21:41
Shivvrat pushed a commit to Shivvrat/epic-yolov5 that referenced this pull request Jul 12, 2022
)

* Add `--hard-fail` list argument to benchmarks for CI

Will cause CI to fail on a benchmark failure for given indices.

* Update ci-testing.yml

* Attempt Failure (CI should fail)

* Update benchmarks.py

* Update export.py

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

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

* Update benchmarks.py

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

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

* Update ci-testing.yml

* Update benchmarks.py

* Update benchmarks.py

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
ctjanuhowski pushed a commit to ctjanuhowski/yolov5 that referenced this pull request Sep 8, 2022
)

* Add `--hard-fail` list argument to benchmarks for CI

Will cause CI to fail on a benchmark failure for given indices.

* Update ci-testing.yml

* Attempt Failure (CI should fail)

* Update benchmarks.py

* Update export.py

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

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

* Update benchmarks.py

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

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

* Update ci-testing.yml

* Update benchmarks.py

* Update benchmarks.py

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