huggan/selfie2anime
Viewer • Updated • 3.5k • 215 • 3
How to use mrm8488/ddpm-ema-anime-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-anime-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/selfie2anime dataset.
from diffusers import DDPMPipeline
model_id = "mrm8488/ddpm-ema-anime-128"
# load model and scheduler
pipeline = DDPMPipeline.from_pretrained(model_id)
# run pipeline in inference
image = pipeline()["sample"]
# save image
image[0].save("anime_face.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