Skip to content

Commit

Permalink
fix: remove assert same device (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
yxlao authored Apr 16, 2024
1 parent 593242b commit fd372f0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion camtools/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,6 @@ def roll_pitch_yaw_to_R(roll, pitch, yaw):


def R_t_to_T(R, t):
sanity.assert_same_device(R, t)
T = np.eye(4)
T[:3, :3] = R
T[:3, 3] = t
Expand Down
1 change: 0 additions & 1 deletion camtools/transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ def transform_points(points, transform_mat):
"""
sanity.assert_shape_nx3(points, name="points")
sanity.assert_shape_4x4(transform_mat, name="mat")
sanity.assert_same_device(points, transform_mat)

points = convert.to_homo(points)
points_transformed = points @ transform_mat.T # (mat @ points.T).T
Expand Down

0 comments on commit fd372f0

Please sign in to comment.