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

Various optimizations & fix YOLOv8 image value scaling bug #97

Merged
merged 14 commits into from
Apr 8, 2024

Conversation

seth-planet
Copy link
Contributor

@seth-planet seth-planet commented Apr 5, 2024

  • Increase parallelism count as tpu_runner should be thread-safe. Threads are cheap so we can have a large value here. (?)
  • Fix minor bugs when running TPU code in isolation.
  • Delete unused file.
  • Reduce mem copies & GIL lock in TPU running loop.
  • Convert output to float32 during output tensor copy to reduce memory churn.
  • Rework watchdog timing & handling due to complaint about TPU re-init time.
  • Convert input image to RGB only if needed.
  • Revert input pixel value scaling optimization that broke YOLOv8.
  • Input image auto-contrast & optimizations.

@ChrisMaunder ChrisMaunder self-assigned this Apr 8, 2024
@ChrisMaunder ChrisMaunder merged commit cf91d5c into codeproject:main Apr 8, 2024
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