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 "/opt/conda/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
self.run()
File "/opt/conda/lib/python3.10/threading.py", line 953, in run
self._target(*self._args, **self._kwargs)
File "/data/MinerU/app.py", line 61, in file_extract
pipe.pipe_analyze(pdf_bytes, pdf_type)
File "/data/MinerU/magic_pdf/pipe/UNIPipe.py", line 69, in pipe_analyze
self.model_list = doc_analyze(pdf_bytes, self.ocr_custom_model, ocr=True,isimage=False,
File "/data/MinerU/magic_pdf/model/doc_analyze_by_custom_model.py", line 136, in doc_analyze
result = custom_model(img)
File "/data/MinerU/magic_pdf/model/pdf_extract_kit.py", line 351, in call
ocr_res = self.ocr_model.ocr(new_image, mfd_res=adjusted_mfdetrec_res)[0]
File "/data/MinerU/magic_pdf/model/pek_sub_modules/self_modify.py", line 290, in ocr
dt_boxes, rec_res, _ = self.call(img, cls, mfd_res=mfd_res)
File "/data/MinerU/magic_pdf/model/pek_sub_modules/self_modify.py", line 371, in call
rec_res, elapse = self.text_recognizer(img_crop_list)
File "/opt/mineru_venv/lib/python3.10/site-packages/paddleocr/tools/infer/predict_rec.py", line 630, in call
rec_res[indices[beg_img_no + rno]] = rec_result[rno]
IndexError: index 10 is out of bounds for axis 0 with size 10
How to reproduce the bug | 如何复现
新版本中,使用多线程执行应用的时候,会出现IndexError: index 10 is out of bounds for axis 0 with size 10
Operating system | 操作系统
Linux
Python version | Python 版本
3.10
Software version | 软件版本 (magic-pdf --version)
0.8.x
Device mode | 设备模式
cuda
The text was updated successfully, but these errors were encountered:
Description of the bug | 错误描述
Traceback (most recent call last):
File "/opt/conda/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
self.run()
File "/opt/conda/lib/python3.10/threading.py", line 953, in run
self._target(*self._args, **self._kwargs)
File "/data/MinerU/app.py", line 61, in file_extract
pipe.pipe_analyze(pdf_bytes, pdf_type)
File "/data/MinerU/magic_pdf/pipe/UNIPipe.py", line 69, in pipe_analyze
self.model_list = doc_analyze(pdf_bytes, self.ocr_custom_model, ocr=True,isimage=False,
File "/data/MinerU/magic_pdf/model/doc_analyze_by_custom_model.py", line 136, in doc_analyze
result = custom_model(img)
File "/data/MinerU/magic_pdf/model/pdf_extract_kit.py", line 351, in call
ocr_res = self.ocr_model.ocr(new_image, mfd_res=adjusted_mfdetrec_res)[0]
File "/data/MinerU/magic_pdf/model/pek_sub_modules/self_modify.py", line 290, in ocr
dt_boxes, rec_res, _ = self.call(img, cls, mfd_res=mfd_res)
File "/data/MinerU/magic_pdf/model/pek_sub_modules/self_modify.py", line 371, in call
rec_res, elapse = self.text_recognizer(img_crop_list)
File "/opt/mineru_venv/lib/python3.10/site-packages/paddleocr/tools/infer/predict_rec.py", line 630, in call
rec_res[indices[beg_img_no + rno]] = rec_result[rno]
IndexError: index 10 is out of bounds for axis 0 with size 10
How to reproduce the bug | 如何复现
新版本中,使用多线程执行应用的时候,会出现IndexError: index 10 is out of bounds for axis 0 with size 10
Operating system | 操作系统
Linux
Python version | Python 版本
3.10
Software version | 软件版本 (magic-pdf --version)
0.8.x
Device mode | 设备模式
cuda
The text was updated successfully, but these errors were encountered: