Add FDA examples
Add training examples for FDA (Fourier Domain Augmentations) based on Disentangling the Effects of Data Augmentation and Format Transform in Self-Supervised Learning of Image Representations.
The transforms (FDATransform, FDAView1Transform, FDAView2Transform) were added in #1726. What's missing are training examples showing how to use them end-to-end. The model and loss are identical to SimCLR (NTXentLoss + SimCLRProjectionHead) — only the transform changes — so the examples are straightforward adaptations of the existing SimCLR examples.
Tasks
- [ ] Add
examples/pytorch/fda.py - [ ] Add
examples/pytorch_lightning/fda.py - [ ] Add
examples/pytorch_lightning_distributed/fda.py
Follow examples/pytorch/simclr.py as the template, replacing SimCLRTransform with FDATransform. I'd like to take this on.
Sounds like a plan. I would first create a PR for just examples/pytorch/fda.py and then we can align on some stuff. After that you can probably do the lightning ones together. :)