Skip to content

Commit

Permalink
Fix mask shape for Fisheye624 cameras (#2813)
Browse files Browse the repository at this point in the history
  • Loading branch information
brentyi authored Jan 24, 2024
1 parent 3655920 commit fb4f9f0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nerfstudio/data/datamanagers/full_images_datamanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,8 @@ def _undistort_image(
borderValue=0,
)
/ 255.0
).bool()
).bool()[..., None]
assert mask.shape == (undist_h, undist_w, 1)
K = undist_K.numpy()
else:
raise NotImplementedError("Only perspective and fisheye cameras are supported")
Expand Down

0 comments on commit fb4f9f0

Please sign in to comment.