diff --git a/hloc/reconstruction.py b/hloc/reconstruction.py index 49eb8c1f..c579885f 100644 --- a/hloc/reconstruction.py +++ b/hloc/reconstruction.py @@ -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(): @@ -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)