Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rotate with expand #642

Closed
neverrop opened this issue Jun 8, 2020 · 3 comments · Fixed by #888
Closed

rotate with expand #642

neverrop opened this issue Jun 8, 2020 · 3 comments · Fixed by #888
Labels
enhancement New feature or request

Comments

@neverrop
Copy link

neverrop commented Jun 8, 2020

in PIL.Image, there is a rotate(angle, expand=True) to rotate without cropping bounders, It seems there is no similar method or op to use in albumentations.

@sonack
Copy link

sonack commented Mar 18, 2021

+1

@Dipet Dipet added the enhancement New feature or request label Mar 22, 2021
@thomas0809
Copy link

I don't think this issue is resolved with SafeRotate. SafeRotate compresses the rotated image to fit in the original size. Is it possible to skip the compression step? I.e. torchvision.transform.RandomRotation with expand=True

@Dipet
Copy link
Collaborator

Dipet commented May 19, 2021

Try to use Affine with fit_output parameter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants