Image-to-Image
Diffusers
Safetensors
Diffusion Single File
English
Flux2KleinPipeline
text-to-image
image-editing
flux
Instructions to use YuCollection/FLUX.2-klein-base-4B-Diffusers with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use YuCollection/FLUX.2-klein-base-4B-Diffusers with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline from diffusers.utils import load_image # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("YuCollection/FLUX.2-klein-base-4B-Diffusers", dtype=torch.bfloat16, device_map="cuda") prompt = "Turn this cat into a dog" input_image = load_image("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/cat.png") image = pipe(image=input_image, prompt=prompt).images[0] - Diffusion Single File
How to use YuCollection/FLUX.2-klein-base-4B-Diffusers with Diffusion Single File:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -14,18 +14,16 @@ tags:
|
|
| 14 |
> **Note:** This repository is an **archived mirror** and is **not** the original upstream source.
|
| 15 |
> The original model, weights, and documentation are developed and maintained by **Black Forest Labs**.
|
| 16 |
>
|
| 17 |
-
>
|
| 18 |
-
> The model weights hosted here are **unmodified**. Minor editorial changes may have been made to this README (e.g., formatting or clarification) and do **not** alter the model, its behavior, or its licensing.
|
| 19 |
>
|
| 20 |
-
> The model is released under the **Apache License, Version 2.0**
|
| 21 |
-
> A copy of the
|
| 22 |
>
|
| 23 |
> **Cooperation Notice:**
|
| 24 |
-
>
|
|
|
|
| 25 |
>
|
| 26 |
-
>
|
| 27 |
-
>
|
| 28 |
-
> *This repository does not claim any affiliation with or endorsement by Black Forest Labs.*
|
| 29 |
|
| 30 |
The **FLUX.2 [klein]** model family represents Black Forest Labs’ fastest image models to date. FLUX.2 [klein] unifies image generation and editing within a single compact architecture, **delivering state-of-the-art quality with end-to-end inference in under one second**. It is designed for real-time and latency-critical applications and runs on consumer hardware with as little as **~13GB VRAM**.
|
| 31 |
|
|
|
|
| 14 |
> **Note:** This repository is an **archived mirror** and is **not** the original upstream source.
|
| 15 |
> The original model, weights, and documentation are developed and maintained by **Black Forest Labs**.
|
| 16 |
>
|
| 17 |
+
> All hosted model weights are **unmodified**. Any README edits are purely editorial and do not affect the model, its behavior, or its licensing.
|
|
|
|
| 18 |
>
|
| 19 |
+
> The model is released under the **Apache License, Version 2.0**.
|
| 20 |
+
> A copy of the license is included in this repository.
|
| 21 |
>
|
| 22 |
> **Cooperation Notice:**
|
| 23 |
+
> The maintainer will cooperate in good faith with the original rights holder or upstream maintainers, consistent with the Apache License 2.0.
|
| 24 |
+
> Requests may be submitted via **Discussions**.
|
| 25 |
>
|
| 26 |
+
> *This repository is not affiliated with or endorsed by Black Forest Labs.*
|
|
|
|
|
|
|
| 27 |
|
| 28 |
The **FLUX.2 [klein]** model family represents Black Forest Labs’ fastest image models to date. FLUX.2 [klein] unifies image generation and editing within a single compact architecture, **delivering state-of-the-art quality with end-to-end inference in under one second**. It is designed for real-time and latency-critical applications and runs on consumer hardware with as little as **~13GB VRAM**.
|
| 29 |
|