cc-ai / climategan

Code and pre-trained model for the algorithm generating visualisations of 3 climate change related events: floods, wildfires and smog.
https://thisclimatedoesnotexist.com
GNU General Public License v3.0
72 stars 18 forks source link

Color jittering + cutout transforms #175

Closed alexrey88 closed 3 years ago

alexrey88 commented 3 years ago

Two main changes:

Link for diff experiment ["m,s"]: NewTransforms=ON vs NewTransforms=OFF.

Link for diff experiment ["p"]: DiffAugm=ON vs DiffAugm=OFF.

(Note: for now, if "m" and "p" are both in opts.tasks, the new transforms won't be apply to the input image for the training procedure, they will only be used for discriminator and generator updates of the painter. This is to avoid applying the transforms twice and giving a transformed image as input of the painter).

Visual results of the transforms: val_r_s_10_#3_step_10

vict0rsch commented 3 years ago

https://hanlab.mit.edu/projects/data-efficient-gans/

Differentiable Augmentation for Data-Efficient GAN Training
vict0rsch commented 3 years ago

I don't think we'll be playing around that much with the diff transforms, can it just be a binary flag in opts.data? that would simplify the interface and the code.

What do you think?

alexrey88 commented 3 years ago

@vict0rsch it's already an option in opts.gen.p.apply_diff_augment. You mean that it should be somemewhere else in our opts dict?

vict0rsch commented 3 years ago

Todo: use those transforms in wildfire instead of using PIL to speed up inference