Views
No views yet
qxxy style,Your_name,best quality,This is a high-resolution anime still featuring a young male character with black hair wearing a white school uniform with a green and yellow tie. He appears startled or surprised, with his mouth slightly open and a hand to his cheek, as though he has just witnessed something unexpected. The setting seems to be a cafe with a modern, airy interior, as indicated by the wooden trusses on the ceiling and hanging industrial-style lamps. The daylight filters through the windows, creating a bright atmosphere. No other characters are visible, which places the entire focus on the young man's reaction.,1boy, necktie, male_focus, solo, school_uniform, indoors, striped_necktie, green_necktie, short_sleeves, shirt, upper_body3.50.020None4210241import torch
2from diffusers import DiffusionPipeline
3
4model_id = 'black-forest-labs/FLUX.1-dev'
5adapter_id = 'wang1111magic/0821flux-Your-name-lora128lora-training'
6pipeline = DiffusionPipeline.from_pretrained(model_id)
7pipeline.load_lora_weights(adapter_id)
8
9prompt = "qxxy style,Your_name,best quality,This is a high-resolution anime still featuring a young male character with black hair wearing a white school uniform with a green and yellow tie. He appears startled or surprised, with his mouth slightly open and a hand to his cheek, as though he has just witnessed something unexpected. The setting seems to be a cafe with a modern, airy interior, as indicated by the wooden trusses on the ceiling and hanging industrial-style lamps. The daylight filters through the windows, creating a bright atmosphere. No other characters are visible, which places the entire focus on the young man's reaction.,1boy, necktie, male_focus, solo, school_uniform, indoors, striped_necktie, green_necktie, short_sleeves, shirt, upper_body"
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")