Replies: 1 comment
-
安装一下 paddle 3.0 beta 版本试试看 |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
问题描述 / Problem Description
如题,我在研究PP-structure的功能,参考文档执行第一条命令都报错:paddleocr --image_dir=ppstructure/docs/table/1.png --type=structure --image_orientation=true
我是在centos7 环境安装的conda,python是3.11版本
运行环境 / Runtime Environment
复现代码 / Reproduction Code
paddleocr --image_dir=ppstructure/docs/table/1.png --type=structure --image_orientation=true
完整报错 / Complete Error Message
(paddle_env_hjb) [ccic@localhost PaddleOCR-main]$ paddleocr --image_dir=ppstructure/docs/table/1.png --type=structure --image_orientation=true
[2024/07/06 16:44:50] ppocr DEBUG: Namespace(help='==SUPPRESS==', use_gpu=False, use_xpu=False, use_npu=False, use_mlu=False, ir_optim=True, use_tensorrt=False, min_subgraph_size=15, precision='fp32', gpu_mem=500, gpu_id=0, image_dir='ppstructure/docs/table/1.png', page_num=0, det_algorithm='DB', det_model_dir='/home/ccic/.paddleocr/whl/det/ch/ch_PP-OCRv4_det_infer', det_limit_side_len=960, det_limit_type='max', det_box_type='quad', det_db_thresh=0.3, det_db_box_thresh=0.6, det_db_unclip_ratio=1.5, max_batch_size=10, use_dilation=False, det_db_score_mode='fast', det_east_score_thresh=0.8, det_east_cover_thresh=0.1, det_east_nms_thresh=0.2, det_sast_score_thresh=0.5, det_sast_nms_thresh=0.2, det_pse_thresh=0, det_pse_box_thresh=0.85, det_pse_min_area=16, det_pse_scale=1, scales=[8, 16, 32], alpha=1.0, beta=1.0, fourier_degree=5, rec_algorithm='SVTR_LCNet', rec_model_dir='/home/ccic/.paddleocr/whl/rec/ch/ch_PP-OCRv4_rec_infer', rec_image_inverse=True, rec_image_shape='3, 48, 320', rec_batch_num=6, max_text_length=25, rec_char_dict_path='/home/ccic/anaconda3/envs/paddle_env_hjb/lib/python3.11/site-packages/paddleocr/ppocr/utils/ppocr_keys_v1.txt', use_space_char=True, vis_font_path='./doc/fonts/simfang.ttf', drop_score=0.5, e2e_algorithm='PGNet', e2e_model_dir=None, e2e_limit_side_len=768, e2e_limit_type='max', e2e_pgnet_score_thresh=0.5, e2e_char_dict_path='./ppocr/utils/ic15_dict.txt', e2e_pgnet_valid_set='totaltext', e2e_pgnet_mode='fast', use_angle_cls=False, cls_model_dir=None, cls_image_shape='3, 48, 192', label_list=['0', '180'], cls_batch_num=6, cls_thresh=0.9, enable_mkldnn=False, cpu_threads=10, use_pdserving=False, warmup=False, sr_model_dir=None, sr_image_shape='3, 32, 128', sr_batch_num=1, draw_img_save_dir='./inference_results', save_crop_res=False, crop_res_save_dir='./output', use_mp=False, total_process_num=1, process_id=0, benchmark=False, save_log_path='./log_output/', show_log=True, use_onnx=False, return_word_box=False, output='./output', table_max_len=488, table_algorithm='TableAttn', table_model_dir='/home/ccic/.paddleocr/whl/table/ch_ppstructure_mobile_v2.0_SLANet_infer', merge_no_span_structure=True, table_char_dict_path='/home/ccic/anaconda3/envs/paddle_env_hjb/lib/python3.11/site-packages/paddleocr/ppocr/utils/dict/table_structure_dict_ch.txt', layout_model_dir='/home/ccic/.paddleocr/whl/layout/picodet_lcnet_x1_0_fgd_layout_cdla_infer', layout_dict_path='/home/ccic/anaconda3/envs/paddle_env_hjb/lib/python3.11/site-packages/paddleocr/ppocr/utils/dict/layout_dict/layout_cdla_dict.txt', layout_score_threshold=0.5, layout_nms_threshold=0.5, kie_algorithm='LayoutXLM', ser_model_dir=None, re_model_dir=None, use_visual_backbone=True, ser_dict_path='../train_data/XFUND/class_list_xfun.txt', ocr_order_method=None, mode='structure', image_orientation=True, layout=True, table=True, ocr=True, recovery=False, use_pdf2docx_api=False, invert=False, binarize=False, alphacolor=(255, 255, 255), lang='ch', det=True, rec=True, type='structure', savefile=False, ocr_version='PP-OCRv4', structure_version='PP-StructureV2')
[2024/07/06 16:44:50] ppcls WARNING: The current running environment does not support the use of GPU. CPU has been used instead.
[2024/07/06 16:44:55] ppocr INFO: ppstructure/docs/table/1.png
*** Error in `/home/ccic/anaconda3/envs/paddle_env_hjb/bin/python': free(): invalid size: 0x000000000bc18f20 ***
======= Backtrace: =========
/lib64/libc.so.6(+0x81329)[0x7f50c31c1329]
/home/ccic/anaconda3/envs/paddle_env_hjb/lib/python3.11/site-packages/paddle/base/libpaddle.so(inflateReset2+0x5f)[0x7f50b218366f]
/home/ccic/anaconda3/envs/paddle_env_hjb/lib/python3.11/site-packages/paddle/base/../../../../libz.so.1(inflateInit2_+0x88)[0x7f50ac286a98]
/home/ccic/anaconda3/envs/paddle_env_hjb/lib/python3.11/site-packages/cv2/../opencv_contrib_python.libs/libpng16-57e5e0a0.so.16.37.0(+0x188d1)[0x7f508d3df8d1]
/home/ccic/anaconda3/envs/paddle_env_hjb/lib/python3.11/site-packages/cv2/../opencv_contrib_python.libs/libpng16-57e5e0a0.so.16.37.0(+0x1a074)[0x7f508d3e1074]
/home/ccic/anaconda3/envs/paddle_env_hjb/lib/python3.11/site-packages/cv2/../opencv_contrib_python.libs/libpng16-57e5e0a0.so.16.37.0(png_read_info+0x373)[0x7f508d3d6773]
/home/ccic/anaconda3/envs/paddle_env_hjb/lib/python3.11/site-packages/cv2/cv2.abi3.so(+0x146179b)[0x7f508e85f79b]
/home/ccic/anaconda3/envs/paddle_env_hjb/lib/python3.11/site-packages/cv2/cv2.abi3.so(+0x144bc9d)[0x7f508e849c9d]
/home/ccic/anaconda3/envs/paddle_env_hjb/lib/python3.11/site-packages/cv2/cv2.abi3.so(+0x486704)[0x7f508d884704]
/home/ccic/anaconda3/envs/paddle_env_hjb/bin/python[0x528767]
/home/ccic/anaconda3/envs/paddle_env_hjb/bin/python(_PyObject_MakeTpCall+0x26c)[0x5041ac]
/home/ccic/anaconda3/envs/paddle_env_hjb/bin/python(_PyEval_EvalFrameDefault+0x6a7)[0x5116e7]
/home/ccic/anaconda3/envs/paddle_env_hjb/bin/python[0x5cbeda]
/home/ccic/anaconda3/envs/paddle_env_hjb/bin/python(PyEval_EvalCode+0x9f)[0x5cb5af]
/home/ccic/anaconda3/envs/paddle_env_hjb/bin/python[0x5ec6a7]
/home/ccic/anaconda3/envs/paddle_env_hjb/bin/python[0x5e8240]
/home/ccic/anaconda3/envs/paddle_env_hjb/bin/python[0x5fd192]
/home/ccic/anaconda3/envs/paddle_env_hjb/bin/python(_PyRun_SimpleFileObject+0x19f)[0x5fc55f]
/home/ccic/anaconda3/envs/paddle_env_hjb/bin/python(_PyRun_AnyFileObject+0x43)[0x5fc283]
/home/ccic/anaconda3/envs/paddle_env_hjb/bin/python(Py_RunMain+0x2ee)[0x5f6efe]
/home/ccic/anaconda3/envs/paddle_env_hjb/bin/python(Py_BytesMain+0x39)[0x5bbc79]
/lib64/libc.so.6(__libc_start_main+0xf5)[0x7f50c3162555]
/home/ccic/anaconda3/envs/paddle_env_hjb/bin/python[0x5bbac3]
======= Memory map: ========
00400000-0041f000 r--p 00000000 fd:00 45359990 /home/ccic/anaconda3/envs/paddle_env_hjb/bin/python3.11
0041f000-00657000 r-xp 0001f000 fd:00 45359990 /home/ccic/anaconda3/envs/paddle_env_hjb/bin/python3.11
00657000-00776000 r--p 00257000 fd:00 45359990 /home/ccic/anaconda3/envs/paddle_env_hjb/bin/python3.11
00776000-00777000 r--p 00375000 fd:00 45359990 /home/ccic/anaconda3/envs/paddle_env_hjb/bin/python3.11
00777000-008a8000 rw-p 00376000 fd:00 45359990 /home/ccic/anaconda3/envs/paddle_env_hjb/bin/python3.11
008a8000-008eb000 rw-p 00000000 00:00 0
017e7000-12fae000 rw-p 00000000 00:00 0 [heap]
7f506d35e000-7f506d6e0000 rw-p 00000000 00:00 0
7f506d6e0000-7f5075203000 r-xp 00000000 fd:00 45614854 /home/ccic/anaconda3/envs/paddle_env_hjb/lib/python3.11/site-packages/paddle/libs/libmklml_intel.so
7f5075203000-7f5075402000 ---p 07b23000 fd:00 45614854 /home/ccic/anaconda3/envs/paddle_env_hjb/lib/python3.11/site-packages/paddle/libs/libmklml_intel.so
7f5075402000-7f5075428000 r--p 07b22000 fd:00 45614854 /home/ccic/anaconda3/envs/paddle_env_hjb/lib/python3.11/site-packages/paddle/libs/libmklml_intel.so
7f5075428000-7f50754f2000 rw-p 07b48000 fd:00 45614854 /home/ccic/anaconda3/envs/paddle_env_hjb/lib/python3.11/site-packages/paddle/libs/libmklml_intel.so
7f50754f2000-7f5075518000 rw-p 00000000 00:00 0
7f5075518000-7f50755af000 rw-p 07c12000 fd:00 45614854 /home/ccic/anaconda3/envs/paddle_env_hjb/lib/python3.11/site-packages/paddle/libs/libmklml_intel.so
7f50755af000-7f50756af000 rw-p 00000000 00:00 0
7f50756af000-7f50757df000 r--p 00000000 fd:00 46579504 /home/ccic/anaconda3/envs/paddle_env_hjb/lib/python3.11/site-packages/faiss/_swigfaiss.cpython-311-x86_64-linux-gnu.so
7f50757df000-7f50757e3000 r-xp 00130000 fd:00 46579504 /home/ccic/anaconda3/envs/paddle_env_hjb/lib/python3.11/site-packages/faiss/_swigfaiss.cpython-311-x86_64-linux-gnu.so
7f50757e3000-7f50757e7000 ---p 00134000 fd:00 46579504 /home/ccic/anaconda3/envs/paddle_env_hjb/lib/python3.11/site-packages/faiss/_swigfaiss.cpython-311-x86_64-linux-gnu.so
7f50757e7000-7f50776fc000 r-xp 00138000 fd:00 46579504 /home/ccic/anaconda3/envs/paddle_env_hjb/lib/python3.11/site-packages/faiss/_swigfaiss.cpython-311-x86_64-linux-gnu.so
7f50776fc000-7f50779c3000 r--p 0204d000 fd:00 46579504 /home/ccic/anaconda3/envs/paddle_env_hjb/lib/python3.11/site-packages/faiss/_swigfaiss.cpython-311-x86_64-linux-gnu.so
7f50779c3000-7f50779d1000 r--p 02313000 fd:00 46579504 /home/ccic/anaconda3/envs/paddle_env_hjb/lib/python3.11/site-packages/faiss/_swigfaiss.cpython-311-x86_64-linux-gnu.so
C++ Traceback (most recent call last):
0 inflateReset2
Error Message Summary:
FatalError:
Process abort signal
is detected by the operating system.[TimeInfo: *** Aborted at 1720255495 (unix time) try "date -d @1720255495" if you are using GNU date ***]
[SignalInfo: *** SIGABRT (@0x3ea00006632) received by PID 26162 (TID 0x7f50c4046740) from PID 26162 ***]
Aborted
可能解决方案 / Possible solutions
附件 / Appendix
版本截图如下:

(paddle_env_hjb) [ccic@localhost PaddleOCR-main]$ pip freeze list
anyio @ file:///croot/anyio_1706220167567/work
astor==0.8.1
attrdict==2.0.1
Babel==2.15.0
bce-python-sdk==0.9.17
beautifulsoup4==4.12.3
blinker==1.8.2
cachetools==5.3.3
certifi @ file:///croot/certifi_1717618050233/work/certifi
charset-normalizer==3.3.2
click==8.1.7
contourpy==1.2.1
cssselect==1.2.0
cssutils==2.11.1
cycler==0.12.1
Cython==3.0.10
decorator @ file:///opt/conda/conda-bld/decorator_1643638310831/work
easydict==1.13
et-xmlfile==1.1.0
faiss-cpu==1.8.0.post1
fire==0.6.0
Flask==3.0.3
flask-babel==4.0.0
fonttools==4.53.0
future==1.0.0
gast==0.3.3
h11 @ file:///croot/h11_1706652277403/work
httpcore @ file:///croot/httpcore_1706728464539/work
httpx @ file:///croot/httpx_1706887096329/work
idna @ file:///croot/idna_1714398848350/work
imageio==2.34.2
imgaug==0.4.0
itsdangerous==2.2.0
Jinja2==3.1.4
joblib==1.4.2
kiwisolver==1.4.5
lazy_loader==0.4
lmdb==1.5.1
lxml==5.2.2
MarkupSafe==2.1.5
matplotlib==3.9.1
mkl-fft @ file:///croot/mkl_fft_1695058164594/work
mkl-random @ file:///croot/mkl_random_1695059800811/work
mkl-service==2.4.0
more-itertools==10.3.0
networkx==3.3
numpy @ file:///croot/numpy_and_numpy_base_1708638617955/work/dist/numpy-1.26.4-cp311-cp311-linux_x86_64.whl#sha256=5f96f274d410a1682519282ae769c877d32fdbf171aa8badec7bf5e1d3a1748a
opencv-contrib-python==4.6.0.66
opencv-python==4.6.0.66
opencv-python-headless==4.10.0.84
openpyxl==3.1.5
opt-einsum @ file:///tmp/build/80754af9/opt_einsum_1621500238896/work
packaging==24.1
paddleclas==2.5.2
paddleocr==2.8.0
paddlepaddle @ file:///package/paddlepaddle-2.6.1-cp311-cp311-linux_x86_64.whl#sha256=a71106f146a5f4555f8fdcb8568add21e8604797d5b5e8527fa06c070494c1f5
pandas==2.2.2
pdf2docx==0.5.8
pillow @ file:///croot/pillow_1714398848491/work
premailer==3.10.0
prettytable==3.10.0
protobuf==4.25.3
psutil==6.0.0
pyclipper==1.3.0.post5
pycryptodome==3.20.0
PyMuPDF==1.24.7
PyMuPDFb==1.24.6
pyparsing==3.1.2
python-dateutil==2.9.0.post0
python-docx==1.1.2
pytz==2024.1
PyYAML==6.0.1
rapidfuzz==3.9.4
rarfile==4.2
requests==2.32.3
scikit-image==0.24.0
scikit-learn==1.5.1
scipy==1.14.0
shapely==2.0.4
six==1.16.0
sniffio @ file:///croot/sniffio_1705431295498/work
soupsieve==2.5
termcolor==2.4.0
threadpoolctl==3.5.0
tifffile==2024.7.2
tqdm==4.66.4
typing_extensions==4.12.2
tzdata==2024.1
ujson==5.10.0
urllib3==2.2.2
visualdl==2.5.3
wcwidth==0.2.13
Werkzeug==3.0.3
(paddle_env_hjb) [ccic@localhost PaddleOCR-main]$
Beta Was this translation helpful? Give feedback.
All reactions