You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "/home/aistudio/PaddleOCR/ppstructure/predict_system.py", line 394, in
main(args)
File "/home/aistudio/PaddleOCR/ppstructure/predict_system.py", line 329, in main
res, time_dict = structure_sys(img, img_idx=index)
File "/home/aistudio/PaddleOCR/ppstructure/predict_system.py", line 154, in call
roi_img, return_ocr_result_in_table
File "/home/aistudio/PaddleOCR/ppstructure/table/predict_table.py", line 96, in call
structure_res, elapse = self._structure(copy.deepcopy(img))
File "/home/aistudio/PaddleOCR/ppstructure/table/predict_table.py", line 118, in _structure
structure_res, elapse = self.table_structurer(copy.deepcopy(img))
File "/home/aistudio/PaddleOCR/ppstructure/table/predict_structure.py", line 153, in call
post_result = self.postprocess_op(preds, [shape_list])
File "/home/aistudio/PaddleOCR/ppocr/postprocess/table_postprocess.py", line 53, in call
result = self.decode(structure_probs, bbox_preds, shape_list)
File "/home/aistudio/PaddleOCR/ppocr/postprocess/table_postprocess.py", line 81, in decode
text = self.character[char_idx]
IndexError: list index out of range
可能解决方案 / Possible solutions
附件 / Appendix
The text was updated successfully, but these errors were encountered:
问题描述 / Problem Description
中文pdf转word报错。
运行环境 / Runtime Environment
复现代码 / Reproduction Code
!python3 /home/aistudio/PaddleOCR/ppstructure/predict_system.py
--image_dir=/home/aistudio/1721202911238.png
--det_model_dir=/home/aistudio/PaddleOCR/ppstructure/inference/ch_PP-OCRv4_det_infer
--rec_model_dir=/home/aistudio/PaddleOCR/ppstructure/inference/ch_PP-OCRv4_rec_infer
--rec_char_dict_path=/home/aistudio/PaddleOCR/ppocr/utils/ppocr_keys_v1.txt
--table_model_dir=/home/aistudio/PaddleOCR/ppstructure/inference/ch_ppstructure_mobile_v2.0_SLANet_infer
--table_char_dict_path=/home/aistudio/PaddleOCR/ppocr/utils/dict/table_structure_dict.txt
--layout_model_dir=/home/aistudio/PaddleOCR/ppstructure/inference/picodet_lcnet_x1_0_fgd_layout_cdla_infer
--layout_dict_path=/home/aistudio/PaddleOCR/ppocr/utils/dict/layout_dict/layout_cdla_dict.txt
--vis_font_path=/home/aistudio/PaddleOCR/doc/fonts/chinese_cht.ttf
--recovery=True
--output=/home/aistudio/PaddleOCR/output/
完整报错 / Complete Error Message
Traceback (most recent call last):
File "/home/aistudio/PaddleOCR/ppstructure/predict_system.py", line 394, in
main(args)
File "/home/aistudio/PaddleOCR/ppstructure/predict_system.py", line 329, in main
res, time_dict = structure_sys(img, img_idx=index)
File "/home/aistudio/PaddleOCR/ppstructure/predict_system.py", line 154, in call
roi_img, return_ocr_result_in_table
File "/home/aistudio/PaddleOCR/ppstructure/table/predict_table.py", line 96, in call
structure_res, elapse = self._structure(copy.deepcopy(img))
File "/home/aistudio/PaddleOCR/ppstructure/table/predict_table.py", line 118, in _structure
structure_res, elapse = self.table_structurer(copy.deepcopy(img))
File "/home/aistudio/PaddleOCR/ppstructure/table/predict_structure.py", line 153, in call
post_result = self.postprocess_op(preds, [shape_list])
File "/home/aistudio/PaddleOCR/ppocr/postprocess/table_postprocess.py", line 53, in call
result = self.decode(structure_probs, bbox_preds, shape_list)
File "/home/aistudio/PaddleOCR/ppocr/postprocess/table_postprocess.py", line 81, in decode
text = self.character[char_idx]
IndexError: list index out of range
可能解决方案 / Possible solutions
附件 / Appendix
The text was updated successfully, but these errors were encountered: