-
Notifications
You must be signed in to change notification settings - Fork 0
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Downgrade torchmetrics to 0.6.0 #19
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks Cory for eliminating the performance bottleneck.
Running the training with the two version of Also, I ran a profiler in the CPU (seems that the profiler times are more reliable in CPU than GPU). Here are the results:
|
What does this PR do?
torchmetrics > 0.6.0 is slow and this still has not been fixed in newer versions: Lightning-AI/torchmetrics#1024.
This should improve the performance of object detection training from 3 hours to 1 hour.
Type of change
Please check all relevant options.
Testing
I trained an object detector for 50 iterations:
With be5dbcb, it takes:
With 6542ab0, it takes:
Before submitting
pre-commit run -a
command without errorsDid you have fun?
Make sure you had fun coding 馃檭