提交 224e9a1d authored 作者: Glenn Jocher's avatar Glenn Jocher

Merge remote-tracking branch 'origin/master'

...@@ -436,6 +436,7 @@ class LoadImagesAndLabels(Dataset): # for training/testing ...@@ -436,6 +436,7 @@ class LoadImagesAndLabels(Dataset): # for training/testing
image.verify() # PIL verify image.verify() # PIL verify
# _ = io.imread(img) # skimage verify (from skimage import io) # _ = io.imread(img) # skimage verify (from skimage import io)
shape = exif_size(image) # image size shape = exif_size(image) # image size
assert (shape[0] > 9) & (shape[1] > 9), 'image size <10 pixels'
if os.path.isfile(label): if os.path.isfile(label):
with open(label, 'r') as f: with open(label, 'r') as f:
l = np.array([x.split() for x in f.read().splitlines()], dtype=np.float32) # labels l = np.array([x.split() for x in f.read().splitlines()], dtype=np.float32) # labels
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论