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:
parent
6b60855003
commit
758ea1918e
@ -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:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user