Skip to content

Releases

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

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

DiffusionEngine v0.1.0 - Standard DDPM

Choose a tag to compare

@Himanshu7921 Himanshu7921 released this 14 Nov 20:30

DiffusionEngine v0.1.0 - Initial Release

The first official release of DiffusionEngine, a modular PyTorch implementation of Denoising Diffusion Probabilistic Models (DDPM).

This release establishes the foundation for building, training, and sampling diffusion models through a modular and extensible architecture.

Features

  • Standard DDPM: Implementation of the Denoising Diffusion Probabilistic Model.
  • U-Net Architecture: Timestep-conditioned U-Net for noise prediction.
  • Linear Noise Scheduler: Linear beta scheduling across diffusion timesteps.
  • Pixel-Space Diffusion: Generate images directly in pixel space.
  • Latent-Space Diffusion: Support for latent diffusion using the Stable Diffusion VAE.
  • Min-SNR Weighting: Optional Min-SNR loss weighting for training.
  • EMA: Exponential Moving Average for model parameter stabilization.
  • Training Pipeline: Training and validation workflows with checkpoint management.
  • Sampling: Standard DDPM ancestral sampling.
  • Experiment Tracking: Weights & Biases integration.

Pretrained Weights & Configuration

This release includes pretrained model checkpoints and the corresponding configuration file:

  • best.pt - Best checkpoint based on validation performance.
  • latest.pt - Latest available training checkpoint.
  • config.yaml - Model configuration containing the architecture and training parameters required to reproduce the setup.

The configuration file is provided to ensure transparency and reproducibility when loading and using the pretrained weights.

Results

Generated samples and training curves are available in the repository's version-specific results directory.

Installation

git clone https://github.com/Himanshu7921/DiffusionEngine.git
cd DiffusionEngine
pip install -r requirements.txt

Version Information

  • Release: v0.1.0
  • Model: Standard DDPM
  • Framework: PyTorch
  • License: MIT

What's Next?

Future releases build upon this foundation with improvements to diffusion objectives, variance prediction, noise scheduling, and sampling strategies.

Known Limitation

  • U-Net Bottleneck: The bottleneck's residual block configuration in this release contains an implementation issue. This is specific to v0.1.0 and has been corrected in subsequent releases.

This limitation does not reflect the architecture used in later versions of DiffusionEngine.