Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions hloc/triangulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ def import_matches(image_ids, database_path, pairs_path, matches_path,

matched = set()
for name0, name1 in tqdm(pairs):
if name0 not in image_ids or name1 not in image_ids:
continue

id0, id1 = image_ids[name0], image_ids[name1]
if len({(id0, id1), (id1, id0)} & matched) > 0:
continue
Expand Down