Command Palette
Search for a command to run...
Prafulla Dhariwal Alex Nichol

Abstract
We show that diffusion models can achieve image sample quality superior to the current state-of-the-art generative models. We achieve this on unconditional image synthesis by finding a better architecture through a series of ablations. For conditional image synthesis, we further improve sample quality with classifier guidance: a simple, compute-efficient method for trading off diversity for fidelity using gradients from a classifier. We achieve an FID of 2.97 on ImageNet 128$\times$128, 4.59 on ImageNet 256$\times$256, and 7.72 on ImageNet 512$\times$512, and we match BigGAN-deep even with as few as 25 forward passes per sample, all while maintaining better coverage of the distribution. Finally, we find that classifier guidance combines well with upsampling diffusion models, further improving FID to 3.94 on ImageNet 256$\times$256 and 3.85 on ImageNet 512$\times$512. We release our code at https://github.com/openai/guided-diffusion
Code Repositories
Benchmarks
| Benchmark | Methodology | Metrics |
|---|---|---|
| conditional-image-generation-on-imagenet | ADM-G (classifier_scale=0.5) | FID: 2.97 |
| conditional-image-generation-on-imagenet-2 | ADM-G | FID: 4.59 Inception score: 186.7 |
| image-generation-on-imagenet-128x128 | ADM-G | FID: 2.97 |
| image-generation-on-imagenet-256x256 | ADM-G | FID: 4.59 |
| image-generation-on-imagenet-256x256 | ADM-G, ADM-U | FID: 3.94 |
| image-generation-on-imagenet-512x512 | ADM-G | FID: 7.72 Inception score: 172.71 |
| image-generation-on-imagenet-512x512 | ADM-G, ADM-U | FID: 3.85 Inception score: 221.72 |
| image-generation-on-imagenet-64x64 | ADM (dropout) | FID: 2.07 |
| image-generation-on-lsun-bedroom-256-x-256 | ADM (dropout) | FID: 1.90 |
| image-generation-on-lsun-bedroom-256-x-256 | ADM (dropout, DINOv2) | FD: 59.64 Precision: 0.85 Recall: 0.75 |
| image-generation-on-lsun-cat-256-x-256 | ADM (dropout) | FID: 5.57 |
| image-generation-on-lsun-horse-256-x-256 | ADM (dropout) | FID: 2.57 |
Build AI with AI
From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.