Views
No views yet
Comedia-ban: In a vibrant, futuristic digital landscape, a massive, glowing yellow banana secured with a strip of silver duct tape floats above a bustling cryptocurrency trading floor, its peel shimmering with holographic blockchain symbols like Bitcoin, Ethereum, and Dogecoin. Surrounding the banana, animated crypto enthusiasts in colorful virtual reality gear—wearing neon jackets and holding glowing tablets—dance and cheer, tossing digital coins into the air that sparkle like confetti. The scene is lit by pulsating neon lights in shades of blue, pink, and purple, casting playful shadows on a sleek, metallic floor, evoking a humorous and absurd celebration of a new 'BananaCoin' craze, blending crypto mania with whimsical fun in a high-tech, surreal universe. Explore BananaCoin conceptCrypto art trends3.50.020FlowMatchEulerDiscreteScheduler421024x10241import torch
2from diffusers import DiffusionPipeline
3
4model_id = 'black-forest-labs/FLUX.1-dev'
5adapter_id = 'mr-Dan/simpletuner-lora'
6pipeline = DiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.bfloat16) # loading directly in bf16
7pipeline.load_lora_weights(adapter_id)
8
9prompt = "Comedia-ban: In a vibrant, futuristic digital landscape, a massive, glowing yellow banana secured with a strip of silver duct tape floats above a bustling cryptocurrency trading floor, its peel shimmering with holographic blockchain symbols like Bitcoin, Ethereum, and Dogecoin. Surrounding the banana, animated crypto enthusiasts in colorful virtual reality gear—wearing neon jackets and holding glowing tablets—dance and cheer, tossing digital coins into the air that sparkle like confetti. The scene is lit by pulsating neon lights in shades of blue, pink, and purple, casting playful shadows on a sleek, metallic floor, evoking a humorous and absurd celebration of a new 'BananaCoin' craze, blending crypto mania with whimsical fun in a high-tech, surreal universe. Explore BananaCoin conceptCrypto art trends"
10
11
12## Optional: quantise the model to save on vram.
13## Note: The model was quantised during training, and so it is recommended to do the same during inference time.
14from optimum.quanto import quantize, freeze, qint8
15quantize(pipeline.transformer, weights=qint8)
16freeze(pipeline.transformer)
17
18pipeline.to('cuda' if torch.cuda.is_available() else 'mps' if torch.backends.mps.is_available() else 'cpu') # the pipeline is already in its target precision level
19image = pipeline(
20 prompt=prompt,
21 num_inference_steps=20,
22 generator=torch.Generator(device='cuda' if torch.cuda.is_available() else 'mps' if torch.backends.mps.is_available() else 'cpu').manual_seed(42),
23 width=1024,
24 height=1024,
25 guidance_scale=3.5,
26).images[0]
27image.save("output.png", format="PNG")