Skip to content

Commit f54d28b

Browse files
committed
improve assert no labels found
1 parent 933e05c commit f54d28b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/datasets.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ def __init__(self, path, img_size=416, batch_size=16, augment=False, hyp=None, r
379379

380380
pbar.desc = 'Caching labels (%g found, %g missing, %g empty, %g duplicate, for %g images)' % (
381381
nf, nm, ne, nd, n)
382-
assert nf > 0, 'No labels found. See %s' % help_url
382+
assert nf > 0, 'No labels found in %s. See %s' % (os.path.dirname(file) + os.sep, help_url)
383383

384384
# Cache images into memory for faster training (WARNING: large datasets may exceed system RAM)
385385
if cache_images: # if training

0 commit comments

Comments
 (0)