eriklindernoren / PyTorch-GAN

PyTorch implementations of Generative Adversarial Networks.
MIT License
16.22k stars 4.05k forks source link

What do these three lines of code mean #113

Open KevinMarkVine opened 4 years ago

KevinMarkVine commented 4 years ago

https://github.com/eriklindernoren/PyTorch-GAN/blob/a163b82beff3d01688d8315a3fd39080400e7c01/implementations/pix2pix/datasets.py#L26

Sean16SYSU commented 4 years ago

I think it‘s to avoid over-fitting, cause it just reverse the image A and image B at the same time randomly.

mrgloom commented 3 years ago

It's just horizontal flip random augmentations.