Update PPOCRLabel.py
解决了导出 JSON 文件时,L2534 将 "cells" 写成 "cell" 的问题。因如下代码取的是cells,否则在训练载入数据时会报 keyerror 的错误。
282eebbd66/ppocr/data/pubtab_dataset.py (L102)
pull/7445/head
parent
b2bd75a14c
commit
3273a198dd
PPOCRLabel
|
@ -2531,7 +2531,7 @@ class MainWindow(QMainWindow):
|
|||
split = 'test'
|
||||
|
||||
# save dict
|
||||
html = {'structure': {'tokens': token_list}, 'cell': cells}
|
||||
html = {'structure': {'tokens': token_list}, 'cells': cells}
|
||||
json_results.append({'filename': os.path.basename(image_path), 'split': split, 'imgid': imgid, 'html': html})
|
||||
imgid += 1
|
||||
|
||||
|
|
Loading…
Reference in New Issue