layout-parser icon indicating copy to clipboard operation
layout-parser copied to clipboard

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

Open ShaileshSardaTTL opened this issue 1 year ago • 3 comments


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 avatar Nov 13 '23 18:11 ShaileshSardaTTL

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

kokul93 avatar Feb 07 '24 11:02 kokul93

Did you receive assist ?

quandn2003 avatar Jun 12 '24 04:06 quandn2003