This repository is pytorch implement of Denoising Diffusion Probabilistic Models.
the following parameters are set manually.
the following parameters are computed from the above parameters.
the optimization goal of the Decoder is to predict
the loss function is:
We ignore optimizing the first term when training, because we don't add noise in the first step (let
$ git clone https://github.com/yl-jiang/Diffusion-Model-Demo.git
$ cd Diffusion-Model-Demo
$ conda activate your_pytorch_environment
$ python train.pyif everything is ok, then you will see something like this:
Logging at: Logs_Checkpoints/Inference/version_0
Model Checkpoint at: Logs_Checkpoints/checkpoints/version_0
Train :: Epoch: 1/30: 9%|█▏ | 42/469 [00:06<00:49, 8.61it/s, Loss: 0.0507]
