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/epicrealism", dtype=torch.bfloat16, device_map="cuda")
prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"
image = pipe(prompt).images[0]epiCRealism is a latent text-to-image diffusion model capable of generating images of people, mainly, and other things, as photorealistically as possible. 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 StableDiffusionPipeline
import torch
pipeline = StableDiffusionPipeline.from_pretrained("glides/epicrealism").to("cuda")
image = pipeline(prompt="a cat playing in a box").images[0]
image.save("cat.png")
This model card was written by Noa Roggendorff and is based on the Stable Diffusion v1-5 Model Card.