This commit is contained in:
Glenn Jocher 2019-05-25 11:57:19 +02:00
parent 8f9ab337b0
commit 6f05c5347e
1 changed files with 1 additions and 1 deletions

View File

@ -204,7 +204,7 @@ class LoadImagesAndLabels(Dataset): # for training/testing
assert (l[:, 1:] <= 1).all(), 'non-normalized or out of bounds coordinate labels: %s' % file
self.labels[i] = l
except:
print('Warning: missing labels for %s' % self.img_files[i]) # missing label file
pass # print('Warning: missing labels for %s' % self.img_files[i]) # missing label file
assert len(np.concatenate(self.labels, 0)) > 0, 'No labels found. Incorrect label paths provided.'
def __len__(self):