Skip to content

Commit

Permalink
Fix lints
Browse files Browse the repository at this point in the history
  • Loading branch information
vectorman1 committed Feb 2, 2025
1 parent f0f1f89 commit 77f75ee
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions hloc/reconstruction.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ def run_reconstruction(
return None
logger.info(f"Reconstructed {len(reconstructions)} model(s).")

# Find the largest reconstruction by examining model folders #422
largest_folder = None
largest_num_images = 0
for model_dir in models_path.iterdir():
Expand All @@ -107,7 +106,7 @@ def run_reconstruction(
if (sfm_dir / filename).exists():
(sfm_dir / filename).unlink()
shutil.move(str(largest_folder / filename), str(sfm_dir))

return pycolmap.Reconstruction(sfm_dir)


Expand Down

0 comments on commit 77f75ee

Please sign in to comment.