Skip to content

Commit 49d8917

Browse files
glenn-jocherClay Januhowski
authored andcommitted
Update warning emojis (ultralytics#8678)
1 parent c960fdb commit 49d8917

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

utils/general.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ def check_dataset(data, autodownload=True):
474474
for k in 'train', 'val', 'nc':
475475
assert k in data, emojis(f"data.yaml '{k}:' field missing ❌")
476476
if 'names' not in data:
477-
LOGGER.warning(emojis("data.yaml 'names:' field missing ⚠, assigning default names 'class0', 'class1', etc."))
477+
LOGGER.warning(emojis("data.yaml 'names:' field missing ⚠, assigning default names 'class0', 'class1', etc."))
478478
data['names'] = [f'class{i}' for i in range(data['nc'])] # default names
479479

480480
# Resolve paths
@@ -490,7 +490,7 @@ def check_dataset(data, autodownload=True):
490490
if val:
491491
val = [Path(x).resolve() for x in (val if isinstance(val, list) else [val])] # val path
492492
if not all(x.exists() for x in val):
493-
LOGGER.info(emojis('\nDataset not found ⚠, missing paths %s' % [str(x) for x in val if not x.exists()]))
493+
LOGGER.info(emojis('\nDataset not found ⚠, missing paths %s' % [str(x) for x in val if not x.exists()]))
494494
if not s or not autodownload:
495495
raise Exception(emojis('Dataset not found ❌'))
496496
t = time.time()

0 commit comments

Comments
 (0)