huggan/flowers-102-categories
Viewer โข Updated โข 8.19k โข 355 โข 13
How to use mrm8488/ddpm-ema-flower-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("mrm8488/ddpm-ema-flower-64", dtype=torch.bfloat16, device_map="cuda")
prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"
image = pipe(prompt).images[0]import torch
from diffusers import DiffusionPipeline
# switch to "mps" for apple devices
pipe = DiffusionPipeline.from_pretrained("mrm8488/ddpm-ema-flower-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/flowers-102-categories dataset.
from diffusers import DDPMPipeline
model_id = "mrm8488/ddpm-ema-flower-64"
# load model and scheduler
pipeline = DDPMPipeline.from_pretrained(model_id)
# run pipeline in inference
image = pipeline()["sample"]
# save image
image[0].save("flower.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