Skip to content

What does scale do in RandomResizedCrop? #1291

Answered by Dipet
alejopaullier96 asked this question in Q&A
Discussion options

You must be logged in to vote

scale - Specifies the lower and upper bounds for the random area of the crop, before resizing. The scale is defined with respect to the area of the original image.

Yes, you correctly described how it is works. Implementaion is here: https://github.com/albumentations-team/albumentations/blob/master/albumentations/augmentations/crops/transforms.py#L351

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by alejopaullier96
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants