-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
truncate long version number in progress bar #2594
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2594 +/- ##
======================================
Coverage 90% 91%
======================================
Files 82 82
Lines 6813 6786 -27
======================================
- Hits 6164 6153 -11
+ Misses 649 633 -16 |
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.
seems like GH action was not triggered, mind push any commit...
pytorch_lightning/core/lightning.py
Outdated
@@ -1588,7 +1603,7 @@ def get_progress_bar_dict(self) -> Dict[str, Union[int, str]]: | |||
tqdm_dict['split_idx'] = self.trainer.split_idx | |||
|
|||
if self.trainer.logger is not None and self.trainer.logger.version is not None: | |||
tqdm_dict['v_num'] = self.trainer.logger.version | |||
tqdm_dict['v_num'] = str(self.trainer.logger.version)[:3] |
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.
btw, why just three?
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.
github doesn't show it, but I pushed more commits to the branch.
github has some issues at the moment it seems.
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.
btw, why just three?
What would be a better number in your optinion? 5?
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 am just trying to understand why not all string...
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.
because some loggers like MLFlow use a very long string as a version and william suggested here to only show the last few bits in the progress bar.
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.
ok, but you show the first three here... :] so str(self.trainer.logger.version)[-3:]
so what about 7 as git does? :]
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.
ok, but you show the first three here... :] so str(self.trainer.logger.version)[-3:]
yes I have that see latest commit.
Let me ask on the original issue what people say about length
ac1e6b7
to
d2021c1
Compare
a537ba0
to
475cb46
Compare
What does this PR do?
Fixes #1595 and adds docs how to override defaults.
Before submitting
PR review
Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in Github issues there's a high chance it will not be merged.
Did you have fun?
Make sure you had fun coding 🙃