Skip to content

Commit

Permalink
Fix: --crop-bottom for equirect data (#3525)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinddchen authored Nov 20, 2024
1 parent 6b60855 commit 758ea19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nerfstudio/process_data/equirect_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def equirect2persp(img: torch.Tensor, fov: int, theta: int, phi: int, hd: int, w
return remap_cubic(img, lon, lat, border_mode="wrap")


def _crop_bottom(bound_arr: list, fov: int, crop_factor: float) -> List[float]:
def _crop_top(bound_arr: list, fov: int, crop_factor: float) -> List[float]:
"""Returns a list of vertical bounds with the bottom cropped.
Args:
Expand All @@ -184,7 +184,7 @@ def _crop_bottom(bound_arr: list, fov: int, crop_factor: float) -> List[float]:
return bound_arr


def _crop_top(bound_arr: list, fov: int, crop_factor: float) -> List[float]:
def _crop_bottom(bound_arr: list, fov: int, crop_factor: float) -> List[float]:
"""Returns a list of vertical bounds with the top cropped.
Args:
Expand Down

0 comments on commit 758ea19

Please sign in to comment.