The code is for the paper:
Butterfly-Net2: Simplified Butterfly-Net and Fourier Transform Initialization
All code was developed on Windows 10 and tested on CentOS 7 with Python 3.6, and was implemented by Tensorflow 1.13
all the experiments are done via code in the folder 'test', while other sources are in the folder 'src'.
testing: test_Fourier_beforetrain.py
plot: test_Fourier_beforetrain_plot.py
for other situations, just change the value of N, K, l, r.
initialization: Butterfly_FTini.py
training & testing: test_Fourier_aftertrain.py
The four different networks and other hyper-parameters can be changed in paras.json.
initialization: Butterfly_FTini.py
training: test_Fourier_trans_train.py
testing: test_Fourier_trans_eval.py
plot: test_Fourier_trans_plot.py
initialization: Butterfly_FTini.py
training & testing: test_Energy.py
initialization: EtE_Butterfly_FTini.py & EtE_PDE_setgen.py
training & testing: test_EtE_PDE.py
plot: test_EtE_PDE_plot.py
initialization: EtE_Butterfly_FTini.py
training & testing: test_denoise.py & test_deblur.py
plot: test_denoise_plot.py & test_deblur_plot.py