Adapt to the new pycolmap interface
Fixes https://github.com/cvg/Hierarchical-Localization/issues/440 Fixes https://github.com/cvg/Hierarchical-Localization/issues/438
visualization.py
selected = random.Random(seed).sample(image_ids, min(n, len(image_ids)))
complains with TypeError: Population must be a sequence. For dicts or sets, use sorted(d).
due to https://github.com/colmap/colmap/pull/2824/commits/d8b50eb2f2ea9cca0db84bead328d12a84a50737#diff-41d77a1f9328d7e0ee226222fcfa320cf1c503f73f6e43c764a8be80a1c66c79R302
can you add sorted(image_ids) to this PR?
visualization.py
selected = random.Random(seed).sample(image_ids, min(n, len(image_ids)))complains with
TypeError: Population must be a sequence. For dicts or sets, use sorted(d).due to colmap/colmap@d8b50eb#diff-41d77a1f9328d7e0ee226222fcfa320cf1c503f73f6e43c764a8be80a1c66c79R302
can you add
sorted(image_ids)to this PR?
Thanks. This is fixed: https://github.com/cvg/Hierarchical-Localization/pull/446/commits/13cfc88b37c4401fa5b74895ceba692334914574.