Describe the bug
I’m currently trying to use LayoutParser with the Detectron2 models, but it looks like the Dropbox links for model weights and config files are no longer working.
Specifically, the URLs listed in this file appear to be broken:
https://github.com/Layout-Parser/layout-parser/blob/04e28168d820eea3a1ff1e098078323e7b48648b/src/layoutparser/models/detectron2/catalog.py
When attempting to access them, I get the error: "This item has been deleted"
Are there any plans to restore or replace these links?
To Reproduce
Steps to reproduce the behavior:
- What command or script did you run?
import layoutparser as lp
model = lp.Detectron2LayoutModel(
config_path ='lp://NewspaperNavigator/faster_rcnn_R_50_FPN_3x/config', # In model catalog
label_map ={0: "Photograph", 1: "Illustration", 2: "Map", 3: "Comics/Cartoon", 4: "Editorial Cartoon", 5: "Headline", 6: "Advertisement"}, # In model`label_map`
extra_config=["MODEL.ROI_HEADS.SCORE_THRESH_TEST", 0.8] # Optional
)
model.detect(image)
Error traceback
config.yml?dl=1: 238kB [00:00, 380kB/s]
---------------------------------------------------------------------------
ScannerError Traceback (most recent call last)
Cell In[11], [line 3](vscode-notebook-cell:?execution_count=11&line=3)
1 import layoutparser as lp
----> 3 model = lp.Detectron2LayoutModel(
4 config_path ='lp://NewspaperNavigator/faster_rcnn_R_50_FPN_3x/config', # In model catalog
5 label_map ={0: "Photograph", 1: "Illustration", 2: "Map", 3: "Comics/Cartoon", 4: "Editorial Cartoon", 5: "Headline", 6: "Advertisement"}, # In model`label_map`
6 extra_config=["MODEL.ROI_HEADS.SCORE_THRESH_TEST", 0.8] # Optional
7 )
8 model.detect(image)
File ~/miniconda3/envs/cvc-premsa/lib/python3.10/site-packages/layoutparser/models/detectron2/layoutmodel.py:101, in Detectron2LayoutModel.__init__(self, config_path, model_path, label_map, extra_config, enforce_cpu, device)
98 label_map = {}
...
ScannerError: mapping values are not allowed here
Describe the bug
I’m currently trying to use LayoutParser with the Detectron2 models, but it looks like the Dropbox links for model weights and config files are no longer working.
Specifically, the URLs listed in this file appear to be broken:
https://github.com/Layout-Parser/layout-parser/blob/04e28168d820eea3a1ff1e098078323e7b48648b/src/layoutparser/models/detectron2/catalog.py
When attempting to access them, I get the error: "This item has been deleted"
Are there any plans to restore or replace these links?
To Reproduce
Steps to reproduce the behavior:
Error traceback