lucidrains/denoising-diffusion-pytorch

Implementation of Denoising Diffusion Probabilistic Model in Pytorch

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 55 minutes ago
Added to GitGenius on September 5th, 2026
Created on August 26th, 2020
Open Issues & Pull Requests: 151 (+0)
GitHub issues: Enabled
Number of forks: 1,281
Total Stargazers: 10,681 (+0)
Total Subscribers: 37 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 6.6 days
Mean response time: 78.6 days
90th percentile: 440.7 days
Tracked items: 39

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 29
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 915 days
Stale 30+ days: 29
Stale 90+ days: 29

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

No label distribution available yet.

Most active issues this week

No issue events were indexed in the last 7 days.

Detailed Description

Denoising Diffusion Pytorch is a generative modeling framework that implements the Denoising Diffusion Probabilistic Model in PyTorch.

The tool addresses generative modeling by using denoising score matching to estimate the gradient of the data distribution, then applying Langevin sampling to draw samples from the true distribution. This approach offers an alternative to GANs for generating new data.

The project suits researchers and practitioners building generative models who want a PyTorch implementation with straightforward training workflows. The `Trainer` class simplifies setup by accepting a folder of images and desired dimensions, automatically logging samples and checkpoints to disk. For practitioners working with sequential data, a 1D variant provides a Unet-based implementation. The tool supports multi-GPU training through integration with Hugging Face Accelerator. An `XMWrapper` enables Explorative Modeling for multi-candidate loss calculation during training. The README does not compare this implementation to alternatives beyond noting it was inspired by an official TensorFlow version.

Development activity shows consistent refinement of core functionality. The project maintains active support for emerging techniques, as evidenced by the addition of Explorative Modeling support. The codebase remains responsive to user needs, with 1D sequence support added by popular request. Documentation includes integration with established ecosystem tools like Hugging Face Accelerator, indicating alignment with broader PyTorch community practices.