Skip to content

Commit dbcf637

Browse files
author
Fangchang Ma
authored
Merge pull request #15 from apple/fix_typo
Fix a typo
2 parents 2193004 + 54ca936 commit dbcf637

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gmpi/core/mpi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def homography(
115115
print("\nv: ", v[0, :4, 0], "\n")
116116

117117
if c2w_mat is not None:
118-
yaws, pitches = compute_pitch_yaw_from_w2c_mat(c2w_mat.cpu(), torch.FloatTensor(sphere_c))
118+
yaws, pitches = compute_pitch_yaw_from_w2c_mat(torch.inverse(c2w_mat).cpu(), torch.FloatTensor(sphere_c))
119119
print("\nyaws: ", yaws.cpu().numpy().tolist(), "\n")
120120
print("\npitches: ", pitches.cpu().numpy().tolist(), "\n")
121121

0 commit comments

Comments
 (0)