/DMEDH

DMEDH: Diffusion Model-boosted Multiplane Extrapolation for Digital Holographic Reconstruction

Primary LanguageJupyter Notebook

DMEDH

Paper: DMEDH: Diffusion Model-boosted Multiplane Extrapolation for Digital Holographic Reconstruction

Authors: Songyang Gao, Weisheng Xu, Xinyi Wu, Jiawei Liu, Bofei Wang, Tianya Wu, Wenbo Wan*, and Qiegen Liu*

Optics Express, https://doi.org/10.1364/OE.531147

Date : Aug-22-2024
Version : 1.0
The code and the algorithm are for non-comercial use only.
Copyright 2020, School of Information Engineering, Nanchang University.

Abstrect

Digital holography can reconstruct the amplitude and phase information of the target light field. However, the reconstruction quality is largely limited by the size of the hologram. Multi-plane holograms can impose constraints for reconstruction, yet the quality of the reconstructed images continues to be restricted owing to the deficiency of effective prior information constraints. To attain high-quality image reconstruction, a diffusion model-boosted multiplane extrapolation for digital holographic reconstruction (DMEDH) algorithm is proposed. The dual-channel prior information of amplitude and phase extracted through denoising score matching is employed to constrain the physically driven dual-domain rotational iterative process. Depending on the utilization of multi-plane hologram data, the serial DMEDH and the parallel DMEDH are presented. Compared with traditional methods, simulative and experimental results demonstrate that images reconstructed using DMEDH exhibit better reconstruction quality and have higher structural similarity, peak signal-to-noise ratios, and strong generalization. The reconstructed image using DMEDH from two holograms exhibits better quality than that of traditional methods from five holograms.

Main procedure and performance

DMEDH-s

DMEDH-p

Resolution target

Film

Environment

docker's environment:(cuda10.2,ubuntu16.04) 

docker pull zieghart/base:C10U16_perfect 

conda activate ncsn

Optical system configuration.

DMEDH-p

Checkpoints

We provide the pre-trained model. Click pre-trained model to download the pre-trained model.(Extraction code: DMED)

Dataset

Please refer to the methods in the paper to create the dataset, and save individual data as .mat files. Organize the dataset into the following structure:

data
  train
    amp
    phase
  test
    amp
    phase

Training

Before start to training, the config file needs modifiction. The config path is /datasets.py.

Once you have modified the config file, run the following code to train your own model

python main.py --config=aapm_sin_ncsnpp_gb.py --workdir=exp --mode=train --eval_folder=result

Reconstruction

python A_1k_arg_PCsampling_demo.py --planes=5 --gpu=0 --useNet=True

python A_1k_arg_PCsampling_demo.py --planes=3 --gpu=0 --useNet=True

In the file A_1k_arg_PCsampling_demo.py, you can modify the method used by changing these two lines. The method A_1k_arg_sampling_exper_sim_DMEDH_s can be replaced with other methods.

import A_1k_arg_sampling_exper_sim_DMEDH_s as sampling
from A_1k_arg_sampling_exper_sim_DMEDH_s import ReverseDiffusionPredictor,LangevinCorrector,AnnealedLangevinDynamics ,EulerMaruyamaPredictor,AncestralSamplingPredictor

Acknowledgement

Thanks to these repositories for providing us with method code and experimental data: https://github.com/THUHoloLab/MPEPI , https://github.com/yqx7150/HoloDiffusion

Other Related Projects

  • Lens-less imaging via score-based generative model
    [Paper] [Code]

  • Multi-phase FZA Lensless Imaging via Diffusion Model
    [Paper] [Code]

  • Dual-domain Mean-reverting Diffusion Model-enhanced Temporal Compressive Coherent Diffraction Imaging
    [Paper] [Code]

  • Imaging through scattering media via generative diffusion model
    [Paper] [Code]

  • High-resolution iterative reconstruction at extremely low sampling rate for Fourier single-pixel imaging via diffusion model
    [Paper] [Code]

  • Real-time intelligent 3D holographic photography for real-world scenarios
    [Paper] [Code]