图像生成Apache-2.0Python

FLUX (reference code)

Official inference code for Black Forest Labs’ FLUX models.

Star 数
26K
Fork 数
1.9K
未关闭 Issue
221
最近提交
2025-07-31

数据来自 GitHub API · 更新于 2026-10-15

FLUX (reference code) 是什么?

The official repository for FLUX provides minimal inference code, a CLI and demos for the open-weight FLUX models, plus pointers to the Kontext editing models. Most users run FLUX through ComfyUI, Forge or Diffusers, but this repo is the canonical reference.

主要功能

  • Reference sampling code for FLUX [schnell] and [dev]
  • Command-line and Gradio/Streamlit demos
  • Links to model cards and licenses

系统要求

平台
Linux · Windows
显卡
NVIDIA
显存
16–24 GB for full precision; less with quantized variants elsewhere

如何安装 FLUX (reference code)

根据项目 README 整理。开源项目更新很快,请以 GitHub 页面上的最新说明为准。

Local install

  1. 1
    Clone and install in a virtual environment.
    git clone https://github.com/black-forest-labs/flux
    cd flux
    python3 -m venv .venv
    source .venv/bin/activate
    pip install -e ".[all]"
  2. 2
    Follow the README to run the CLI or demo; weights download from Hugging Face (accept the model license there first).

优势

  • Canonical implementation
  • Small, readable codebase

不足

  • Bare-bones compared to ComfyUI
  • FLUX [dev] weights are non-commercial

FLUX (reference code) 替代品对比

软件Star 数许可证平台显存
FLUX (reference code)

Official inference code for Black Forest Labs’ FLUX models.

26KApache-2.016–24 GB for full precision; less with quantized variants elsewhere
ComfyUI

Node-based interface for diffusion models — images, video and audio.

137.6KGPL-3.04 GB minimum for SD1.5; 12 GB+ recommended for FLUX and video models
Diffusers

Hugging Face’s Python library for diffusion models.

34.7KApache-2.0—
Stable Diffusion WebUI Forge

A faster, leaner fork of the A1111 WebUI with FLUX support.

13.1KAGPL-3.06 GB+ (FLUX NF4/GGUF variants run on 6–8 GB)
Stable Diffusion WebUI (AUTOMATIC1111)

The classic browser UI for Stable Diffusion with a massive extension ecosystem.

165.1KAGPL-3.04 GB minimum (with --medvram/--lowvram), 8 GB+ recommended
Fooocus

Midjourney-like simplicity for SDXL: type a prompt and press Generate.

53.4KGPL-3.04 GB minimum, 6 GB+ recommended

相关模型

常见问题

FLUX (reference code) 免费吗?

是的——FLUX (reference code) 是开源软件,采用 Apache-2.0 许可证。商用前请确认软件及模型权重的许可条款。

FLUX (reference code) 支持 Windows、Mac 和 Linux 吗?

FLUX (reference code) 支持:Linux, Windows。

运行 FLUX (reference code) 需要什么配置?

NVIDIA. VRAM: 16–24 GB for full precision; less with quantized variants elsewhere

如何安装 FLUX (reference code)?

1. Clone and install in a virtual environment. 2. Follow the README to run the CLI or demo; weights download from Hugging Face (accept the model license there first).

FLUX (reference code) 有哪些好的替代品?

常见替代品包括 ComfyUI, Diffusers, Stable Diffusion WebUI Forge, Stable Diffusion WebUI (AUTOMATIC1111),详见本页对比表。

可以不安装、在线使用 FLUX (reference code) 吗?

如果只想要结果,AiLoft 可在浏览器中运行 GPT Image 2.5、Nano Banana Pro 等顶级图像模型,无需显卡和配置。

不想安装?直接在浏览器里生成图片

无需显卡、驱动或 Python。在线使用 GPT Image 2.5 和 Nano Banana Pro,并排对比效果。