Skip to content

Conversation

@Aurelien-VB
Copy link
Contributor

@Aurelien-VB Aurelien-VB commented May 16, 2023

The goal of this merge is mostly to fix unintuitive things in tranforms.
First, base probability for random select and random flip is set to 0.5. I also change the way it was done because the old way was overwritten by the inherited class.

I also rework the ResizeWithApectRatio function so that it works as described.
I removed the max_size argument as it wasn't making much sense to me. (If the largest side is equal to size then its impossible that something will be larger).
In case the max_size argument is used somewhere I recommend to just remove sizes larger than max_size.

Right now Compose has a probability of 0.5 by default cause very unintuive behavior.
I propose to replace to 1 by default with the option to change it.
@Aurelien-VB Aurelien-VB requested a review from thibo73800 May 16, 2023 12:28
@Aurelien-VB Aurelien-VB self-assigned this May 16, 2023
@Aurelien-VB Aurelien-VB changed the title use p=1 by default for compose WIP: use p=1 by default for compose May 16, 2023
@Aurelien-VB Aurelien-VB marked this pull request as draft May 16, 2023 14:31
@Aurelien-VB Aurelien-VB changed the title WIP: use p=1 by default for compose use p=1 by default for compose May 16, 2023
@Aurelien-VB Aurelien-VB changed the title use p=1 by default for compose Changes in tranforms Jun 27, 2023
@Aurelien-VB Aurelien-VB marked this pull request as ready for review June 27, 2023 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants