Layout-Parser / layout-parser

A Unified Toolkit for Deep Learning Based Document Image Analysis
https://layout-parser.github.io/
Apache License 2.0
4.75k stars 456 forks source link

PaddleDetectionLayoutModel requires the PaddlePaddle library but it was not found in your environment. #90

Open mzhadigerov opened 2 years ago

mzhadigerov commented 2 years ago

Describe the bug I'm trying to use Paddle model:

model = lp.AutoLayoutModel("lp://paddledetection/TableBank/ppyolov2_r50vd_dcn_365e")

I'm getting an error:

ImportError: PaddleDetectionLayoutModel requires the PaddlePaddle library but it was not found in your environment. Checkout the instructions on the installation page: https://github.com/PaddlePaddle/Paddle and follow the ones that match your environment.

I am using Google Colab and installed paddle as: !python -m pip install paddlepaddle -i https://mirror.baidu.com/pypi/simple

and verified it works:

import paddle.fluid 

paddle.fluid.install_check.run_check()
lolipopshock commented 2 years ago

That's interesting -- could you paste a link to the Colab notebook? Or just all the execution history of the commands? Thanks!

thatmehtaguy commented 1 year ago

Did you find the solution?