Closed reminayano closed 3 years ago
"random.random()" produces a random decimal between 0 and 1. Therefore, the probability of “random.random()”>0.5 and “random.random()”<0.5 are both 50%. For the whole data augmentation process, each “if” judgment sentence is sequentially performed to achieve horizontal flipping, vertical flipping and channel transposition randomly.
I understand, thank you very much.
I would like to ask about the augmentation code. The conditions of the three if statements are the same, but what is being done in the first if statement after all?
https://github.com/XinyiYing/D3Dnet/blob/f3ca2483d37430d113a0b920030d37d8b50c5006/code/dataset.py#L182