Skip to content

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

Open
@ShaileshSardaTTL

Description

@ShaileshSardaTTL

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!

Activity

kokul93

kokul93 commented on Feb 7, 2024

@kokul93

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

quandn2003

quandn2003 commented on Jun 12, 2024

@quandn2003

Did you receive assist ?

9Mercury

9Mercury commented on May 25, 2025

@9Mercury

use lp.models.PaddleDetectionLayoutModel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @kokul93@ShaileshSardaTTL@9Mercury@quandn2003

        Issue actions

          AttributeError: module 'layoutparser' has no attribute 'PaddleDetectionLayoutModel' · Issue #201 · Layout-Parser/layout-parser