4
0
mirror of https://github.com/nerfstudio-project/nerfstudio.git synced 2026-11-11 02:24:38 +08:00

Fix: --crop-bottom for equirect data (#3525)

This commit is contained in:
Kevin Chen 2024-11-20 00:37:31 -08:00 committed by GitHub
parent 6b60855003
commit 758ea1918e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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: