File tree 1 file changed +3
-3
lines changed
torchvision/prototype/transforms/functional 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -324,7 +324,7 @@ def rotate_image_tensor(
324
324
center_f = [0.0 , 0.0 ]
325
325
if center is not None :
326
326
if expand :
327
- warnings .warn ("The provided center argument is ignored if expand is True" )
327
+ warnings .warn ("The provided center argument has no effect on the result if expand is True" )
328
328
else :
329
329
_ , height , width = get_dimensions_image_tensor (img )
330
330
# Center values should be in pixel coordinates but translated such that (0, 0) corresponds to image center.
@@ -345,7 +345,7 @@ def rotate_image_pil(
345
345
center : Optional [List [float ]] = None ,
346
346
) -> PIL .Image .Image :
347
347
if center is not None and expand :
348
- warnings .warn ("The provided center argument is ignored if expand is True" )
348
+ warnings .warn ("The provided center argument has no effect on the result if expand is True" )
349
349
center = None
350
350
351
351
return _FP .rotate (
@@ -362,7 +362,7 @@ def rotate_bounding_box(
362
362
center : Optional [List [float ]] = None ,
363
363
) -> torch .Tensor :
364
364
if center is not None and expand :
365
- warnings .warn ("The provided center argument is ignored if expand is True" )
365
+ warnings .warn ("The provided center argument has no effect on the result if expand is True" )
366
366
center = None
367
367
368
368
original_shape = bounding_box .shape
You can’t perform that action at this time.
0 commit comments