pip install -U diffusers transformers accelerate
import torch
from diffusers import DiffusionPipeline
# switch to "mps" for apple devices
pipe = DiffusionPipeline.from_pretrained("Jersonm89/SD2.1_Avatar", dtype=torch.bfloat16, device_map="cuda")
prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"
image = pipe(prompt).images[0]Update of James Cameron's Avatar Movie Model, with Stable Diffusion 2.1. This model can generate the faces of the people indicated in the prompt with avatar features.
Sample images Will Smith: prompt= photorealistic headshot of Will Smith, avatar style
Sample images Angelina Jolie: prompt= photorealistic headshot of Angelina Jolie, avatar style
Sample images Mila Kunis: prompt= photorealistic headshot of Mila Kunis, avatar style
Sample images Jenna Ortega: prompt= photorealistic headshot of Jenna Ortega, avatar style
A standard negative prompt was used Negative Prompt: blender, cropped, lowres, poorly drawn face, out of frame, poorly drawn hands, blurry, bad art, blurred, text, watermark, disfigured, deformed, closed eyes : -2
- Downloads last month
- -
# Gated model: Login with a HF token with gated access permission hf auth login