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

Fix progress bar new line issue in create_progress_bar #911

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix progress bar new line issue in create_progress_bar
- Removed the trailing newline character (\n) from bar_format in tqdm.
- This ensures the progress bar remains on the same line during updates, improving terminal output readability.
matthewaltenburg committed Oct 1, 2024

Verified

This commit was signed with the committer’s verified signature.
ob-stripe Olivier Bellone
commit 782aa01fb5df465a6fd0a8d5bfef967956895489
2 changes: 1 addition & 1 deletion torchtnt/utils/tqdm.py
Original file line number Diff line number Diff line change
@@ -49,7 +49,7 @@ def create_progress_bar(
desc=f"{desc} {current_epoch}",
total=total,
initial=num_steps_completed,
bar_format="{l_bar}{bar}{r_bar}\n",
bar_format="{l_bar}{bar}{r_bar}",
file=file,
)