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

AttributeError: module layoutparser has no attribute Detectron2LayoutModel #122

Closed anglilian closed 2 years ago

anglilian commented 2 years ago

I ran the following lines: pip install layoutparser import layoutparser as lp model = lp.Detectron2LayoutModel('lp://PubLayNet/faster_rcnn_R_50_FPN_3x/config', extra_config=["MODEL.ROI_HEADS.SCORE_THRESH_TEST", 0.8], label_map={0: "Text", 1: "Title", 2: "List", 3:"Table", 4:"Figure"})

Getting the following error even though I have downloaded Dectectron2 following this walkthrough. I also successfully downloaded torchflow. AttributeError: module layoutparser has no attribute Detectron2LayoutModel

This is what I see when I check my installation. I use windows. The layoutparser version is layoutparser-0.3.2 image

I was looking for my CUDA version by running nvcc --version but I get this from my terminal 'nvcc' is not recognized as an internal or external command, operable program or batch file.

Thank you in advance for helping look into this issue!

anikde commented 4 months ago

What was the solution to this issue?