Skip to content

Commit 758ea19

Browse files
authored
Fix: --crop-bottom for equirect data (#3525)
1 parent 6b60855 commit 758ea19

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nerfstudio/process_data/equirect_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ def equirect2persp(img: torch.Tensor, fov: int, theta: int, phi: int, hd: int, w
158158
return remap_cubic(img, lon, lat, border_mode="wrap")
159159

160160

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

186186

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

0 commit comments

Comments
 (0)