improve assert no labels found

This commit is contained in:
Glenn Jocher 2020-04-08 09:57:59 -07:00
parent 933e05cb44
commit f54d28ba63
1 changed files with 1 additions and 1 deletions

View File

@ -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)' % ( pbar.desc = 'Caching labels (%g found, %g missing, %g empty, %g duplicate, for %g images)' % (
nf, nm, ne, nd, n) 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) # Cache images into memory for faster training (WARNING: large datasets may exceed system RAM)
if cache_images: # if training if cache_images: # if training