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('black-forest-labs/FLUX.1-dev', torch_dtype=torch.bfloat16).to(device)
7pipeline.load_lora_weights('Keltezaa/elizabeth-olsen-sdxl-flux', weight_name='eliolsen_2017_local_164_merger_20v1_8v2_34v2_03_03_04.safetensors')
8image = pipeline('High quality passport photo of a woman with wavy blonde hair wearing a suit and tie looking directly at the camera with her mouth closed and a neutral expression. She is also wearing a delicate gold chain and some understated diamond earrings.').images[0]