ultralytics 8.3.133 Search relative YAML dataset paths in training (#20607)

Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
Mohammed Yasin 2025-05-13 04:11:35 +06:00 committed by GitHub
parent 689513bc51
commit cb2574aeb6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -424,8 +424,8 @@ def check_det_dataset(dataset, autodownload=True):
# Resolve paths
path = Path(extract_dir or data.get("path") or Path(data.get("yaml_file", "")).parent) # dataset root
if not path.is_absolute():
path = (DATASETS_DIR / path).resolve()
if not path.exists() and not path.is_absolute():
path = (DATASETS_DIR / path).resolve() # path relative to DATASETS_DIR
# Set paths
data["path"] = path # download scripts