From e48e932b050ec746aea2c122467f3e8d92b350d9 Mon Sep 17 00:00:00 2001 From: Ruilong Li Date: Sun, 9 Apr 2023 11:24:08 +0000 Subject: [PATCH] fix test --- nerfstudio/cameras/cameras.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nerfstudio/cameras/cameras.py b/nerfstudio/cameras/cameras.py index 844c0d605..93500d9bf 100644 --- a/nerfstudio/cameras/cameras.py +++ b/nerfstudio/cameras/cameras.py @@ -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, :],