improve assert no labels found
This commit is contained in:
parent
933e05cb44
commit
f54d28ba63
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue