Inference code for FLUX image generation & editing models
Top 1.7% on sourcepulse
This repository provides the official inference code for FLUX.1 image generation and editing models, targeting researchers and developers looking to integrate advanced AI image capabilities into their applications. It offers a Python API and command-line interface for local inference, with options for TensorRT acceleration.
How It Works
The project leverages pre-trained diffusion models for text-to-image generation and image editing tasks like inpainting and structural conditioning. It provides a Python interface that interacts with these models, allowing users to generate images based on text prompts or modify existing ones. The inclusion of TensorRT support aims to optimize inference speed and efficiency on NVIDIA hardware.
Quick Start & Requirements
pip install -e ".[all]"
(or .[tensorrt]
for TensorRT support).enroot
and NVIDIA container runtime for TensorRT.nvidia/pytorch:25.01-py3
) and creating an enroot
container.api.bfl.ml
.Highlighted Details
Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
The "dev" models are explicitly licensed for non-commercial use, requiring users to consult the API for commercial applications. TensorRT installation involves a more complex setup using enroot
.
2 days ago
1 day