fdg.py is the code for original Fourier-based domain generalization https://github.com/liuquande/FedDG-ELCFS
fdg_st is our proposed mehtod that improves FDG with the soft-thresholding function.
These code will generate training samples in continuous distribution. Then, please include them into the training dataset.
Training and dataset are from https://github.com/emma-sjwang/Dofe