Views
No views yet
.safetensors versions of the TAEF1 weights.1import torch
2from diffusers import FluxPipeline, AutoencoderTiny
3
4pipe = FluxPipeline.from_pretrained(
5 "black-forest-labs/FLUX.1-schnell", torch_dtype=torch.bfloat16
6)
7pipe.vae = AutoencoderTiny.from_pretrained("madebyollin/taef1", torch_dtype=torch.bfloat16)
8pipe.enable_sequential_cpu_offload()
9
10prompt = "slice of delicious New York-style berry cheesecake"
11image = pipe(
12 prompt,
13 guidance_scale=0.0,
14 num_inference_steps=4,
15 max_sequence_length=256,
16).images[0]
17image.save("cheesecake.png")