ultralytics 8.0.65 HUB COCO128 fix (#1848)

This commit is contained in:
Glenn Jocher
2023-04-05 19:04:32 +02:00
committed by GitHub
parent e7a94c79c5
commit 9af3e69b1a
2 changed files with 3 additions and 2 deletions

View File

@ -241,7 +241,8 @@ def check_det_dataset(dataset, autodownload=True):
if val:
val = [Path(x).resolve() for x in (val if isinstance(val, list) else [val])] # val path
if not all(x.exists() for x in val):
m = f"\nDataset '{dataset}' images not found ⚠️, missing paths %s" % [str(x) for x in val if not x.exists()]
name = str(dataset).split('?')[0] # dataset name with URL auth stripped
m = f"\nDataset '{name}' images not found ⚠️, missing paths %s" % [str(x) for x in val if not x.exists()]
if s and autodownload:
LOGGER.warning(m)
else: