huggan/smithsonian_butterflies_subset
Viewer • Updated • 1k • 2.01k • 56
How to use ceyda/ddpm-ema-butterflies-64 with Diffusers:
pip install -U diffusers transformers accelerate
import torch
from diffusers import DiffusionPipeline
# switch to "mps" for apple devices
pipe = DiffusionPipeline.from_pretrained("ceyda/ddpm-ema-butterflies-64", dtype=torch.bfloat16, device_map="cuda")
prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"
image = pipe(prompt).images[0]This diffusion model is trained with the 🤗 Diffusers library
on the huggan/smithsonian_butterflies_subset dataset. Using this script
from diffusers import DDPMPipeline
model_id = "ceyda/ddpm-ema-butterflies-64"
# load model and scheduler
ddpm = DDPMPipeline.from_pretrained(model_id) # you can replace DDPMPipeline with DDIMPipeline or PNDMPipeline for faster inference
# run pipeline in inference (sample random noise and denoise)
image = ddpm()["sample"]
# save image
image[0].save("ddpm_generated_image.png")
[TODO: provide examples of latent issues and potential remediations]
[TODO: describe the data used to train the model]
The following hyperparameters were used during training:
📈 TensorBoard logs