Update datasets.py (#169)

This commit is contained in:
Fatih Baltacı 2019-03-27 17:44:19 +03:00 committed by Glenn Jocher
parent 47eab968ab
commit cb67d64a5f
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ class LoadImagesAndLabels(Dataset): # for training/testing
assert len(self.img_files) > 0, 'No images found in %s' % path assert len(self.img_files) > 0, 'No images found in %s' % path
self.img_size = img_size self.img_size = img_size
self.augment = augment self.augment = augment
self.label_files = [x.replace('images', 'labels').replace('.bmp', '.txt').replace('.jpg', '.txt') self.label_files = [x.replace('images', 'labels').replace('.bmp', '.txt').replace('.jpg', '.txt').replace('.png', '.txt')
for x in self.img_files] for x in self.img_files]
def __len__(self): def __len__(self):