flux

Official inference repo for FLUX.1 models

open-sourceagent-frameworks
Visit WebsiteView on GitHub
25.4k
Stars
+2113
Stars/month
0
Releases (6m)

Overview

FLUX is Black Forest Labs' official inference repository for running image generation and editing with their FLUX.1 open-weight models. The toolkit provides minimal inference code for multiple specialized models including text-to-image generation, inpainting/outpainting, and structural conditioning based on edge maps or depth information. With over 25,000 GitHub stars, FLUX offers a comprehensive suite of models ranging from the Apache 2.0 licensed FLUX.1 [schnell] for commercial use to more advanced [dev] variants for research and non-commercial applications. The repository supports both standard PyTorch installations and optimized TensorRT deployments for enhanced performance on NVIDIA hardware. FLUX represents a significant advancement in open-source image generation, providing researchers and developers with state-of-the-art capabilities that were previously only available through proprietary APIs.

Pros

  • + Multiple specialized models for different image generation tasks including text-to-image, inpainting, and structural conditioning
  • + Open-weight architecture with both commercial (schnell) and research (dev) licensing options available
  • + TensorRT optimization support for high-performance inference on NVIDIA hardware

Cons

  • - Most advanced models (dev variants) are restricted to non-commercial use only
  • - Requires substantial computational resources and GPU memory for optimal performance
  • - Limited to inference only - no training code or fine-tuning capabilities included

Use Cases

Getting Started

Clone the repository from GitHub and navigate to the flux directory. Create a Python 3.10 virtual environment and activate it. Install the package with dependencies using pip install -e ".[all]" and refer to the docs for specific model usage instructions.