From 758ea1918e082aa44776009d8e755c2f3a88d2ee Mon Sep 17 00:00:00 2001 From: Kevin Chen <79341521+kevinddchen@users.noreply.github.com> Date: Wed, 20 Nov 2024 00:37:31 -0800 Subject: [PATCH] Fix: `--crop-bottom` for equirect data (#3525) --- nerfstudio/process_data/equirect_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nerfstudio/process_data/equirect_utils.py b/nerfstudio/process_data/equirect_utils.py index 232d96733..9414ebba2 100644 --- a/nerfstudio/process_data/equirect_utils.py +++ b/nerfstudio/process_data/equirect_utils.py @@ -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: @@ -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: