Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: module 'layoutparser' has no attribute 'PaddleDetectionLayoutModel' #201

Open
ShaileshSardaTTL opened this issue Nov 13, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@ShaileshSardaTTL
Copy link


AttributeError Traceback (most recent call last)
in <cell line: 2>()
1 # load model
----> 2 model = lp.PaddleDetectionLayoutModel(config_path="lp://PubLayNet/ppyolov2_r50vd_dcn_365e/config",
3 threshold=0.5,
4 label_map={0: "Text", 1: "Title", 2: "List", 3:"Table", 4:"Figure"},
5 enforce_cpu=False,

AttributeError: module 'layoutparser' has no attribute 'PaddleDetectionLayoutModel'

Using below Code:

model = lp.PaddleDetectionLayoutModel(config_path="lp://PubLayNet/ppyolov2_r50vd_dcn_365e/config",
threshold=0.5,
label_map={0: "Text", 1: "Title", 2: "List", 3:"Table", 4:"Figure"},
enforce_cpu=False,
enable_mkldnn=True)

For installation using:
pip install "layoutparser[paddledetection]"

Assist!

@ShaileshSardaTTL ShaileshSardaTTL added the bug Something isn't working label Nov 13, 2023
@kokul93
Copy link

kokul93 commented Feb 7, 2024

Not Working in Mac M2, Any solution for Mac m2??

@quandn2003
Copy link

Did you receive assist ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants