Update train, val tqdm to fixed width (#5367)
* Update tqdm for fixed width * Update val.py * Update val.py * Try ncols= in train.py * NCOLS * NCOLS * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * bar_format * position 0 leave true * exp0 * auto * auto * Cleanup * Cleanup * Cleanup Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
27bf4282d3
commit
61c50199a2
3 files changed
+13
-8
No files matched your search
@@ -11,6 +11,7 @@ import os
|
||||
import platform
|
||||
import random
|
||||
import re
|
||||
import shutil
|
||||
import signal
|
||||
import time
|
||||
import urllib
|
||||
@@ -834,3 +835,7 @@ def increment_path(path, exist_ok=False, sep='', mkdir=False):
|
||||
if mkdir:
|
||||
path.mkdir(parents=True, exist_ok=True) # make directory
|
||||
return path
|
||||
|
||||
|
||||
# Variables
|
||||
NCOLS = 0 if is_docker() else shutil.get_terminal_size().columns # terminal window size
|
||||
Reference in new issue
Block a user