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

This commit is contained in:
Kevin Chen authored and GitHub committed 2024-11-20 00:37:31 -08:00
1 parent 6b60855003
commit 758ea1918e
1 file changed
+2 -2
+2 -2
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: