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/keira-knightley-flux', weight_name='Keira_Knightley_Flux.safetensors')
8image = pipeline(' beautiful detailed photograph, shoulder length stylish updo with strands of hair framing her face, She is wearing a chic dress, standing in a cafe looking at the viewer.').images[0]