Skip to content

Commit 298e5f0

Browse files
prabhat00155facebook-github-bot
authored andcommitted
[fbsync] Remove center from PIL affine (#5485)
Reviewed By: datumbox Differential Revision: D34579513 fbshipit-source-id: c2e669a030c9ac9bb2587d44f862f7ba71d2b880
1 parent 5105ad9 commit 298e5f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torchvision/prototype/transforms/functional/_geometry.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ def affine_image_pil(
173173
center = [width * 0.5, height * 0.5]
174174
matrix = _get_inverse_affine_matrix(center, angle, translate, scale, shear)
175175

176-
return _FP.affine(img, matrix, interpolation=pil_modes_mapping[interpolation], fill=fill, center=center)
176+
return _FP.affine(img, matrix, interpolation=pil_modes_mapping[interpolation], fill=fill)
177177

178178

179179
def rotate_image_tensor(

0 commit comments

Comments
 (0)