Layout-Parser / layout-parser

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

module layoutparser has no attribute Detectron2LayoutModel #157

Open atulmaybe opened 1 year ago

atulmaybe commented 1 year ago

Describe the bug I am getting this error ""module layoutparser has no attribute Detectron2LayoutModel"" Screenshot (6)

mayuri-kulkarni commented 1 year ago

Facing same issue!

mayuri-kulkarni commented 1 year ago

Followed the readMe file to load Detectron2 on older release of this repo. worked for me

MarouaneZ1 commented 1 year ago

try lp.models.Detectron2LayoutModel

lucafrost commented 1 year ago

As @MarouaneZ1 has pointed out, the documentation is slightly unclear, but the Detectron2LayoutModel is accessible only through lp.models