lightly icon indicating copy to clipboard operation
lightly copied to clipboard

Add FDA examples

Open saud5150 opened this issue 5 months ago • 1 comments

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.

saud5150 avatar Jul 01 '26 13:07 saud5150

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. :)

liopeer avatar Jul 01 '26 13:07 liopeer