├── .gitignore ├── LICENSE ├── README.md ├── benchmark ├── cuFPM │ ├── cuda │ │ ├── addon.h │ │ ├── helpers.cu │ │ ├── helpers.h │ │ ├── kernel_foo.cu │ │ ├── kernel_foo.cuh │ │ ├── kernel_foo_all.cu │ │ ├── mxGPUArray.h │ │ └── optimizer.cu │ ├── fullyfusedFPM.cu │ └── fullyfusedFPM.mexw64 ├── cuFPM_recon_2025_circular.m ├── func_ware │ ├── fpm_forward.m │ ├── fpm_forward_GPU.m │ ├── fused_fft2.mexw64 │ ├── init_environment_rgb.m │ ├── misc │ │ ├── complex_TV.m │ │ ├── fft2_ware.m │ │ └── ifft2_ware.m │ └── ret_loss.m ├── gen_img_batch.m └── run.m ├── codes ├── func_ware │ ├── fpm_forward_GPU.m │ ├── fpm_forward_fused.m │ ├── init_environment_rgb.m │ ├── misc │ │ ├── complex_TV.m │ │ ├── fft2_ware.m │ │ ├── ifft2_ware.m │ │ └── ret_loss.m │ └── optimizers │ │ ├── optimizer_RMSprop.m │ │ ├── optimizer_adam.m │ │ └── optimizer_sgd.m ├── fusedfpm │ ├── cuda │ │ ├── helpers.cu │ │ ├── helpers.h │ │ ├── kernel_foo.cu │ │ ├── kernel_foo.cuh │ │ └── mxGPUArray.h │ ├── fullyfusedFPM.cu │ └── fullyfusedFPM.mexw64 └── main_run_FPM.m ├── codes_v2 ├── cuFPM │ ├── build.m │ ├── cuFPM_pure.cu │ ├── cuFPM_pure.mexw64 │ ├── cuda-cpp.tmLanguage.json │ └── cuda │ │ ├── addon.h │ │ ├── helpers.cu │ │ ├── helpers.cuh │ │ ├── helpers.h (replaced by .cuh) │ │ ├── kernel_foo.cu │ │ ├── kernel_foo.cuh │ │ └── mxGPUArray.h ├── func_ware │ ├── fpm_forward_GPU.m │ ├── init_environment_rgb.m │ └── optimizers │ │ ├── optimizer_RMSprop.m │ │ └── optimizer_yogi.m └── main_run_FPM.m └── sources ├── benchmark.jpg └── readme.md /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/THUHoloLab/Fused-Fourier-Ptycho/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/THUHoloLab/Fused-Fourier-Ptycho/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/THUHoloLab/Fused-Fourier-Ptycho/HEAD/README.md -------------------------------------------------------------------------------- /benchmark/cuFPM/cuda/addon.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/THUHoloLab/Fused-Fourier-Ptycho/HEAD/benchmark/cuFPM/cuda/addon.h -------------------------------------------------------------------------------- /benchmark/cuFPM/cuda/helpers.cu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/THUHoloLab/Fused-Fourier-Ptycho/HEAD/benchmark/cuFPM/cuda/helpers.cu -------------------------------------------------------------------------------- /benchmark/cuFPM/cuda/helpers.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/THUHoloLab/Fused-Fourier-Ptycho/HEAD/benchmark/cuFPM/cuda/helpers.h -------------------------------------------------------------------------------- /benchmark/cuFPM/cuda/kernel_foo.cu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/THUHoloLab/Fused-Fourier-Ptycho/HEAD/benchmark/cuFPM/cuda/kernel_foo.cu -------------------------------------------------------------------------------- /benchmark/cuFPM/cuda/kernel_foo.cuh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/THUHoloLab/Fused-Fourier-Ptycho/HEAD/benchmark/cuFPM/cuda/kernel_foo.cuh -------------------------------------------------------------------------------- /benchmark/cuFPM/cuda/kernel_foo_all.cu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/THUHoloLab/Fused-Fourier-Ptycho/HEAD/benchmark/cuFPM/cuda/kernel_foo_all.cu -------------------------------------------------------------------------------- /benchmark/cuFPM/cuda/mxGPUArray.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/THUHoloLab/Fused-Fourier-Ptycho/HEAD/benchmark/cuFPM/cuda/mxGPUArray.h -------------------------------------------------------------------------------- /benchmark/cuFPM/cuda/optimizer.cu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/THUHoloLab/Fused-Fourier-Ptycho/HEAD/benchmark/cuFPM/cuda/optimizer.cu -------------------------------------------------------------------------------- /benchmark/cuFPM/fullyfusedFPM.cu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/THUHoloLab/Fused-Fourier-Ptycho/HEAD/benchmark/cuFPM/fullyfusedFPM.cu -------------------------------------------------------------------------------- /benchmark/cuFPM/fullyfusedFPM.mexw64: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/THUHoloLab/Fused-Fourier-Ptycho/HEAD/benchmark/cuFPM/fullyfusedFPM.mexw64 -------------------------------------------------------------------------------- /benchmark/cuFPM_recon_2025_circular.m: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/THUHoloLab/Fused-Fourier-Ptycho/HEAD/benchmark/cuFPM_recon_2025_circular.m -------------------------------------------------------------------------------- /benchmark/func_ware/fpm_forward.m: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/THUHoloLab/Fused-Fourier-Ptycho/HEAD/benchmark/func_ware/fpm_forward.m -------------------------------------------------------------------------------- /benchmark/func_ware/fpm_forward_GPU.m: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/THUHoloLab/Fused-Fourier-Ptycho/HEAD/benchmark/func_ware/fpm_forward_GPU.m -------------------------------------------------------------------------------- /benchmark/func_ware/fused_fft2.mexw64: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/THUHoloLab/Fused-Fourier-Ptycho/HEAD/benchmark/func_ware/fused_fft2.mexw64 -------------------------------------------------------------------------------- /benchmark/func_ware/init_environment_rgb.m: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/THUHoloLab/Fused-Fourier-Ptycho/HEAD/benchmark/func_ware/init_environment_rgb.m -------------------------------------------------------------------------------- /benchmark/func_ware/misc/complex_TV.m: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/THUHoloLab/Fused-Fourier-Ptycho/HEAD/benchmark/func_ware/misc/complex_TV.m -------------------------------------------------------------------------------- /benchmark/func_ware/misc/fft2_ware.m: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/THUHoloLab/Fused-Fourier-Ptycho/HEAD/benchmark/func_ware/misc/fft2_ware.m -------------------------------------------------------------------------------- /benchmark/func_ware/misc/ifft2_ware.m: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/THUHoloLab/Fused-Fourier-Ptycho/HEAD/benchmark/func_ware/misc/ifft2_ware.m -------------------------------------------------------------------------------- /benchmark/func_ware/ret_loss.m: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/THUHoloLab/Fused-Fourier-Ptycho/HEAD/benchmark/func_ware/ret_loss.m -------------------------------------------------------------------------------- /benchmark/gen_img_batch.m: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/THUHoloLab/Fused-Fourier-Ptycho/HEAD/benchmark/gen_img_batch.m -------------------------------------------------------------------------------- /benchmark/run.m: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/THUHoloLab/Fused-Fourier-Ptycho/HEAD/benchmark/run.m -------------------------------------------------------------------------------- /codes/func_ware/fpm_forward_GPU.m: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/THUHoloLab/Fused-Fourier-Ptycho/HEAD/codes/func_ware/fpm_forward_GPU.m -------------------------------------------------------------------------------- /codes/func_ware/fpm_forward_fused.m: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/THUHoloLab/Fused-Fourier-Ptycho/HEAD/codes/func_ware/fpm_forward_fused.m -------------------------------------------------------------------------------- /codes/func_ware/init_environment_rgb.m: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/THUHoloLab/Fused-Fourier-Ptycho/HEAD/codes/func_ware/init_environment_rgb.m -------------------------------------------------------------------------------- /codes/func_ware/misc/complex_TV.m: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/THUHoloLab/Fused-Fourier-Ptycho/HEAD/codes/func_ware/misc/complex_TV.m -------------------------------------------------------------------------------- /codes/func_ware/misc/fft2_ware.m: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/THUHoloLab/Fused-Fourier-Ptycho/HEAD/codes/func_ware/misc/fft2_ware.m -------------------------------------------------------------------------------- /codes/func_ware/misc/ifft2_ware.m: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/THUHoloLab/Fused-Fourier-Ptycho/HEAD/codes/func_ware/misc/ifft2_ware.m -------------------------------------------------------------------------------- /codes/func_ware/misc/ret_loss.m: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/THUHoloLab/Fused-Fourier-Ptycho/HEAD/codes/func_ware/misc/ret_loss.m -------------------------------------------------------------------------------- /codes/func_ware/optimizers/optimizer_RMSprop.m: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/THUHoloLab/Fused-Fourier-Ptycho/HEAD/codes/func_ware/optimizers/optimizer_RMSprop.m -------------------------------------------------------------------------------- /codes/func_ware/optimizers/optimizer_adam.m: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/THUHoloLab/Fused-Fourier-Ptycho/HEAD/codes/func_ware/optimizers/optimizer_adam.m -------------------------------------------------------------------------------- /codes/func_ware/optimizers/optimizer_sgd.m: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/THUHoloLab/Fused-Fourier-Ptycho/HEAD/codes/func_ware/optimizers/optimizer_sgd.m -------------------------------------------------------------------------------- /codes/fusedfpm/cuda/helpers.cu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/THUHoloLab/Fused-Fourier-Ptycho/HEAD/codes/fusedfpm/cuda/helpers.cu -------------------------------------------------------------------------------- /codes/fusedfpm/cuda/helpers.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/THUHoloLab/Fused-Fourier-Ptycho/HEAD/codes/fusedfpm/cuda/helpers.h -------------------------------------------------------------------------------- /codes/fusedfpm/cuda/kernel_foo.cu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/THUHoloLab/Fused-Fourier-Ptycho/HEAD/codes/fusedfpm/cuda/kernel_foo.cu -------------------------------------------------------------------------------- /codes/fusedfpm/cuda/kernel_foo.cuh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/THUHoloLab/Fused-Fourier-Ptycho/HEAD/codes/fusedfpm/cuda/kernel_foo.cuh -------------------------------------------------------------------------------- /codes/fusedfpm/cuda/mxGPUArray.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/THUHoloLab/Fused-Fourier-Ptycho/HEAD/codes/fusedfpm/cuda/mxGPUArray.h -------------------------------------------------------------------------------- /codes/fusedfpm/fullyfusedFPM.cu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/THUHoloLab/Fused-Fourier-Ptycho/HEAD/codes/fusedfpm/fullyfusedFPM.cu -------------------------------------------------------------------------------- /codes/fusedfpm/fullyfusedFPM.mexw64: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/THUHoloLab/Fused-Fourier-Ptycho/HEAD/codes/fusedfpm/fullyfusedFPM.mexw64 -------------------------------------------------------------------------------- /codes/main_run_FPM.m: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/THUHoloLab/Fused-Fourier-Ptycho/HEAD/codes/main_run_FPM.m -------------------------------------------------------------------------------- /codes_v2/cuFPM/build.m: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/THUHoloLab/Fused-Fourier-Ptycho/HEAD/codes_v2/cuFPM/build.m -------------------------------------------------------------------------------- /codes_v2/cuFPM/cuFPM_pure.cu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/THUHoloLab/Fused-Fourier-Ptycho/HEAD/codes_v2/cuFPM/cuFPM_pure.cu -------------------------------------------------------------------------------- /codes_v2/cuFPM/cuFPM_pure.mexw64: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/THUHoloLab/Fused-Fourier-Ptycho/HEAD/codes_v2/cuFPM/cuFPM_pure.mexw64 -------------------------------------------------------------------------------- /codes_v2/cuFPM/cuda-cpp.tmLanguage.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/THUHoloLab/Fused-Fourier-Ptycho/HEAD/codes_v2/cuFPM/cuda-cpp.tmLanguage.json -------------------------------------------------------------------------------- /codes_v2/cuFPM/cuda/addon.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/THUHoloLab/Fused-Fourier-Ptycho/HEAD/codes_v2/cuFPM/cuda/addon.h -------------------------------------------------------------------------------- /codes_v2/cuFPM/cuda/helpers.cu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/THUHoloLab/Fused-Fourier-Ptycho/HEAD/codes_v2/cuFPM/cuda/helpers.cu -------------------------------------------------------------------------------- /codes_v2/cuFPM/cuda/helpers.cuh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/THUHoloLab/Fused-Fourier-Ptycho/HEAD/codes_v2/cuFPM/cuda/helpers.cuh -------------------------------------------------------------------------------- /codes_v2/cuFPM/cuda/helpers.h (replaced by .cuh): -------------------------------------------------------------------------------- https://raw.githubusercontent.com/THUHoloLab/Fused-Fourier-Ptycho/HEAD/codes_v2/cuFPM/cuda/helpers.h (replaced by .cuh) -------------------------------------------------------------------------------- /codes_v2/cuFPM/cuda/kernel_foo.cu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/THUHoloLab/Fused-Fourier-Ptycho/HEAD/codes_v2/cuFPM/cuda/kernel_foo.cu -------------------------------------------------------------------------------- /codes_v2/cuFPM/cuda/kernel_foo.cuh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/THUHoloLab/Fused-Fourier-Ptycho/HEAD/codes_v2/cuFPM/cuda/kernel_foo.cuh -------------------------------------------------------------------------------- /codes_v2/cuFPM/cuda/mxGPUArray.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/THUHoloLab/Fused-Fourier-Ptycho/HEAD/codes_v2/cuFPM/cuda/mxGPUArray.h -------------------------------------------------------------------------------- /codes_v2/func_ware/fpm_forward_GPU.m: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/THUHoloLab/Fused-Fourier-Ptycho/HEAD/codes_v2/func_ware/fpm_forward_GPU.m -------------------------------------------------------------------------------- /codes_v2/func_ware/init_environment_rgb.m: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/THUHoloLab/Fused-Fourier-Ptycho/HEAD/codes_v2/func_ware/init_environment_rgb.m -------------------------------------------------------------------------------- /codes_v2/func_ware/optimizers/optimizer_RMSprop.m: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/THUHoloLab/Fused-Fourier-Ptycho/HEAD/codes_v2/func_ware/optimizers/optimizer_RMSprop.m -------------------------------------------------------------------------------- /codes_v2/func_ware/optimizers/optimizer_yogi.m: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/THUHoloLab/Fused-Fourier-Ptycho/HEAD/codes_v2/func_ware/optimizers/optimizer_yogi.m -------------------------------------------------------------------------------- /codes_v2/main_run_FPM.m: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/THUHoloLab/Fused-Fourier-Ptycho/HEAD/codes_v2/main_run_FPM.m -------------------------------------------------------------------------------- /sources/benchmark.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/THUHoloLab/Fused-Fourier-Ptycho/HEAD/sources/benchmark.jpg -------------------------------------------------------------------------------- /sources/readme.md: -------------------------------------------------------------------------------- 1 | 2 | --------------------------------------------------------------------------------