huggan/anime-faces
Preview • Updated • 2.28k • 39
How to use sweetfelinity/anime-faces-ddpm with Diffusers:
pip install -U diffusers transformers accelerate
import torch
from diffusers import DiffusionPipeline
# switch to "mps" for apple devices
pipe = DiffusionPipeline.from_pretrained("sweetfelinity/anime-faces-ddpm", dtype=torch.bfloat16, device_map="cuda")
prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"
image = pipe(prompt).images[0]A Denoising Diffusion Probabilistic Model (DDPM) trained to generate anime faces using this example as a basis.
This diffusion model is trained with the 🤗 Diffusers library
on the huggan/anime-faces dataset.
from diffusers import DDPMPipeline
checkpoint = "sweetfelinity/anime-faces-ddpm"
pipeline = DDPMPipeline.from_pretrained(checkpoint)
pipeline = pipeline.to("cuda") # or "cpu"
for i in range(10):
image = pipeline().images[0]
image.save(str(i + 1) + ".png")
The following hyperparameters were used during training:
See model folder /generated-images for 100 images created by the DDPM.