Tablemaster不支持像版面分析中表格识别的脚本运行方式吗? #12420
Unanswered
Wangqi12138
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
代码设置:table_engine = PPStructure(layout=False, show_log=True, table_model_dir="./model", table_char_dict_path="./table_master_structure_dict.txt", table_max_len=480)
model里下载了tablemaster推理模型,调整了代码的参数依旧报错
报错信息:Traceback (most recent call last):
File "predict.py", line 9, in
result = table_engine(img)
File "/ai/user/wangq/anaconda3/envs/paddle/lib/python3.8/site-packages/paddleocr/paddleocr.py", line 759, in call
res, _ = super().call(
File "/ai/user/wangq/anaconda3/envs/paddle/lib/python3.8/site-packages/paddleocr/ppstructure/predict_system.py", line 129, in call
res, table_time_dict = self.table_system(
File "/ai/user/wangq/anaconda3/envs/paddle/lib/python3.8/site-packages/paddleocr/ppstructure/table/predict_table.py", line 86, in call
structure_res, elapse = self._structure(copy.deepcopy(img))
File "/ai/user/wangq/anaconda3/envs/paddle/lib/python3.8/site-packages/paddleocr/ppstructure/table/predict_table.py", line 109, in _structure
structure_res, elapse = self.table_structurer(copy.deepcopy(img))
File "/ai/user/wangq/anaconda3/envs/paddle/lib/python3.8/site-packages/paddleocr/ppstructure/table/predict_structure.py", line 147, in call
post_result = self.postprocess_op(preds, [shape_list])
File "/ai/user/wangq/anaconda3/envs/paddle/lib/python3.8/site-packages/paddleocr/ppocr/postprocess/table_postprocess.py", line 56, in call
result = self.decode(structure_probs, bbox_preds, shape_list)
File "/ai/user/wangq/anaconda3/envs/paddle/lib/python3.8/site-packages/paddleocr/ppocr/postprocess/table_postprocess.py", line 85, in decode
text = self.character[char_idx]
IndexError: list index out of range
Beta Was this translation helpful? Give feedback.
All reactions