4
0
mirror of https://github.com/nerfstudio-project/nerfstudio.git synced 2026-11-10 18:17:31 +08:00
This commit is contained in:
Ruilong Li 2023-04-09 11:24:08 +00:00
parent 74bb54ebd1
commit e48e932b05

View File

@ -657,7 +657,7 @@ class Cameras(TensorDataclass):
coord_stack[coord_mask, :].reshape(3, -1, 2),
distortion_params[mask, :],
).reshape(-1, 2)
except (RuntimeError, ImportError):
except (RuntimeError, ImportError, AttributeError):
coord_stack[coord_mask, :] = camera_utils.radial_and_tangential_undistort(
coord_stack[coord_mask, :].reshape(3, -1, 2),
distortion_params[mask, :],