Downloads · 30 days
32
2% of all-time downloads
keras-io/denoising-diffusion-implicit-models
denoising-diffusion-implicit-models is a unconditional image generation model from keras-io. Use it for the unconditional image generation task on the model card, and read the license before you ship it in a product. It is set up for tf-keras.
This model was created for the Keras code example on denoising diffusion implicit models (DDIM).
Downloads · 30 days
32
2% of all-time downloads
All-time downloads
1.3K
Public
Repo size
19.9 MB
Likes
11
Public
Click a slice to open those files.
.data-00000-of-0000115.8 MB · 81%
From the Hugging Face model README
This model was created for the Keras code example on denoising diffusion implicit models (DDIM).
The model uses a U-Net with identical input and output dimensions. It progressively downsamples and upsamples its input image, adding skip connections between layers having the same resolution. The architecture is a simplified version of the architecture of DDPM. It consists of convolutional residual blocks and lacks attention layers. The network takes two inputs, the noisy images and the variances of their noise components, which it encodes using sinusoidal embeddings.
The model is intended for educational purposes, as a simple example of denoising diffusion generative models. It has modest compute requirements with reasonable natural image generation performance.
The model is trained on the Oxford Flowers 102 dataset for generating images, which is a diverse natural dataset containing around 8,000 images of flowers. Since the official splits are imbalanced (most of the images are contained in the test splite), new random splits were created (80% train, 20% validation) for training the model. Center crops were used for preprocessing.
The model is trained to denoise noisy images, and can generate images by iteratively denoising pure Gaussian noise.
For more details check out the Keras code example, or the companion code repository, with additional features..
| Hyperparameters | Value |
|---|---|
| num epochs | 80 |
| dataset repetitions per epoch | 5 |
| image resolution | 64 |
| min signal rate | 0.02 |
| max signal rate | 0.95 |
| embedding dimensions | 32 |
| embedding max frequency | 1000.0 |
| block widths | 32, 64, 96, 128 |
| block depth | 2 |
| batch size | 64 |
| exponential moving average | 0.999 |
| optimizer | AdamW |
| learning rate | 1e-3 |
| weight decay | 1e-4 |
