config_path, model_path = self.config_parser(
config_path, model_path, allow_empty_path=True
)
config_path = PathManager.get_local_path(config_path)
if label_map is None:
if config_path.startswith("lp://"):
dataset_name = config_path.lstrip("lp://").split("/")[1]
label_map = LABEL_MAP_CATALOG[dataset_name]
else:
label_map = {}
In src/layoutparser/models/detectron2/layoutmodel.py, config_pathis parsed and translated to a local path before it is parsed for label_map, and label_map becomes empty as a result.
Checklist
I have searched related issues but cannot get the expected help.
Describe the bug
In
src/layoutparser/models/detectron2/layoutmodel.py
,config_path
is parsed and translated to a local path before it is parsed forlabel_map
, andlabel_map
becomes empty as a result.Checklist
To Reproduce Steps to reproduce the behavior:
Environment
$PATH
,$LD_LIBRARY_PATH
,$PYTHONPATH
, etc.)Error traceback If applicable, paste the error traceback here.
Screenshots If applicable, add screenshots to help explain your problem.
Additional context Add any other context about the problem here.