"...graphbolt/git@developer.sourcefind.cn:OpenDAS/dgl.git" did not exist on "efe28493d3f5c9911b0648dba79021d139044d62"
Unverified Commit 43030cb2 authored by Philip Meier's avatar Philip Meier Committed by GitHub
Browse files

remove center unsetting if expand=True (#7715)

parent 71968bc4
...@@ -921,7 +921,6 @@ def rotate_image_pil( ...@@ -921,7 +921,6 @@ def rotate_image_pil(
if center is not None and expand: if center is not None and expand:
warnings.warn("The provided center argument has no effect on the result if expand is True") warnings.warn("The provided center argument has no effect on the result if expand is True")
center = None
return _FP.rotate( return _FP.rotate(
image, angle, interpolation=pil_modes_mapping[interpolation], expand=expand, fill=fill, center=center image, angle, interpolation=pil_modes_mapping[interpolation], expand=expand, fill=fill, center=center
...@@ -938,7 +937,6 @@ def rotate_bounding_box( ...@@ -938,7 +937,6 @@ def rotate_bounding_box(
) -> Tuple[torch.Tensor, Tuple[int, int]]: ) -> Tuple[torch.Tensor, Tuple[int, int]]:
if center is not None and expand: if center is not None and expand:
warnings.warn("The provided center argument has no effect on the result if expand is True") warnings.warn("The provided center argument has no effect on the result if expand is True")
center = None
return _affine_bounding_box_with_expand( return _affine_bounding_box_with_expand(
bounding_box, bounding_box,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment