Skip to content

Commit

Permalink
Fix mask shape for Fisheye624 cameras (nerfstudio-project#2813)
Browse files Browse the repository at this point in the history
  • Loading branch information
brentyi authored and ArpegorPSGH committed Jun 22, 2024
1 parent de85d8d commit cd3fd74
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 cd3fd74

Please sign in to comment.