Views
No views yet
TIGER_THERMOS_BOTTLE. A photo-realistic image of a gray thermos bottle on a while tabletop with mountains in the background. There is a black "TIGER" logo at the bottom of the grey thermos bottle3.50.020None42512x5121import torch
2from diffusers import DiffusionPipeline
3
4model_id = 'black-forest-labs/FLUX.1-dev'
5adapter_id = 'elasticBottle/tiger-thermos-lora'
6pipeline = DiffusionPipeline.from_pretrained(model_id)
7pipeline.load_lora_weights(adapter_id)
8
9prompt = "TIGER_THERMOS_BOTTLE. A photo-realistic image of a gray thermos bottle on a while tabletop with mountains in the background. There is a black "TIGER" logo at the bottom of the grey thermos bottle"
10
11pipeline.to('cuda' if torch.cuda.is_available() else 'mps' if torch.backends.mps.is_available() else 'cpu')
12image = pipeline(
13 prompt=prompt,
14 num_inference_steps=20,
15 generator=torch.Generator(device='cuda' if torch.cuda.is_available() else 'mps' if torch.backends.mps.is_available() else 'cpu').manual_seed(1641421826),
16 width=512,
17 height=512,
18 guidance_scale=3.5,
19).images[0]
20image.save("output.png", format="PNG")