mirror of
https://github.com/THU-MIG/yolov10.git
synced 2025-05-24 06:14:55 +08:00
Fix data.yaml absolute path bug (#3242)
This commit is contained in:
parent
9d38d2b044
commit
bba7cf55a0
@ -226,7 +226,7 @@ def check_det_dataset(dataset, autodownload=True):
|
|||||||
|
|
||||||
if not path.is_absolute():
|
if not path.is_absolute():
|
||||||
path = (DATASETS_DIR / path).resolve()
|
path = (DATASETS_DIR / path).resolve()
|
||||||
data['path'] = path # download scripts
|
data['path'] = path # download scripts
|
||||||
for k in 'train', 'val', 'test':
|
for k in 'train', 'val', 'test':
|
||||||
if data.get(k): # prepend path
|
if data.get(k): # prepend path
|
||||||
if isinstance(data[k], str):
|
if isinstance(data[k], str):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user