提交 278969b6 编写于 作者: S Sylwester Fraczek 提交者: whs

crnn-ctc label was not found (#912)

上级 825e6bab
......@@ -136,6 +136,7 @@ class DataGenerator(object):
img = Image.open(img_path).convert('L')
img = np.array(img) - 127.5
img = img[np.newaxis, ...]
label = [int(c) for c in line.split(' ')[3].split(',')]
yield img, label
else:
while True:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册