Fix data.yaml absolute path bug (#3242)

pull/3236/head^2
Glenn Jocher 1 year ago committed by GitHub
parent 9d38d2b044
commit bba7cf55a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      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):

Loading…
Cancel
Save