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
ultralytics 8.1.43
40% faster ultralytics
imports
#9547
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #9547 +/- ##
==========================================
- Coverage 37.99% 37.96% -0.03%
==========================================
Files 121 121
Lines 15277 15281 +4
==========================================
- Hits 5804 5802 -2
- Misses 9473 9479 +6
Flags with carried forward coverage won't be shown. Click here to find out more. β View full report in Codecov by Sentry. |
how faster it can be?any test? |
@ddeevvaa I still haven't removed it completely, there's one file left, but seems to improve speed from about 1.4s -> 1.0s import |
Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
@ddeevvaa final results are here averaged over 30 imports. Speedup of 25.3% acheived, reduced import time from 1411ms by 357ms to 1054ms on my Macbook Air M2. EDIT: 542 ms removed from import (1411 ms -> 869 ms 38% faster) after also scoping this PR
|
Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
very strong~ |
@ddeevvaa thank you so much for the encouraging feedback! π We're thrilled by the performance improvements as well and can't wait for the merge to happen. It's all about making YOLOv8 better and faster for everyone. Keep an eye out for updates soon! |
torchvision
for faster ultralytics
importsultralytics 8.1.43
40% faster ultralytics
imports
Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
π οΈ PR Summary
Made with β€οΈ by Ultralytics Actions
π Summary
This PR introduces various updates across testing, data handling, and utility modules in the Ultralytics repository.
π Key Changes
ClassificationDataset
class definition for clarity and improved import efficiency.8.1.43
.torchvision
and other heavy libraries within function scopes to accelerate startup times.π― Purpose & Impact
In summary, this PR brings forth important updates that streamline operations, enhance performance, and improve the overall user and developer experience of the Ultralytics repository. π