Views
No views yet
1from diffusers import StableDiffusionPipeline
2import torch
3
4pipe = StableDiffusionPipeline.from_pretrained("runwayml/stable-diffusion-v1-5", torch_dtype=torch.float16)
5pipe.load_lora_weights("Kevin181577/kevinface-lora")
6pipe = pipe.to("cuda")
7
8prompt = "a photo of kevinface, professional headshot, high quality"
9image = pipe(prompt).images[0]kevinface