https://github.com/casus/pi-ddpm
Science Score: 13.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (14.4%) to scientific vocabulary
Repository
Basic Info
- Host: GitHub
- Owner: casus
- License: gpl-3.0
- Language: Python
- Default Branch: main
- Size: 5.4 MB
Statistics
- Stars: 2
- Watchers: 5
- Forks: 2
- Open Issues: 1
- Releases: 1
Metadata Files
README.md
Physics Informed Denoising Diffusion Probabilistic Model
This is the implementation of the PI-DDPM network using a basic UNet architecture as backbone.
How to cite us
Li, R., Della Maggiora, G., Andriasyan, V., Petkidis, A., Yushkevich, A., Deshpande, N., ... & Yakimovich, A. (2024). Microscopy image reconstruction with physics-informed denoising diffusion probabilistic model. Communications Engineering, 3(1), 186.
@article{li2024microscopy,
title={Microscopy image reconstruction with physics-informed denoising diffusion probabilistic model},
author={Li, Rui and Della Maggiora, Gabriel and Andriasyan, Vardan and Petkidis, Anthony and Yushkevich, Artsemi and Deshpande, Nikita and Kudryashev, Mikhail and Yakimovich, Artur},
journal={Communications Engineering},
volume={3},
number={1},
pages={186},
year={2024},
publisher={Nature Publishing Group UK London}
}
System Requirements
Software Dependencies:
To prepare your environment please install dependencies using pip and the provided requirements.txt file:
pip install -r requirements.txt
Installation Guide
Follow these instructions to install the project:
1. Clone the repository:
bash
git clone https://github.com/casus/pi-ddpm.git
2. Navigate to the project directory:
bash
cd pi-ddpm
3. Run in your environment pip install -r requirements.txt
Training on simulated data:
To run the project demo with simulated data, follow these instructions:
- Generate synthetic sample using the function
generate_synthetic_samplewith your desired parameters. Use the provided modemetaballsfor simple figure generation without the need to download additional data for demo purposes. - Store the generated PSFs and ground truth images into npz files.
- If you want to use your own data, you can only store the generated PSFs and the desired ground-truth data, the code will convolve the PSFs with your data and generate the simulated widefield/confocal images.
- run
python train_ddpm.pyorpython train_unet.pywith paths to your generated datasets.
How to Test
- After training the model, run the
test_diffusionscript.bash python test_diffusion.py - You can change the regularization type and strength in the parameters of the function.
- The provided teaser file has some widefield samples and some confocal samples you can run the model on both to see the differences.
- The output images will be saved in
./imgs_output/testing/reconstructions_confocal.npzfor the confocal teaser and./imgs_output/testing/reconstructions_widefield.npzfor the widefield images. - The inference should take 23.07s in a computer with i9-7900x cpu, and a RTX 3090 TI for each modality.
Results
After training the model you should see the following reconstructed images.
Widefield

Confocal

Owner
- Name: Center for Advanced Systems Understanding
- Login: casus
- Kind: organization
- Email: m.bussmann@hzdr.de
- Location: Görlitz, Germany
- Website: www.casus.science
- Repositories: 8
- Profile: https://github.com/casus
Official Github Organization account of the Center for Advanced Systems Understanding
GitHub Events
Total
- Watch event: 3
- Push event: 1
- Fork event: 2
Last Year
- Watch event: 3
- Push event: 1
- Fork event: 2