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

Update FP16 --half argument for test.py and detect.py #3532

Merged
merged 2 commits into from
Jun 8, 2021

Conversation

glenn-jocher
Copy link
Member

@glenn-jocher glenn-jocher commented Jun 8, 2021

πŸ› οΈ PR Summary

Made with ❀️ by Ultralytics Actions

🌟 Summary

Improved command-line argument parsing for half-precision inference.

πŸ“Š Key Changes

  • Changed the --half argument to use action='store_true' instead of type=bool for better command-line usability.

🎯 Purpose & Impact

  • Enhances Usability: Simplifies how users enable half-precision inference by just including the flag (--half) rather than specifying a boolean value.
  • Avoids Confusion: Prevents potential user errors where the incorrect passage of boolean values could lead to unexpected behavior.
  • Impact on Users: Users can more intuitively activate FP16 inference to potentially speed up model inference on compatible hardware.

@glenn-jocher glenn-jocher merged commit c6b51f4 into master Jun 8, 2021
@glenn-jocher glenn-jocher deleted the glenn-jocher-patch-4 branch June 8, 2021 16:47
Lechtr pushed a commit to Lechtr/yolov5 that referenced this pull request Jul 20, 2021
…3532)

* Update FP16 `--half` argument for test.py and detect.py

* Update detect.py

(cherry picked from commit c6b51f4)
BjarneKuehl pushed a commit to fhkiel-mlaip/yolov5 that referenced this pull request Aug 26, 2022
…3532)

* Update FP16 `--half` argument for test.py and detect.py

* Update detect.py
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