glenn-jocher commited on
Commit
13a09fa
·
unverified ·
1 Parent(s): 47bf173

Update datasets.py

Browse files
Files changed (1) hide show
  1. utils/datasets.py +0 -1
utils/datasets.py CHANGED
@@ -295,7 +295,6 @@ class LoadImagesAndLabels(Dataset): # for training/testing
295
  path = p # *.npy dir
296
  self.img_files = [x.replace('/', os.sep) for x in f if os.path.splitext(x)[-1].lower() in img_formats]
297
  except:
298
- # Maybe avoid handling bare exceptions
299
  raise Exception('Error loading data from %s. See %s' % (path, help_url))
300
 
301
  n = len(self.img_files)
 
295
  path = p # *.npy dir
296
  self.img_files = [x.replace('/', os.sep) for x in f if os.path.splitext(x)[-1].lower() in img_formats]
297
  except:
 
298
  raise Exception('Error loading data from %s. See %s' % (path, help_url))
299
 
300
  n = len(self.img_files)