You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cannot pass the line of lp.PaddleDetectionLayoutModel
Type "help", "copyright", "credits" or "license" for more information.
>>> import cv2
>>> import layoutparser as lp
>>> model = lp.PaddleDetectionLayoutModel(config_path="lp://PubLayNet/ppyolov2_r50vd_dcn_365e_publaynet/config",
... threshold=0.5,
... label_map={0: "Text", 1: "Title", 2: "List", 3:"Table", 4:"Figure"},
... enforce_cpu=False,
... enable_mkldnn=True)
Traceback (most recent call last):
File "<stdin>", line 2, in <module>
File "/usr/local/lib/python3.6/dist-packages/layoutparser/file_utils.py", line 226, in __getattr__
raise AttributeError(f"module {self.__name__} has no attribute {name}")
AttributeError: module layoutparser has no attribute PaddleDetectionLayoutModel
Describe the bug
Cannot pass the line of
lp.PaddleDetectionLayoutModel
To Reproduce
Steps to reproduce the behavior:
Follow the step from official sample
https://github.com/PaddlePaddle/PaddleOCR/blob/release/2.3/ppstructure/layout/README.md#2-quick-start
Environment
0.3.2
$PATH
,$LD_LIBRARY_PATH
,$PYTHONPATH
, etc.)The text was updated successfully, but these errors were encountered: