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/counterfeit", dtype=torch.bfloat16, device_map="cuda")
prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"
image = pipe(prompt).images[0]Counterfeit V3 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 StableDiffusionPipeline
import torch
pipeline = StableDiffusionPipeline.from_pretrained("glides/counterfeit").to("cuda")
image = pipeline(prompt="a girl in a white dress").images[0]
image.save("girl.png")
This model card was written by Noa Roggendorff and is based on the Stable Diffusion v1-5 Model Card.