Views
No views yet
1from diffusers import AutoPipelineForText2Image
2import torch
3
4device = "cuda" if torch.cuda.is_available() else "cpu"
5
6pipeline = AutoPipelineForText2Image.from_pretrained('stabilityai/stable-diffusion-xl-base-1.0', torch_dtype=torch.float16).to(device)
7pipeline.load_lora_weights('sknightpt/margarida-corceiro-sdxl', weight_name='marcorceiro_xl_1_standard_wo_cap_merger_42_86_96_02_03_05.safetensors')
8image = pipeline('High res closeup portrait photo of an actress dressed as Harley Quinn, f /2.8, Canon, 85mm,cinematic, high quality, skin texture, looking at the camera, ').images[0]