This commit is contained in:
Glenn Jocher 2019-05-23 13:19:49 +02:00
parent 001193b9c7
commit 8f9ab337b0
1 changed files with 1 additions and 1 deletions

View File

@ -227,9 +227,9 @@ class LoadImagesAndLabels(Dataset): # for training/testing
img = self.imgs[index]
if img is None:
img = cv2.imread(img_path) # BGR
assert img is not None, 'File Not Found ' + img_path
if self.n < 1001:
self.imgs[index] = img # cache image into memory
assert img is not None, 'File Not Found ' + img_path
# Augment colorspace
augment_hsv = True