Fix RayTune for < 8 CPUs (#3102)

This commit is contained in:
Glenn Jocher
2023-06-08 18:50:05 +02:00
committed by GitHub
parent 3ae81ee9d1
commit e88c89d269
2 changed files with 8 additions and 6 deletions

View File

@ -37,7 +37,7 @@ AUTOINSTALL = str(os.getenv('YOLO_AUTOINSTALL', True)).lower() == 'true' # glob
VERBOSE = str(os.getenv('YOLO_VERBOSE', True)).lower() == 'true' # global verbose mode
TQDM_BAR_FORMAT = '{l_bar}{bar:10}{r_bar}' # tqdm bar format
LOGGING_NAME = 'ultralytics'
MACOS, LINUX, WINDOWS = (platform.system() == x for x in ['Darwin', 'Linux', 'Windows']) # environment booleans
MACOS, LINUX, WINDOWS = (platform.system() == x for x in {'Darwin', 'Linux', 'Windows'}) # environment booleans
HELP_MSG = \
"""
Usage examples for running YOLOv8: