Skip to content

Commit ad128b7

Browse files
authored
fix documentation of _get_inverse_affine_matrix (#6947)
1 parent a148994 commit ad128b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torchvision/transforms/functional.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1004,7 +1004,7 @@ def _get_inverse_affine_matrix(
10041004
# RotateScaleShear(a, s, (sx, sy)) =
10051005
# = R(a) * S(s) * SHy(sy) * SHx(sx)
10061006
# = [ s*cos(a - sy)/cos(sy), s*(-cos(a - sy)*tan(sx)/cos(sy) - sin(a)), 0 ]
1007-
# [ s*sin(a + sy)/cos(sy), s*(-sin(a - sy)*tan(sx)/cos(sy) + cos(a)), 0 ]
1007+
# [ s*sin(a - sy)/cos(sy), s*(-sin(a - sy)*tan(sx)/cos(sy) + cos(a)), 0 ]
10081008
# [ 0 , 0 , 1 ]
10091009
# where R is a rotation matrix, S is a scaling matrix, and SHx and SHy are the shears:
10101010
# SHx(s) = [1, -tan(s)] and SHy(s) = [1 , 0]

0 commit comments

Comments
 (0)