huggan/smithsonian_butterflies_subset
Viewer โข Updated โข 1k โข 2.25k โข 56
How to use mrm8488/ddpm-ema-butterflies-128 with Diffusers:
pip install -U diffusers transformers accelerate
import torch
from diffusers import DiffusionPipeline
# switch to "mps" for apple devices
pipe = DiffusionPipeline.from_pretrained("mrm8488/ddpm-ema-butterflies-128", 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.
from diffusers import DDPMPipeline
model_id = "mrm8488/ddpm-ema-butterflies-128"
# load model and scheduler
pipeline = DDPMPipeline.from_pretrained(model_id)
# run pipeline in inference
image = pipeline()["sample"]
# save image
image[0].save("butterfly.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
Created by Manuel Romero/@mrm8488 with the support of Q Blocks