(args: argparse.Namespace)
| 605 | |
| 606 | |
| 607 | def run(args: argparse.Namespace) -> None: |
| 608 | pycolmap.set_random_seed(0) |
| 609 | |
| 610 | database_path = args.output_path / "database.db" |
| 611 | if database_path.exists(): |
| 612 | database_path.unlink() |
| 613 | |
| 614 | rec_path = args.output_path / "sparse" |
| 615 | rec_path.mkdir(exist_ok=True, parents=True) |
| 616 | |
| 617 | if args.pano_render_type == PanoRenderType.SPHERICAL: |
| 618 | run_spherical(args, database_path, rec_path) |
| 619 | else: |
| 620 | run_perspective(args, database_path, rec_path) |
| 621 | |
| 622 | |
| 623 | if __name__ == "__main__": |
no test coverage detected