Update datasets.py
This commit is contained in:
1 parent
47bf1730fa
commit
13a09fa68a
1 file changed
-1
@@ -295,7 +295,6 @@ class LoadImagesAndLabels(Dataset): # for training/testing
|
|||||||
path = p # *.npy dir
|
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]
|
self.img_files = [x.replace('/', os.sep) for x in f if os.path.splitext(x)[-1].lower() in img_formats]
|
||||||
except:
|
except:
|
||||||
# Maybe avoid handling bare exceptions
|
|
||||||
raise Exception('Error loading data from %s. See %s' % (path, help_url))
|
raise Exception('Error loading data from %s. See %s' % (path, help_url))
|
||||||
|
|
||||||
n = len(self.img_files)
|
n = len(self.img_files)
|
||||||
|
|||||||
Reference in new issue
Block a user