Skip to content

Commit 9006b41

Browse files
authored
Add global YOLOv5_DATASETS_DIR (#9586)
Update general.py Signed-off-by: Glenn Jocher <[email protected]> Signed-off-by: Glenn Jocher <[email protected]>
1 parent 639d82f commit 9006b41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/general.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@
4343
RANK = int(os.getenv('RANK', -1))
4444

4545
# Settings
46-
DATASETS_DIR = ROOT.parent / 'datasets' # YOLOv5 datasets directory
4746
NUM_THREADS = min(8, max(1, os.cpu_count() - 1)) # number of YOLOv5 multiprocessing threads
47+
DATASETS_DIR = Path(os.getenv('YOLOv5_DATASETS_DIR', ROOT.parent / 'datasets')) # global datasets directory
4848
AUTOINSTALL = str(os.getenv('YOLOv5_AUTOINSTALL', True)).lower() == 'true' # global auto-install mode
4949
VERBOSE = str(os.getenv('YOLOv5_VERBOSE', True)).lower() == 'true' # global verbose mode
5050
FONT = 'Arial.ttf' # https://ultralytics.com/assets/Arial.ttf

0 commit comments

Comments
 (0)