Views
No views yet
anime style digital art of a girl with blue-green hair and green eyes wearing a one piece swimsuit



3.50.020None4210241import torch
2from diffusers import DiffusionPipeline
3
4model_id = 'black-forest-labs/FLUX.1-dev'
5adapter_id = 'Disra/lora-anime-test-02'
6pipeline = DiffusionPipeline.from_pretrained(model_id)
7pipeline.load_lora_weights(adapter_id)
8
9prompt = "anime style digital art of a girl with blue-green hair and green eyes wearing a one piece swimsuit"
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=20,
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=3.5,
20).images[0]
21image.save("output.png", format="PNG")