new check_dataset functions (#43)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
Ayush Chaurasia 2022-11-12 19:32:41 +05:30 committed by GitHub
parent d143ac666f
commit 1f3aad86c1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 336 additions and 62 deletions

View file

@ -7,7 +7,7 @@ from pathlib import Path
# Constants
FILE = Path(__file__).resolve()
ROOT = FILE.parents[2] # YOLOv5 root directory
ROOT = FILE.parents[2] # YOLO
RANK = int(os.getenv('RANK', -1))
DATASETS_DIR = ROOT.parent / 'datasets' # YOLOv5 datasets directory
NUM_THREADS = min(8, max(1, os.cpu_count() - 1)) # number of YOLOv5 multiprocessing threads