Views
No views yet
1from diffusers import FluxPipeline
2import torch
3
4pipe = FluxPipeline.from_pretrained(
5 "black-forest-labs/FLUX.1-schnell",
6 torch_dtype=torch.bfloat16
7)
8pipe.to("cuda")
9
10image = pipe(
11 prompt="Your prompt here",
12 num_inference_steps=4,
13 guidance_scale=0.0,
14).images[0]
15
16image.save("output.png")1curl -X POST "http://127.0.0.1:7860/generate" \
2 -d "prompt=A majestic fox in a forest at sunset"| Feature | Fox 1.0 | Fox 1.2 |
|---|---|---|
| Parameters | ~1B | 12B |
| Steps | 35+ | 1-4 |
| Quality | Good | State-of-the-art |