Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: module layoutparser has no attribute Detectron2LayoutModel #122

Closed
anglilian opened this issue Mar 17, 2022 · 2 comments
Closed
Labels
bug Something isn't working

Comments

@anglilian
Copy link

anglilian commented Mar 17, 2022

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!

@anglilian anglilian added the bug Something isn't working label Mar 17, 2022
@anikde
Copy link

anikde commented Mar 18, 2024

What was the solution to this issue?

@aFcFzF
Copy link

aFcFzF commented Mar 20, 2025

dir the modules ,find use lp.models.Detectron2LayoutModel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants