Skip to content

Commit 3bb81e5

Browse files
committed
Fix typos in comments for clarity in lifter3d.py, correcting "matrics" to "matrices" and "projectio" to "projection". Additionally, update comment for testing section to reflect correct function name "triangulate".
1 parent d6e1fdb commit 3bb81e5

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

fmpose3d/animals/common/lifter3d.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ def triangulate_3d_batch(points_2d_batch, cameras):
306306
num_cams, num_frames, num_joints, _ = points_2d_batch.shape # (6, num_frames, 23, 2)
307307

308308
print("num_cams,num_frames,num_joinits", points_2d_batch.shape)
309-
# **1. compute projection matrics (6, 3, 4)**
309+
# **1. compute projection matrices (6, 3, 4)**
310310
proj_matrices = np.array(
311311
[cam["intrinsic_matrix"] @ np.hstack((cam["R"], cam["T"])) for cam in cameras]
312312
) # numpy array (6, 3, 4)
@@ -361,7 +361,7 @@ def triangulate_3d(points_2d, cameras):
361361
for i, cam in enumerate(cameras):
362362
K, dist, R, T = cam["intrinsic_matrix"], cam["distortion_coeffs"], cam["R"], cam["T"]
363363

364-
P = K @ np.hstack((R, T)) # projectio matrix
364+
P = K @ np.hstack((R, T)) # projection matrix
365365
# print("Projection Matrix P:\n", P)
366366

367367
proj_matrices.append(P)
@@ -628,7 +628,7 @@ def main():
628628
# reprojected_2d = project_3d_to_2d(points_3d, cameras[i])
629629
# # visualize_2d_on_video(video_files[i], frame_number, points_2d_frame[i], reprojected_2d, output_path)
630630

631-
# # test on trangulate 3D batch
631+
# # test on triangulate 3D batch
632632
# left_frame_id = 10
633633
# right_frame_id = 60
634634

0 commit comments

Comments
 (0)