Image-to-Image
Diffusers
Safetensors
Diffusion Single File
English
Flux2KleinPipeline
image-generation
image-editing
flux
Instructions to use black-forest-labs/FLUX.2-klein-9B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use black-forest-labs/FLUX.2-klein-9B 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("black-forest-labs/FLUX.2-klein-9B", 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 black-forest-labs/FLUX.2-klein-9B 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
- Inference
- Notebooks
- Google Colab
- Kaggle
ยฟPor quรฉ no puede descargarse?
#39 opened 1 day ago
by
ElPerro
Request: DOI
#38 opened 16 days ago
by
thunderbeaver
Finding: EmptyLatentImage + denoise < 0.85 produces severe artifacts in ComfyUI (4-step distilled sampling limitation)
#36 opened about 1 month ago
by
geoahmed
Hmm it so hot, i love it!
#35 opened about 2 months ago
by
hitle3g
RuntimeError: mat1 and mat2 shapes cannot be multiplied (512x4096 and 12288x4096)
1
#34 opened 2 months ago
by
facciopaura
Flux 2 hex color code not consistent?
#32 opened 2 months ago
by
UnrealCouture
Request: DOI
#31 opened 2 months ago
by
Yanakin
The flux workflow became very slow
1
#29 opened 3 months ago
by
fzshyi
403 erroe
#28 opened 3 months ago
by
Myroslav4ik
Request: DOI
#27 opened 3 months ago
by
land23455
Requesting clarification regarding commercial use
๐ 5
1
#24 opened 4 months ago
by
infearia
i've got an idea!
1
#23 opened 4 months ago
by
ballsgreen
comparison with black-forest-labs/FLUX.2-klein-base-9B
3
#22 opened 4 months ago
by
Jeosss
The License link is broken
#21 opened 4 months ago
by
disturbedUkr
๐ Free Local GUI for FLUX.2 Klein (One-Click Install / RTX 5090 Optimized)
#19 opened 4 months ago
by
SgtElias
Any chance we can get an ONNX format version?
๐ 2
#18 opened 4 months ago
by
AIUSER001
Flux 2 Klein 9B ignores all {} and | in prompts.
๐ 1
4
#17 opened 4 months ago
by
a2024a
Why is the image quality generated by ComfyUI much worse than that by Huggingface Space
#16 opened 4 months ago
by
Jim0
We need Lora support, please update.
2
#15 opened 4 months ago
by
hanswurstwerner
How about Lora?
#14 opened 4 months ago
by
LucesLew
this is the longest "we censored this to hell and back" disclaimer ever. Interesting priorities.
๐ฅ๐ 13
8
#12 opened 4 months ago
by
Andyx1976
19GB memory usage and 24 sec runtime on RTX 3090
๐ 3
1
#11 opened 4 months ago
by
PartyParrot
ValueError: Provide either `prompt` or `prompt_embeds`. Cannot leave both `prompt` and `prompt_embeds` undefined.
โค๏ธ 6
#10 opened 4 months ago
by
PartyParrot
Installation Video and Testing - Step by Step
#9 opened 4 months ago
by
fahdmirzac
workflow
โค๏ธ๐ 1
3
#8 opened 4 months ago
by
fengjunwei
Which diffusers version shall be used?
๐ 2
1
#7 opened 4 months ago
by
muhammadshahjahan1995
Multi-image example
1
#6 opened 4 months ago
by
juanquivilla
Which method did you use for distillation?
#5 opened 4 months ago
by
hubxOmer
Great works, thanks
2
#4 opened 4 months ago
by
arounduniverse
Why not Apache 2.0 as the announcment back then said
๐ฅ 4
4
#3 opened 4 months ago
by
Tiwaz