mueller-franzes / medfusion

Implementation of Medfusion - A latent diffusion model for medical image synthesis.
MIT License
165 stars 32 forks source link

Medfusion - Medical Denoising Diffusion Probabilistic Model

Paper

Please see: Diffusion Probabilistic Models beat GANs on Medical 2D Images

Figure: Medfusion

\ Figure: Eye fundus, chest X-ray and colon histology images generated with Medfusion (Warning color quality limited by .gif)

Demo

Link to streamlit app.

Install

Create virtual environment and install packages: \ python -m venv venv \ source venv/bin/activate\ pip install -e .

Get Started

1 Prepare Data

2 Train Autoencoder

2.1 Evaluate Autoencoder

3 Train Diffusion

3.1 Evaluate Diffusion

Acknowledgment