Views
No views yet
xwe hermes handbag, photo of woman lower part posing on city street clad in white holding a xwe hermes handbag7.50.030None4210241import torch
2from diffusers import DiffusionPipeline
3
4model_id = 'black-forest-labs/FLUX.1-dev'
5adapter_id = 'Fatha/lora-training'
6pipeline = DiffusionPipeline.from_pretrained(model_id)
7pipeline.load_lora_weights(adapter_id)
8
9prompt = "xwe hermes handbag, photo of woman lower part posing on city street clad in white holding a xwe hermes handbag"
10
11
12pipeline.to('cuda' if torch.cuda.is_available() else 'mps' if torch.backends.mps.is_available() else 'cpu')
13image = pipeline(
14 prompt=prompt,
15 num_inference_steps=30,
16 generator=torch.Generator(device='cuda' if torch.cuda.is_available() else 'mps' if torch.backends.mps.is_available() else 'cpu').manual_seed(1641421826),
17 width=1024,
18 height=1024,
19 guidance_scale=7.5,
20).images[0]
21image.save("output.png", format="PNG")