Otherwise it may cause following problem.
Traceback (most recent call last):
File "zhaoyuanying.py", line 84, in
t, l = converter.encode(cpu_texts)#,scanned=False)
File "/home/mcht/tmp/crnn_pytorch/utils.py", line 84, in encode
for char in text
File "/home/mcht/tmp/crnn_pytorch/utils.py", line 84, in
for char in text
KeyError: '-'
Hi:@meijieru https://github.com/meijieru/crnn.pytorch/blob/d3a47f91691b31b8d5336e2ed5932e6cf65142f0/utils.py#L28 I deem here 'alphate' need change to 'self.alphabet'
Otherwise it may cause following problem. Traceback (most recent call last): File "zhaoyuanying.py", line 84, in
t, l = converter.encode(cpu_texts)#,scanned=False)
File "/home/mcht/tmp/crnn_pytorch/utils.py", line 84, in encode
for char in text
File "/home/mcht/tmp/crnn_pytorch/utils.py", line 84, in
for char in text
KeyError: '-'