Skip to content

Commit bb83e5b

Browse files
authored
Remove center from PIL affine (#5485)
1 parent 82f9a18 commit bb83e5b

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)