Skip to content

KeyError: 'aliked-lightglue' #152

@Chico1904

Description

@Chico1904

Hey there, I am currently trying to run one of the example commands

python runners/hypersim/triangulation.py --output_dir outputs/quickstart_triangulation

And I followed the installation steps as specified in here. However, using the configs in triangulation/default.yaml, I encountered the following error.

Traceback (most recent call last):
  File "<...>/runners/hypersim/triangulation.py", line 71, in <module>
    main()
  File "<...>/runners/hypersim/triangulation.py", line 67, in main
    run_scene_hypersim(cfg, dataset, cfg["scene_id"], cam_id=cfg["cam_id"])
  File "<...>/runners/hypersim/triangulation.py", line 19, in run_scene_hypersim
    linetracks = limap.runners.line_triangulation(cfg, imagecols)
  File "<...>/src/limap/runners/line_triangulation.py", line 66, in line_triangulation
    sfminfos_colmap_folder, neighbors, ranges = runners.compute_sfminfos(
  File "<...>/src/limap/runners/functions.py", line 171, in compute_sfminfos
    pointsfm.run_colmap_sfm_with_known_poses(
  File "<...>/src/limap/pointsfm/colmap_sfm.py", line 250, in run_colmap_sfm_with_known_poses
    run_hloc_matches(
  File "<...>/src/limap/pointsfm/colmap_sfm.py", line 94, in run_hloc_matches
    matcher_conf = match_features.confs[cfg["matcher"]]
KeyError: 'aliked-lightglue'

FYI I ran python -c "import limap; print(limap.__version__)" and limap was imported just fine.

I noticed these specs were changed a few months ago
Image

But if I change to the old ones I get import errors, which makes me wonder if I missed anything about the installation.

Traceback (most recent call last):
  File "<...>/runners/hypersim/triangulation.py", line 71, in <module>
    main()
  File "<...>/runners/hypersim/triangulation.py", line 67, in main
    run_scene_hypersim(cfg, dataset, cfg["scene_id"], cam_id=cfg["cam_id"])
  File "<...>/runners/hypersim/triangulation.py", line 19, in run_scene_hypersim
    linetracks = limap.runners.line_triangulation(cfg, imagecols)
  File "<...>/src/limap/runners/line_triangulation.py", line 66, in line_triangulation
    sfminfos_colmap_folder, neighbors, ranges = runners.compute_sfminfos(
  File "<...>/src/limap/runners/functions.py", line 171, in compute_sfminfos
    pointsfm.run_colmap_sfm_with_known_poses(
  File "<...>/src/limap/pointsfm/colmap_sfm.py", line 250, in run_colmap_sfm_with_known_poses
    run_hloc_matches(
  File "<...>/src/limap/pointsfm/colmap_sfm.py", line 110, in run_hloc_matches
    feature_path = extract_features.main(feature_conf, image_path, outputs)
  File "/opt/pyenv/versions/3.10.14/lib/python3.10/site-packages/torch/utils/_contextlib.py", line 124, in decorate_context
    return func(*args, **kwargs)
  File "/home/coder/.local/lib/python3.10/site-packages/hloc/extract_features.py", line 259, in main
    Model = dynamic_load(extractors, conf["model"]["name"])
  File "/home/coder/.local/lib/python3.10/site-packages/hloc/utils/base_model.py", line 40, in dynamic_load
    module = __import__(module_path, fromlist=[""])
  File "/home/coder/.local/lib/python3.10/site-packages/hloc/extractors/superpoint.py", line 9, in <module>
    from SuperGluePretrainedNetwork.models import superpoint  # noqa E402
ModuleNotFoundError: No module named 'SuperGluePretrainedNetwork'

Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions