The source code for the conference paper designated Denoising Diffusion Probabilistic Model for Generating Histopathology Images has been shared in this GitHub repository.
I will explain different folders and files available in this repository concisely to make things easy for the users.
Part1_KPC_DDPM_Linear_Training.ipynb
: This file hosts the code for training the unconditional DDPM using alinear
variance scheduler.Part2_KPC_DDPM_Linear_Sampling.ipynb
: This file features the code to randomly generate histopathology samples using the trained unconditional DDPM via alinear
variance scheduler.Part3_KPC_DDPM_Linear_FID.ipynb
: This file provides the implementation for calculating the FID distance using the original images and the images generated with a trained unconditional DDPM using alinear
variance scheduler.Part4_KPC_DDPM_Linear_Forward_Process.ipynb
: This file features the code to obtain results following the forward process using alinear
variance scheduler.__init__.py
: This is an empty file which is required to mark a directory as a Python package.hist_ddpm_20240507.150.tsv
: This file contains the the unconditional DDPM training metrics using alinear
variance scheduler.
Part1_KPC_DDPM_Cosine_Training.ipynb
: This file hosts the code for training the unconditional DDPM using acosine
variance scheduler.Part2_KPC_DDPM_Cosine_Sampling.ipynb
: This file features the code to randomly generate histopathology samples using the trained unconditional DDPM via acosine
variance scheduler.Part3_KPC_DDPM_Cosine_FID.ipynb
: This file provides the implementation for calculating the FID distance using the original images and the images generated with a trained unconditional DDPM using acosine
variance scheduler.Part4_KPC_DDPM_Cosine_Forward_Process.ipynb
: This file features the code to obtain results following the forward process using acosine
variance scheduler.__init__.py
: This is an empty file which is required to mark a directory as a Python package.hist_ddpm_20240508.150.tsv
: This file contains the the unconditional DDPM training metrics using acosine
variance scheduler.
Part1_KPC_DDPM_Sigmoid_Training.ipynb
: This file hosts the code for training the unconditional DDPM using asigmoid
variance scheduler.Part2_KPC_DDPM_Sigmoid_Sampling.ipynb
: This file features the code to randomly generate histopathology samples using the trained unconditional DDPM via asigmoid
variance scheduler.Part3_KPC_DDPM_Sigmoid_FID.ipynb
: This file provides the implementation for calculating the FID distance using the original images and the images generated with a trained unconditional DDPM using asigmoid
variance scheduler.Part4_KPC_DDPM_Sigmoid_Forward_Process.ipynb
: This file features the code to obtain results following the forward process using asigmoid
variance scheduler.__init__.py
: This is an empty file which is required to mark a directory as a Python package.hist_ddpm_20240509.150.tsv
: This file contains the the unconditional DDPM training metrics using asigmoid
variance scheduler.
Finally, Inception_Score.ipynb
shows the code for calculating the inception score using images geenrated with all the schedulers (linear
, cosine
, and sigmoid
).
We haven't been able to provide the following things:
model_ddpm_20240507.150.ckpt
: The model checkpoint for the unconditional DDPM trained with alinear
variance scheduler.model_ddpm_20240508.150.ckpt
: The model checkpoint for the unconditional DDPM trained with acosine
variance scheduler.model_ddpm_20240509.150.ckpt
: The model checkpoint for the unconditional DDPM trained with asigmoid
variance scheduler.ORG
: The directory that contains 11,000 original images required for computing FID distance and inception score.GEN_Linear
: The directory that contains 11,000 generated images obtained using alinear
variance scheduler and required for computing FID distance and inception score.GEN_Cosine
: The directory that contains 11,000 generated images obtained using acosine
variance scheduler and required for computing FID distance and inception score.GEN_Sigmoid
: The directory that contains 11,000 generated images obtained using asigmoid
variance scheduler and required for computing FID distance and inception score.
These 7 files and directories are too big and can't be shared in GitHub due to the limitations it has.