Add annotations

This commit is contained in:
Piero Toffanin committed 2023-10-12 17:59:18 -04:00
1 parent 2b009c3227
commit 080eef4d78
1 file changed
+1 -1
+1 -1
View File
@@ -26,7 +26,7 @@ import numpy as np
from nerfstudio.process_data.process_data_utils import CAMERA_MODELS
def rodrigues_vec_to_rotation_mat(rodrigues_vec):
def rodrigues_vec_to_rotation_mat(rodrigues_vec: np.ndarray) -> np.ndarray:
theta = np.linalg.norm(rodrigues_vec)
if theta < sys.float_info.epsilon:
rotation_mat = np.eye(3, dtype=float)