From bba7cf55a089f26f0416b76db2ddb807f165aa71 Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Sun, 18 Jun 2023 03:35:24 +0200 Subject: [PATCH] Fix data.yaml absolute path bug (#3242) --- ultralytics/yolo/data/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ultralytics/yolo/data/utils.py b/ultralytics/yolo/data/utils.py index a3338fe..b4832be 100644 --- a/ultralytics/yolo/data/utils.py +++ b/ultralytics/yolo/data/utils.py @@ -226,7 +226,7 @@ def check_det_dataset(dataset, autodownload=True): if not path.is_absolute(): path = (DATASETS_DIR / path).resolve() - data['path'] = path # download scripts + data['path'] = path # download scripts for k in 'train', 'val', 'test': if data.get(k): # prepend path if isinstance(data[k], str):