|
|
@ -423,7 +423,7 @@ class LoadImagesAndLabels(Dataset): # for training/testing
|
|
|
|
ne += 1 # print('empty labels for image %s' % self.img_files[i]) # file empty
|
|
|
|
ne += 1 # print('empty labels for image %s' % self.img_files[i]) # file empty
|
|
|
|
# os.system("rm '%s' '%s'" % (self.img_files[i], self.label_files[i])) # remove
|
|
|
|
# os.system("rm '%s' '%s'" % (self.img_files[i], self.label_files[i])) # remove
|
|
|
|
|
|
|
|
|
|
|
|
if rank in [-1,0]:
|
|
|
|
if rank in [-1, 0]:
|
|
|
|
pbar.desc = 'Scanning labels %s (%g found, %g missing, %g empty, %g duplicate, for %g images)' % (
|
|
|
|
pbar.desc = 'Scanning labels %s (%g found, %g missing, %g empty, %g duplicate, for %g images)' % (
|
|
|
|
cache_path, nf, nm, ne, nd, n)
|
|
|
|
cache_path, nf, nm, ne, nd, n)
|
|
|
|
if nf == 0:
|
|
|
|
if nf == 0:
|
|
|
|