fix large number of typos in repository (#1977)

* fix large number of typos in repository

* fix typos in tests
This commit is contained in:
Milan van Wouden authored and GitHub committed 2023-05-23 10:41:49 -07:00
1 parent ccdcc3951e
commit d413ca4204
32 files changed
+48 -48

No files matched your search

+6 -6
View File
@@ -605,28 +605,28 @@ def create_sfm_depth(
return image_id_to_depth_path
def get_matching_summary(num_intial_frames: int, num_matched_frames: int) -> str:
def get_matching_summary(num_initial_frames: int, num_matched_frames: int) -> str:
"""Returns a summary of the matching results.
Args:
num_intial_frames: The number of initial frames.
num_initial_frames: The number of initial frames.
num_matched_frames: The number of matched frames.
Returns:
A summary of the matching results.
"""
match_ratio = num_matched_frames / num_intial_frames
match_ratio = num_matched_frames / num_initial_frames
if match_ratio == 1:
return "[bold green]COLMAP found poses for all images, CONGRATS!"
if match_ratio < 0.4:
result = f"[bold red]COLMAP only found poses for {num_matched_frames / num_intial_frames * 100:.2f}%"
result = f"[bold red]COLMAP only found poses for {num_matched_frames / num_initial_frames * 100:.2f}%"
result += " of the images. This is low.\nThis can be caused by a variety of reasons,"
result += " such poor scene coverage, blurry images, or large exposure changes."
return result
if match_ratio < 0.8:
result = f"[bold yellow]COLMAP only found poses for {num_matched_frames / num_intial_frames * 100:.2f}%"
result = f"[bold yellow]COLMAP only found poses for {num_matched_frames / num_initial_frames * 100:.2f}%"
result += " of the images.\nThis isn't great, but may be ok."
result += "\nMissing poses can be caused by a variety of reasons, such poor scene coverage, blurry images,"
result += " or large exposure changes."
return result
return f"[bold green]COLMAP found poses for {num_matched_frames / num_intial_frames * 100:.2f}% of the images."
return f"[bold green]COLMAP found poses for {num_matched_frames / num_initial_frames * 100:.2f}% of the images."