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

Augmentation probability #119

Open
ariG23498 opened this issue Jul 1, 2021 · 0 comments
Open

Augmentation probability #119

ariG23498 opened this issue Jul 1, 2021 · 0 comments

Comments

@ariG23498
Copy link

UGATIT/utils.py

Lines 23 to 24 in d508e8f

if p > 0.5:
img = augmentation(img, augment_size)

With this piece of code, we make sure that the augmentation is provided with a probability of 0.5. In the paper, it is written that the horizontal flip is done with a probability of 0.5 and then the random crops are taken (assuming with a probability of 1, ie all the time).

For data augmentation, we flipped the images horizontally with a probability of 0.5, resized them to 286 x 286, and random cropped them to 256 x 256.

With the implementation of the code, the statement in the paper becomes untrue, here the horizontal flip probability becomes 0.5*0.5=0.25 and the random crop probability becomes 0.5.

Is this intended behaviour?

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

No branches or pull requests

1 participant