Update datasets.py

pull/1/head
Glenn Jocher 5 years ago committed by GitHub
parent 47bf1730fa
commit 13a09fa68a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -295,7 +295,6 @@ class LoadImagesAndLabels(Dataset): # for training/testing
path = p # *.npy dir
self.img_files = [x.replace('/', os.sep) for x in f if os.path.splitext(x)[-1].lower() in img_formats]
except:
# Maybe avoid handling bare exceptions
raise Exception('Error loading data from %s. See %s' % (path, help_url))
n = len(self.img_files)

Loading…
Cancel
Save