๐ FLUX.1 [dev]
FLUX.1 [dev]
is a 12 billion parameter rectified flow transformer that can generate images from text descriptions. It offers high - quality image generation and has several competitive features. For more details, refer to our blog post.
โจ Features
- ๐จ Cutting - edge output quality, second only to our state - of - the - art model
FLUX.1 [pro]
.
- ๐ฏ Competitive prompt following, matching the performance of closed - source alternatives.
- โ๏ธ Trained using guidance distillation, making
FLUX.1 [dev]
more efficient.
- ๐ Open weights to drive new scientific research and empower artists to develop innovative workflows.
- ๐ Generated outputs can be used for personal, scientific, and commercial purposes as described in the
FLUX.1 [dev]
Non - Commercial License.
๐ Quick Start
We provide a reference implementation of FLUX.1 [dev]
, along with sampling code, in a dedicated github repository. Developers and creatives aiming to build on FLUX.1 [dev]
are encouraged to use this as a starting point.
๐ป Usage Examples
Basic Usage
To use FLUX.1 [dev]
with the ๐งจ diffusers python library, first install or upgrade diffusers:
pip install -U diffusers
Then you can use FluxPipeline
to run the model:
import torch
from diffusers import FluxPipeline
pipe = FluxPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=torch.bfloat16)
pipe.enable_model_cpu_offload()
prompt = "A cat holding a sign that says hello world"
image = pipe(
prompt,
height=1024,
width=1024,
guidance_scale=3.5,
num_inference_steps=50,
max_sequence_length=512,
generator=torch.Generator("cpu").manual_seed(0)
).images[0]
image.save("flux-dev.png")
To learn more, check out the diffusers documentation.
Advanced Usage
The FLUX.1 models are also available via API from the following sources:
FLUX.1 [dev]
is also available in Comfy UI for local inference with a node - based workflow.
๐ Documentation
Limitations
- โ ๏ธ This model is not intended or able to provide factual information.
- โ ๏ธ As a statistical model, this checkpoint might amplify existing societal biases.
- โ ๏ธ The model may fail to generate output that matches the prompts.
- โ ๏ธ Prompt following is heavily influenced by the prompting - style.
Out - of - Scope Use
The model and its derivatives may not be used:
- ๐ซ In any way that violates any applicable national, federal, state, local or international law or regulation.
- ๐ซ For the purpose of exploiting, harming or attempting to exploit or harm minors in any way; including but not limited to the solicitation, creation, acquisition, or dissemination of child exploitative content.
- ๐ซ To generate or disseminate verifiably false information and/or content with the purpose of harming others.
- ๐ซ To generate or disseminate personal identifiable information that can be used to harm an individual.
- ๐ซ To harass, abuse, threaten, stalk, or bully individuals or groups of individuals.
- ๐ซ To create non - consensual nudity or illegal pornographic content.
- ๐ซ For fully automated decision making that adversely impacts an individual's legal rights or otherwise creates or modifies a binding, enforceable obligation.
- ๐ซ Generating or facilitating large - scale disinformation campaigns.
๐ License
This model falls under the FLUX.1 [dev]
Non - Commercial License.
โ ๏ธ Important Note
By clicking "Agree", you agree to the FluxDev Non - Commercial License Agreement and acknowledge the Acceptable Use Policy.
Property |
Details |
Model Type |
12 billion parameter rectified flow transformer for text - to - image generation |
Base Model |
black - forest - labs/FLUX.1 - dev |
Tags |
text - to - image, image - generation, flux |
License |
FluxDev Non - Commercial License Agreement |