Open
Description
Describe the bug
In Windows, AutoLayoutModel('lp://EfficientDete/PubLayNet')
or AutoLayoutModel('lp://EfficientDet/PubLayNet')
returns None
. See reproducing steps.
To Reproduce
Steps to reproduce the behavior:
pip install layoutparser
pip install "layoutparser[layoutmodels]"
pip install "layoutparser[ocr]"
pip install asgiref
pip install "layoutparser[detectron2]"
No error happens when installing these packages.
from layoutparser.models import AutoLayoutModel
model = AutoLayoutModel('lp://EfficientDete/PubLayNet')
Also tried:
from layoutparser.models import AutoLayoutModel
model = AutoLayoutModel('lp://EfficientDet/PubLayNet') # maybe "Det" instead of "Dete", typo in documentation
Always there is model = None
.
Environment
- Please describe your Platform [Windows/MacOS/Linux]: Windows 10 64-bit
- Please show the Layout Parser version 0.3.4
- You may add addition that may be helpful for locating the problem, such as
- How you installed PyTorch [e.g., pip, conda, source]
- Other environment variables that may be related (such as
$PATH
,$LD_LIBRARY_PATH
,$PYTHONPATH
, etc.)
pytorch
is installed as a dependency when installing layoutparser
. I use pip
package management.
CPU only.
Error traceback
No error returned.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.