Diffusion
Collection
Stable Diffusion Models • 9 items • Updated • 4
import torch
from diffusers import DiffusionPipeline
# switch to "mps" for apple devices
pipe = DiffusionPipeline.from_pretrained("glides/animexl", dtype=torch.bfloat16, device_map="cuda")
prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"
image = pipe(prompt).images[0]Anime Art XL is a latent text-to-image diffusion model capable of generating images of people, mainly, and other things, in the style of Japanese anime. For more information about how Stable Diffusion functions, please have a look at 🤗's Stable Diffusion blog.
You can use this with the 🧨Diffusers library from Hugging Face.
from diffusers import StableDiffusionXLPipeline
import torch
pipeline = StableDiffusionXLPipeline.from_pretrained("glides/animexl").to("cuda")
image = pipeline(prompt="hatsune miku").images[0]
image.save("anime.png")
This model card was written by Noa Roggendorff and is based on the Stable Diffusion v1-5 Model Card.