Diffusers How to use quasar529/ft-sd15-human with Diffusers:
pip install -U diffusers transformers accelerate
import torch
from diffusers import DiffusionPipeline
# switch to "mps" for apple devices
pipe = DiffusionPipeline.from_pretrained("runwayml/stable-diffusion-v1-5", dtype=torch.bfloat16, device_map="cuda")
pipe.load_lora_weights("quasar529/ft-sd15-human")
prompt = "((Best quality)), ((masterpiece)), ((realistic)) human upper body photo of a person for an ID or passport. The photo will be taken with soft, even lighting in an indoor setting. The style will focus on realism, using digital photography as the medium. The artwork will depict an upper body portrait, capturing the subject in a professional attire. The color scheme will consist of neutral tones, creating a refined and polished appearance. The final result will be a high definition, precise depiction suitable for an ID or passport."
image = pipe(prompt).images[0]