Baileyy commited on
Commit
139b828
·
verified ·
1 Parent(s): a923974

Delete FLUX_OFFICIAL_README.md

Browse files
Files changed (1) hide show
  1. FLUX_OFFICIAL_README.md +0 -109
FLUX_OFFICIAL_README.md DELETED
@@ -1,109 +0,0 @@
1
- # FLUX
2
- by Black Forest Labs: https://bfl.ai.
3
-
4
- Documentation for our API can be found here: [docs.bfl.ai](https://docs.bfl.ai/).
5
-
6
- ![grid](assets/grid.jpg)
7
-
8
- This repo contains minimal inference code to run image generation & editing with our Flux open-weight models.
9
-
10
- ## Local installation
11
-
12
- ```bash
13
- cd $HOME && git clone https://github.com/black-forest-labs/flux
14
- cd $HOME/flux
15
- python3.10 -m venv .venv
16
- source .venv/bin/activate
17
- pip install -e ".[all]"
18
- ```
19
-
20
- ### Local installation with TensorRT support
21
-
22
- If you would like to install the repository with [TensorRT](https://github.com/NVIDIA/TensorRT) support, you currently need to install a PyTorch image from NVIDIA instead. First install [enroot](https://github.com/NVIDIA/enroot), next follow the steps below:
23
-
24
- ```bash
25
- cd $HOME && git clone https://github.com/black-forest-labs/flux
26
- enroot import 'docker://$oauthtoken@nvcr.io#nvidia/pytorch:25.01-py3'
27
- enroot create -n pti2501 nvidia+pytorch+25.01-py3.sqsh
28
- enroot start --rw -m ${PWD}/flux:/workspace/flux -r pti2501
29
- cd flux
30
- pip install -e ".[tensorrt]" --extra-index-url https://pypi.nvidia.com
31
- ```
32
-
33
- ### Open-weight models
34
-
35
- We are offering an extensive suite of open-weight models. For more information about the individual models, please refer to the link under **Usage**.
36
-
37
- | Name | Usage | HuggingFace repo | License |
38
- | --------------------------- | ---------------------------------------------------------- | -------------------------------------------------------------- | --------------------------------------------------------------------- |
39
- | `FLUX.1 [schnell]` | [Text to Image](docs/text-to-image.md) | https://huggingface.co/black-forest-labs/FLUX.1-schnell | [apache-2.0](model_licenses/LICENSE-FLUX1-schnell) |
40
- | `FLUX.1 [dev]` | [Text to Image](docs/text-to-image.md) | https://huggingface.co/black-forest-labs/FLUX.1-dev | [FLUX.1-dev Non-Commercial License](model_licenses/LICENSE-FLUX1-dev) |
41
- | `FLUX.1 Fill [dev]` | [In/Out-painting](docs/fill.md) | https://huggingface.co/black-forest-labs/FLUX.1-Fill-dev | [FLUX.1-dev Non-Commercial License](model_licenses/LICENSE-FLUX1-dev) |
42
- | `FLUX.1 Canny [dev]` | [Structural Conditioning](docs/structural-conditioning.md) | https://huggingface.co/black-forest-labs/FLUX.1-Canny-dev | [FLUX.1-dev Non-Commercial License](model_licenses/LICENSE-FLUX1-dev) |
43
- | `FLUX.1 Depth [dev]` | [Structural Conditioning](docs/structural-conditioning.md) | https://huggingface.co/black-forest-labs/FLUX.1-Depth-dev | [FLUX.1-dev Non-Commercial License](model_licenses/LICENSE-FLUX1-dev) |
44
- | `FLUX.1 Canny [dev] LoRA` | [Structural Conditioning](docs/structural-conditioning.md) | https://huggingface.co/black-forest-labs/FLUX.1-Canny-dev-lora | [FLUX.1-dev Non-Commercial License](model_licenses/LICENSE-FLUX1-dev) |
45
- | `FLUX.1 Depth [dev] LoRA` | [Structural Conditioning](docs/structural-conditioning.md) | https://huggingface.co/black-forest-labs/FLUX.1-Depth-dev-lora | [FLUX.1-dev Non-Commercial License](model_licenses/LICENSE-FLUX1-dev) |
46
- | `FLUX.1 Redux [dev]` | [Image variation](docs/image-variation.md) | https://huggingface.co/black-forest-labs/FLUX.1-Redux-dev | [FLUX.1-dev Non-Commercial License](model_licenses/LICENSE-FLUX1-dev) |
47
- | `FLUX.1 Kontext [dev]` | [Image editing](docs/image-editing.md) | https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev | [FLUX.1-dev Non-Commercial License](model_licenses/LICENSE-FLUX1-dev) |
48
-
49
- The weights of the autoencoder are also released under [apache-2.0](https://huggingface.co/datasets/choosealicense/licenses/blob/main/markdown/apache-2.0.md) and can be found in the HuggingFace repos above.
50
-
51
- ## API usage
52
-
53
- Our API offers access to all models including our Pro tier non-open weight models. Check out our API documentation [docs.bfl.ai](https://docs.bfl.ai/) to learn more.
54
-
55
- ## Licensing models for commercial use
56
-
57
- You can license our models for commercial use here: https://bfl.ai/pricing/licensing
58
-
59
- As the fee is based on a monthly usage, we provide code to automatically track your usage via the BFL API. To enable usage tracking please select *track_usage* in the cli or click the corresponding checkmark in our provided demos.
60
-
61
- ### Example: Using FLUX.1 Kontext with usage tracking
62
-
63
- We provide a reference implementation for running FLUX.1 with usage tracking enabled for commercial licensing.
64
- This can be customized as needed as long as the usage reporting is accurate.
65
-
66
- For the reporting logic to work you will need to set your API key as an environment variable before running:
67
- ```bash
68
- export BFL_API_KEY="your_api_key_here"
69
- ```
70
-
71
- You can call `FLUX.1 Kontext [dev]` like this with tracking activated:
72
-
73
- ```bash
74
- python -m flux kontext --track_usage --loop
75
- ```
76
-
77
- For a single generation:
78
-
79
- ```bash
80
- python -m flux kontext --track_usage --prompt "replace the logo with the text 'Black Forest Labs'"
81
- ```
82
-
83
- The above reporting logic works similarly for FLUX.1 [dev] and FLUX.1 Tools [dev].
84
-
85
- **Note that this is only required when using one or more of our open weights models commercially. More information on the commercial licensing can be found at the [BFL Helpdesk](https://help.bfl.ai/collections/6939000511-licensing).**
86
-
87
-
88
- ## Citation
89
-
90
- If you find the provided code or models useful for your research, consider citing them as:
91
-
92
- ```bib
93
- @misc{labs2025flux1kontextflowmatching,
94
- title={FLUX.1 Kontext: Flow Matching for In-Context Image Generation and Editing in Latent Space},
95
- author={Black Forest Labs and Stephen Batifol and Andreas Blattmann and Frederic Boesel and Saksham Consul and Cyril Diagne and Tim Dockhorn and Jack English and Zion English and Patrick Esser and Sumith Kulal and Kyle Lacey and Yam Levi and Cheng Li and Dominik Lorenz and Jonas Müller and Dustin Podell and Robin Rombach and Harry Saini and Axel Sauer and Luke Smith},
96
- year={2025},
97
- eprint={2506.15742},
98
- archivePrefix={arXiv},
99
- primaryClass={cs.GR},
100
- url={https://arxiv.org/abs/2506.15742},
101
- }
102
-
103
- @misc{flux2024,
104
- author={Black Forest Labs},
105
- title={FLUX},
106
- year={2024},
107
- howpublished={\url{https://github.com/black-forest-labs/flux}},
108
- }
109
- ```