A generative adversarial framework for FPM reconstruction, termed WM-FPM, integrates wavelet transform blocks and mamba-inspired linear attention models.
This repository contains the official implementation of the paper "Fast High-Fidelity Fourier Ptychographic Microscopy via Wavelet Transform and Linear Attention".
✨ Some visual examples:
This project requires Python 3.9 and PyTorch 2.5.1. Follow these steps to set up the environment:
git clone https://github.com/ww20250822/WM-FPM.git
cd WM-FPMconda create -n wm-fpm python=3.9
conda activate wm-fpmpip install -r requirements.txt1.Download datasets from FPM-BioCell
2.Extract files to the datasets directory
3.The processing method of the dataset can be found in pytorch-CycleGAN-and-pix2pix.
python train.py --dataroot ./datasets/FPM --name WM_FPM --model pix2pix --netG WM-FPM --direction BtoATo see more intermediate results, check out ./checkpoints/WM_FPM/web/index.html.
python test.py --dataroot ./datasets/FPM --name WM_FPM --model pix2pix --netG WM-FPM --direction BtoAThe test results will be saved to a html file here: ./results/WM_FPM/test_latest/index.html.
Our codebase is built with references to the following open-source projects:
- pytorch-CycleGAN-and-pix2pix: The CycleGAN and pix2pixGAN models were implemented using PyTorch.
We sincerely appreciate the authors for open-sourcing their valuable work.
If you use this code for your research, please cite our paper.
@article{sun2025fast,
title={Fast High-Fidelity Fourier Ptychographic Microscopy via Wavelet Transform and Linear Attention},
author={Sun, Wenwen and Li, Jiajin and Wu, Hao and Jiang, Xiang and Zhang, Xingnan and Wei, Xunbin and Wang, Yadan and Zhou, Jinhua},
journal={Laser \& Photonics Reviews},
pages={e01895},
year={2025},
publisher={Wiley Online Library}
}

