Skip to content

Commit bda072d

Browse files
authored
Merge branch 'main' into prototype-references/classification
2 parents d435378 + ad128b7 commit bda072d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ repos:
1818
- black == 22.3.0
1919
- usort == 1.0.2
2020

21-
- repo: https://gitlab.com/pycqa/flake8
21+
- repo: https://github.com/PyCQA/flake8
2222
rev: 5.0.4
2323
hooks:
2424
- id: flake8

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)