Skip to content

Commit

Permalink
reconstruction.reg_image_ids() becomes set rather than list
Browse files Browse the repository at this point in the history
  • Loading branch information
B1ueber2y committed Dec 25, 2024
1 parent dfe106a commit 13cfc88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hloc/visualization.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def visualize_sfm_2d(
reconstruction = pycolmap.Reconstruction(reconstruction)

if not selected:
image_ids = reconstruction.reg_image_ids()
image_ids = list(reconstruction.reg_image_ids())
selected = random.Random(seed).sample(image_ids, min(n, len(image_ids)))

for i in selected:
Expand Down

0 comments on commit 13cfc88

Please sign in to comment.