【ppstructure】 FatalError: `Segmentation fault` is detected by the operating system.
See original GitHub issue在运行 ppstructure 的 表格识别 table/predict_table.py 时报错如下
`— Fused 0 subgraphs into layer_norm op. — Fused 0 subgraphs into layer_norm op. — Fused 0 subgraphs into layer_norm op. [2021/11/26 14:49:23] root INFO: [0/1] /home/aistudio/data/data118022/taihe2021-004.jpg [2021/11/26 14:49:45] root DEBUG: dt_boxes num : 130, elapse : 7.971612453460693 [2021/11/26 14:50:13] root DEBUG: rec_res num : 130, elapse : 27.330198287963867
C++ Traceback (most recent call last):
0 paddle::framework::SignalHandle(char const*, int) 1 paddle::platform::GetCurrentTraceBackStringabi:cxx11
Error Message Summary:
FatalError:
Segmentation faultis detected by the operating system. [TimeInfo: *** Aborted at 1637909414 (unix time) try “date -d @1637909414” if you are using GNU date ***] [SignalInfo: *** SIGSEGV (@0x7faee2f95622) received by PID 387 (TID 0x7faeec353700) from PID 18446744073222575650 ***]`
平台:aistudio.baidu.com
环境:
CPU: 2核
总内存: 8 GB
Python: 3.7.4
框架版本: PaddlePaddle 2.1.2
命令:
!python3 table/predict_table.py --use_gpu=False --det_model_dir=inference/en_ppocr_mobile_v2.0_table_det_infer --rec_model_dir=inference/en_ppocr_mobile_v2.0_table_rec_infer --table_model_dir=inference/en_ppocr_mobile_v2.0_table_structure_infer --image_dir=/home/aistudio/data/data118022/taihe2021-004.jpg --rec_char_dict_path=../ppocr/utils/dict/table_dict.txt --table_char_dict_path=../ppocr/utils/dict/table_structure_dict.txt --rec_char_type=EN --det_limit_side_len=736 --det_limit_type=min --output ../output/table
Issue Analytics
- State:
- Created 2 years ago
- Comments:10
Top Related StackOverflow Question
@WenmuZhou 上面的这个问题我已经解决了,是cuda版本的问题,我系统安装的是cuda11.3版本,python虚拟环境安装的paddlepaddle-gpu版本如下: python -m pip install paddlepaddle-gpu==2.2.0.post112 -f https://www.paddlepaddle.org.cn/whl/linux/mkl/avx/stable.html 模型在gpu模式下就可以正常执行了,
这个应该是aistudio的环境问题,这边正在看哈