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)
Link to streamlit app.
Create virtual environment and install packages: \
python -m venv venv
\
source venv/bin/activate
\
pip install -e .
SimpleDataset2D
or write your own Dataset. SimpleDataModule
VAE
to your needs VAEGAN
instead or load a pre-trained VAE
and set start_gan_train_step=-1
to start training of GAN immediately.latent_embedder_checkpoint=...
cond_embedder = LabelEmbedder
for conditional training, otherwise cond_embedder = None