Skip to content

DiffusionEngine v0.1.0 - Standard DDPM

Choose a tag to compare

@Himanshu7921 Himanshu7921 released this 14 Nov 20:30
· 39 commits to main since this release

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.