Upload README.md
Browse files
README.md
CHANGED
|
@@ -4,11 +4,6 @@ language:
|
|
| 4 |
license: other
|
| 5 |
license_name: flux-1-dev-non-commercial-license
|
| 6 |
license_link: LICENSE.md
|
| 7 |
-
extra_gated_prompt: >-
|
| 8 |
-
By clicking "Agree", you agree to the [FluxDev Non-Commercial License
|
| 9 |
-
Agreement](https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/LICENSE.md)
|
| 10 |
-
and acknowledge the [Acceptable Use
|
| 11 |
-
Policy](https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/POLICY.md).
|
| 12 |
tags:
|
| 13 |
- text-to-image
|
| 14 |
- image-generation
|
|
@@ -17,14 +12,12 @@ tags:
|
|
| 17 |
pipeline_tag: text-to-image
|
| 18 |
base_model:
|
| 19 |
- black-forest-labs/FLUX.1-dev
|
| 20 |
-
library_name: diffusers
|
| 21 |
---
|
| 22 |
|
| 23 |
![FLUX.1 Krea [dev] Grid](./teaser.png)
|
| 24 |
|
| 25 |
|
| 26 |
`FLUX.1 Krea [dev]` is a 12 billion parameter rectified flow transformer capable of generating images from text descriptions.
|
| 27 |
-
For more information, please read our [blog post](https://bfl.ai/announcements/flux-1-krea-dev) and [Krea's blog post](https://www.krea.ai/blog/flux-krea-open-source-release).
|
| 28 |
|
| 29 |
|
| 30 |
# Key Features
|
|
@@ -35,42 +28,7 @@ For more information, please read our [blog post](https://bfl.ai/announcements/f
|
|
| 35 |
5. Generated outputs can be used for personal, scientific, and commercial purposes, as described in the [flux-1-dev-non-commercial-license](https://github.com/black-forest-labs/flux/blob/main/model_licenses/LICENSE-FLUX1-dev).
|
| 36 |
|
| 37 |
# Usage
|
| 38 |
-
`FLUX.1 Krea [dev]` can be used as a drop-in replacement
|
| 39 |
-
A reference implementation of `FLUX.1 [dev]` is in our dedicated [github repository](https://github.com/black-forest-labs/flux).
|
| 40 |
-
Developers and creatives looking to build on top of `FLUX.1 [dev]` are encouraged to use this as a starting point.
|
| 41 |
-
|
| 42 |
-
`FLUX.1 Krea [dev]` is also available in both [ComfyUI](https://github.com/comfyanonymous/ComfyUI) and [diffusers](https://github.com/huggingface/diffusers).
|
| 43 |
-
|
| 44 |
-
## ComfyUI
|
| 45 |
-
To use `FLUX.1 Krea [dev]` in [Comfy UI](https://github.com/comfyanonymous/ComfyUI) download the `*.safetensors` weights [here](https://huggingface.co/black-forest-labs/FLUX.1-Krea-dev/resolve/main/flux1-krea-dev.safetensors)
|
| 46 |
-
|
| 47 |
-
## 🧨 diffusers
|
| 48 |
-
To use `FLUX.1 Krea [dev]` in [diffusers](https://github.com/huggingface/diffusers), first install or upgrade diffusers
|
| 49 |
-
|
| 50 |
-
```shell
|
| 51 |
-
pip install -U diffusers
|
| 52 |
-
```
|
| 53 |
-
|
| 54 |
-
Then you can use `FluxPipeline` to run the model
|
| 55 |
-
|
| 56 |
-
```python
|
| 57 |
-
import torch
|
| 58 |
-
from diffusers import FluxPipeline
|
| 59 |
-
|
| 60 |
-
pipe = FluxPipeline.from_pretrained("black-forest-labs/FLUX.1-Krea-dev", torch_dtype=torch.bfloat16)
|
| 61 |
-
pipe.enable_model_cpu_offload() #save some VRAM by offloading the model to CPU. Remove this if you have enough GPU VRAM
|
| 62 |
-
|
| 63 |
-
prompt = "A frog holding a sign that says hello world"
|
| 64 |
-
image = pipe(
|
| 65 |
-
prompt,
|
| 66 |
-
height=1024,
|
| 67 |
-
width=1024,
|
| 68 |
-
guidance_scale=4.5,
|
| 69 |
-
).images[0]
|
| 70 |
-
image.save("flux-krea-dev.png")
|
| 71 |
-
```
|
| 72 |
-
|
| 73 |
-
To learn more check out the [diffusers](https://huggingface.co/docs/diffusers/main/en/api/pipelines/flux) documentation
|
| 74 |
|
| 75 |
---
|
| 76 |
|
|
|
|
| 4 |
license: other
|
| 5 |
license_name: flux-1-dev-non-commercial-license
|
| 6 |
license_link: LICENSE.md
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
tags:
|
| 8 |
- text-to-image
|
| 9 |
- image-generation
|
|
|
|
| 12 |
pipeline_tag: text-to-image
|
| 13 |
base_model:
|
| 14 |
- black-forest-labs/FLUX.1-dev
|
|
|
|
| 15 |
---
|
| 16 |
|
| 17 |
![FLUX.1 Krea [dev] Grid](./teaser.png)
|
| 18 |
|
| 19 |
|
| 20 |
`FLUX.1 Krea [dev]` is a 12 billion parameter rectified flow transformer capable of generating images from text descriptions.
|
|
|
|
| 21 |
|
| 22 |
|
| 23 |
# Key Features
|
|
|
|
| 28 |
5. Generated outputs can be used for personal, scientific, and commercial purposes, as described in the [flux-1-dev-non-commercial-license](https://github.com/black-forest-labs/flux/blob/main/model_licenses/LICENSE-FLUX1-dev).
|
| 29 |
|
| 30 |
# Usage
|
| 31 |
+
`FLUX.1 Krea [dev]` can be used as a drop-in replacement inside of Invoke. Simply install the model using this repository in your Model Manager.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
|
| 33 |
---
|
| 34 |
|