opendatalab / PDF-Extract-Kit

A Comprehensive Toolkit for High-Quality PDF Content Extraction
https://pdf-extract-kit.readthedocs.io/zh-cn/latest/index.html
GNU Affero General Public License v3.0
5.84k stars 384 forks source link

运行OCR脚本错误 #178

Open YuanZheng612 opened 3 days ago

YuanZheng612 commented 3 days ago

配完环境后,测试了布局监测,可以运行,在测试ocr的时候运行脚本之后报如下错误。该如何解决?

C++ Traceback (most recent call last):

0 void paddle_infer::Tensor::CopyFromCpu(float const) 1 std::basic_future<std::unique_ptr<phi::DeviceContext, std::default_delete > >::_M_get_result() const 2 std::future_base::_Deferred_state<std::thread::_Invoker<std::tuple<std::unique_ptr<phi::DeviceContext, std::default_delete > ()(phi::Place const&, bool, int), phi::Place, bool, int> >, std::unique_ptr<phi::DeviceContext, std::default_delete > >::_M_complete_async() 3 std::future_base::_State_baseV2::_M_do_set(std::function<std::unique_ptr<std::__future_base::_Result_base, std::future_base::_Result_base::_Deleter> ()>, bool) 4 std::_Function_handler<std::unique_ptr<std::__future_base::_Result_base, std::future_base::_Result_base::_Deleter> (), std::future_base::_Task_setter<std::unique_ptr<std::future_base::_Result<std::unique_ptr<phi::DeviceContext, std::default_delete > >, std::future_base::_Result_base::_Deleter>, std::thread::_Invoker<std::tuple<std::unique_ptr<phi::DeviceContext, std::default_delete > ()(phi::Place const&, bool, int), phi::Place, bool, int> >, std::unique_ptr<phi::DeviceContext, std::default_delete > > >::_M_invoke(std::_Any_data const&) 5 std::unique_ptr<phi::DeviceContext, std::default_delete > paddle::platform::CreateDeviceContext(phi::Place const&, bool, int) 6 std::enable_if<std::is_same<phi::GPUContext, phi::GPUContext>::value, phi::GPUContext>::type paddle::platform::ConstructDevCtx(phi::Place const&, int) 7 phi::GPUContext::GPUContext(phi::GPUPlace const&, bool, int) 8 phi::InitGpuProperties(phi::Place, int, int, int, int, int, int, std::array<int, 3ul>*) 9 cudnnGetVersion


Error Message Summary:

FatalError: Process abort signal is detected by the operating system. [TimeInfo: Aborted at 1732178124 (unix time) try "date -d @1732178124" if you are using GNU date ] [SignalInfo: SIGABRT (@0x3e8000600ad) received by PID 393389 (TID 0x7e36af256740) from PID 393389 ]

Aborted (core dumped)

wufan-tb commented 2 hours ago

看起来是你的平台不支持paddlegpu加速,直接跑paddleocr应该也跑不通,可以试试cpu版本的paddle