diff --git a/utils/datasets.py b/utils/datasets.py index 9c271a9d..4fa74ac3 100755 --- a/utils/datasets.py +++ b/utils/datasets.py @@ -379,7 +379,7 @@ class LoadImagesAndLabels(Dataset): # for training/testing pbar.desc = 'Caching labels (%g found, %g missing, %g empty, %g duplicate, for %g images)' % ( nf, nm, ne, nd, n) - assert nf > 0, 'No labels found. See %s' % help_url + assert nf > 0, 'No labels found in %s. See %s' % (os.path.dirname(file) + os.sep, help_url) # Cache images into memory for faster training (WARNING: large datasets may exceed system RAM) if cache_images: # if training