|
|
@ -24,7 +24,7 @@ from ultralytics.utils.checks import check_file, check_font, is_ascii
|
|
|
|
from ultralytics.utils.downloads import download, safe_download, unzip_file
|
|
|
|
from ultralytics.utils.downloads import download, safe_download, unzip_file
|
|
|
|
from ultralytics.utils.ops import segments2boxes
|
|
|
|
from ultralytics.utils.ops import segments2boxes
|
|
|
|
|
|
|
|
|
|
|
|
HELP_URL = 'See https://docs.ultralytics.com/yolov5/tutorials/train_custom_data'
|
|
|
|
HELP_URL = 'See https://docs.ultralytics.com/datasets/detect for YOLO dataset format help.'
|
|
|
|
IMG_FORMATS = 'bmp', 'dng', 'jpeg', 'jpg', 'mpo', 'png', 'tif', 'tiff', 'webp', 'pfm' # image suffixes
|
|
|
|
IMG_FORMATS = 'bmp', 'dng', 'jpeg', 'jpg', 'mpo', 'png', 'tif', 'tiff', 'webp', 'pfm' # image suffixes
|
|
|
|
VID_FORMATS = 'asf', 'avi', 'gif', 'm4v', 'mkv', 'mov', 'mp4', 'mpeg', 'mpg', 'ts', 'wmv', 'webm' # video suffixes
|
|
|
|
VID_FORMATS = 'asf', 'avi', 'gif', 'm4v', 'mkv', 'mov', 'mp4', 'mpeg', 'mpg', 'ts', 'wmv', 'webm' # video suffixes
|
|
|
|
PIN_MEMORY = str(os.getenv('PIN_MEMORY', True)).lower() == 'true' # global pin_memory for dataloaders
|
|
|
|
PIN_MEMORY = str(os.getenv('PIN_MEMORY', True)).lower() == 'true' # global pin_memory for dataloaders
|
|
|
|