Skip to content

DiffusionEngine v1.0.0 - Improved DDPM (Cosine Scheduler and Learned Variance)

Latest

Choose a tag to compare

@Himanshu7921 Himanshu7921 released this 15 Nov 08:22

DiffusionEngine v1.0.0 - Improved DDPM

This release introduces Improved Denoising Diffusion Probabilistic Models (Improved DDPM), based on the research paper by Nichol and Dhariwal (2021).

What's New

  • Cosine Noise Scheduler: Added support for cosine-based noise scheduling alongside the existing linear scheduler.
  • Learned Reverse-Process Variance: Extended the U-Net to predict both noise and variance, enabling learned variance estimation during the reverse diffusion process.
  • Hybrid Training Objective: Introduced the hybrid loss combining simplified diffusion loss and variational lower bound (VLB) loss.
  • Min-SNR Weighting: Integrated Min-SNR loss weighting for improved training.
  • Improved DDPM Sampling: Added sampling support using the learned reverse-process variance.
  • Updated Architecture: Increased the U-Net time embedding dimension from 256 to 512.

Pretrained Weights & Configuration

This release includes the trained model weights and corresponding configuration:

  • best.pt - Best checkpoint based on validation performance.
  • latest.pt - Latest available training checkpoint.
  • config.yaml - Configuration used for training the released model.

Released Model Configuration

The released pretrained weights use the following setup:

Parameter Value
Diffusion Model Improved DDPM
Diffusion Space Latent Space
Noise Scheduler Linear
Learned Variance Enabled
Timesteps 1000
Time Embedding Dimension 512
Image Resolution 256 × 256
VAE stabilityai/sd-vae-ft-mse

Important: Although this release introduces cosine noise scheduling, the published pretrained weights were trained using the linear noise scheduler with learned reverse-process variance enabled.

Latent-space diffusion is retained from the previous release.

Compatibility & Notes

  • The U-Net time embedding dimension has changed from 256 to 512 compared with the previous release.
  • Use the included config.yaml when loading the released checkpoints to ensure architectural and scheduler compatibility.
  • The released weights correspond to the Improved DDPM architecture, not the original Standard DDPM implementation.

Reference

Nichol, A. Q., & Dhariwal, I. (2021). Improved Denoising Diffusion Probabilistic Models.

Version Information

  • Version: v1.0.0
  • Framework: PyTorch
  • License: MIT