We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
VERBOSE
1 parent 099a07e commit 029181dCopy full SHA for 029181d
utils/general.py
@@ -36,6 +36,7 @@
36
FILE = Path(__file__).resolve()
37
ROOT = FILE.parents[1] # YOLOv5 root directory
38
NUM_THREADS = min(8, max(1, os.cpu_count() - 1)) # number of YOLOv5 multiprocessing threads
39
+VERBOSE = str(os.getenv('VERBOSE', True)).lower() == 'true' # global verbose mode
40
41
torch.set_printoptions(linewidth=320, precision=5, profile='long')
42
np.set_printoptions(linewidth=320, formatter={'float_kind': '{:11.5g}'.format}) # format short g, %precision=5
@@ -54,7 +55,7 @@ def is_kaggle():
54
55
return False
56
57
-def set_logging(name=None, verbose=True):
58
+def set_logging(name=None, verbose=VERBOSE):
59
# Sets level and returns logger
60
if is_kaggle():
61
for h in logging.root.handlers:
0 commit comments