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.
1 parent 639d82f commit 9006b41Copy full SHA for 9006b41
utils/general.py
@@ -43,8 +43,8 @@
43
RANK = int(os.getenv('RANK', -1))
44
45
# Settings
46
-DATASETS_DIR = ROOT.parent / 'datasets' # YOLOv5 datasets directory
47
NUM_THREADS = min(8, max(1, os.cpu_count() - 1)) # number of YOLOv5 multiprocessing threads
+DATASETS_DIR = Path(os.getenv('YOLOv5_DATASETS_DIR', ROOT.parent / 'datasets')) # global datasets directory
48
AUTOINSTALL = str(os.getenv('YOLOv5_AUTOINSTALL', True)).lower() == 'true' # global auto-install mode
49
VERBOSE = str(os.getenv('YOLOv5_VERBOSE', True)).lower() == 'true' # global verbose mode
50
FONT = 'Arial.ttf' # https://ultralytics.com/assets/Arial.ttf
0 commit comments