Unverified 提交 13a09fa6 authored 作者: Glenn Jocher's avatar Glenn Jocher 提交者: GitHub

Update datasets.py

上级 47bf1730
...@@ -295,7 +295,6 @@ class LoadImagesAndLabels(Dataset): # for training/testing ...@@ -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)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论