Downloads · 30 days
9
0% of all-time downloads
FrankCCCCC/ddpm_ema_cifar10
ddpm_ema_cifar10 is a unconditional image generation model from FrankCCCCC. 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 diffusers. The card lists the license as apache-2.0.
This model is an EMA (Exponential Moving Average) version of the DDPM (Denoising Diffusion Probabilistic Models) trained on CIFAR-10 dataset. It's based on the original DDPM model but uses exponential moving averages…
Downloads · 30 days
9
0% of all-time downloads
All-time downloads
14.3K
Public
Parameters
35.7M
143 MB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors143 MB · 100%
From the Hugging Face model README
This model is an EMA (Exponential Moving Average) version of the DDPM (Denoising Diffusion Probabilistic Models) trained on CIFAR-10 dataset. It's based on the original DDPM model but uses exponential moving averages of model parameters for improved stability and quality.
Model Type: Unconditional Image Generation
Architecture: DDPM
Training Dataset: CIFAR-10
Image Resolution: 32×32 pixels
License: Apache-2.0
This model implements the DDPM approach described in the paper "Denoising Diffusion Probabilistic Models" by Jonathan Ho, Ajay Jain, and Pieter Abbeel. The EMA version provides more stable training and often better sample quality by maintaining exponentially weighted averages of model parameters.
from diffusers import DDPMPipeline
# Load the model
model_id = "FrankCCCCC/ddpm_ema_cifar10" # Replace with actual repo ID
pipeline = DDPMPipeline.from_pretrained(model_id)
# Generate an image
image = pipeline().images[0]
image.save("generated_cifar10.png")
from diffusers import DDPMPipeline
pipeline = DDPMPipeline.from_pretrained("FrankCCCCC/ddpm_ema_cifar10")
# Generate batch of images
images = pipeline(batch_size=4).images
# Save images
for i, image in enumerate(images):
image.save(f"generated_cifar10_{i}.png")
from diffusers import DDPMPipeline, DDIMScheduler, PNDMScheduler
pipeline = DDPMPipeline.from_pretrained("FrankCCCCC/ddpm_ema_cifar10")
# Use DDIM scheduler for faster inference
ddim_scheduler = DDIMScheduler.from_config(pipeline.scheduler.config)
pipeline.scheduler = ddim_scheduler
# Generate with fewer inference steps
image = pipeline(num_inference_steps=50).images[0]
image.save("generated_ddim.png")
The EMA version typically provides:
Expected performance metrics (approximate):
.png Samples are generated by the DDIM with 100 sampling steps).png Samples are generated by the DDIM with 100 sampling steps)The model generates diverse samples across all CIFAR-10 categories:
All generated images are 32×32 pixels in RGB format.
If you use this model, please cite the original DDPM paper:
@article{ho2020denoising,
title={Denoising Diffusion Probabilistic Models},
author={Ho, Jonathan and Jain, Ajay and Abbeel, Pieter},
journal={Advances in Neural Information Processing Systems},
volume={33},
pages={6840--6851},
year={2020}
}
This model is released under the Apache 2.0 License.