This commit is contained in:
Glenn Jocher 2019-04-18 14:48:14 +02:00
parent 286257c5ac
commit c5e58b6484
1 changed files with 1 additions and 1 deletions

View File

@ -143,7 +143,7 @@ class LoadImagesAndLabels(Dataset): # for training/testing
for x in self.img_files]
if n < 200: # preload all images into memory if possible
self.imgs = (cv2.imread(img_files[i]) for i in range(n))
self.imgs = [cv2.imread(img_files[i]) for i in range(n)]
def __len__(self):
return len(self.img_files)