Denoising Diffusion Probabilistic Model (DDPM) with the help of previous implementations
Code for diffusion model