-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Add refresh_rate
to RichProgressBar
#10497
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
Conversation
Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id> |
@@ -289,14 +285,18 @@ def _init_progress(self, trainer): | |||
self.progress = CustomProgress( | |||
*self.configure_columns(trainer), | |||
self._metric_component, | |||
refresh_per_second=self.refresh_rate_per_second, | |||
auto_refresh=False, |
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.
I think this is the fix I proposed in #9647 to @SeanNaren to prevent threading issues in the render function.
Did you check that this might enable #9647 to pass the CI now?
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.
Talked to Sean regarding it, it didn't work!
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.
Hi @kaushikb11, I'm working on #13937 and debugging it has led me to this PR. Do you remember if there is any particular reason why we changed auto_refresh
from True
to False
? Was it for #10362?
Co-authored-by: ananthsub <[email protected]>
EDIT: deleting my comment, as the below proves we need to disable refresh. |
@SeanNaren It works as expected on Colab. |
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.
Looks good! Thanks for this @kaushikb11.
Regarding the breaking change, we could make a deprecation process for it but I'm indifferent here.
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!
What does this PR do?
closes #10607
Changed
refresh_rate_per_second
param toreferesh_rate
forRichProgressBar
signature to matchTQDMProgressBar
's interfaceDoes your PR introduce any breaking changes? If yes, please list them.
Before submitting
PR review
Anyone in the community is welcome to review the PR.
Before you start reviewing make sure you have read Review guidelines. In short, see the following bullet-list:
Did you have fun?
Make sure you had fun coding 🙃
cc @Borda @justusschock @kaushikb11 @rohitgr7 @SeanNaren