Image-to-Image
Diffusers
Safetensors
Diffusion Single File
English
Flux2KleinPipeline
text-to-image
image-editing
flux
Instructions to use YuCollection/FLUX.2-klein-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-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-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-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
Commit History
-
Update README.md
Verified signature64c8b99
-
Update README.md
Verified signaturea1ea3f4
-
Update README.md
Verified signature10a516c
-
Update README.md
Verified signatured68c65a -
Update README.md
Verified signature16f87bb
-
Update README.md
Verified signature80f6af2 -
Update README.md
Verified signature0bb7cfc
-
Update README.md
Verified signaturef433d30
-
Create README.md
Verified signature1a954a1 -
Upload transformer/diffusion_pytorch_model.safetensors with huggingface_hub
Verified signature7c8f696 -
Upload transformer/config.json with huggingface_hub
Verified signatureb5957b7 -
Upload LICENSE.md with huggingface_hub
Verified signature84c1af3 -
Upload model_index.json with huggingface_hub
Verified signaturee1adf26 -
Upload vae/diffusion_pytorch_model.safetensors with huggingface_hub
Verified signaturea3fbf1c -
Upload vae/config.json with huggingface_hub
Verified signaturecd26d4f -
Upload tokenizer/vocab.json with huggingface_hub
Verified signaturea0b92e4 -
Upload tokenizer/tokenizer_config.json with huggingface_hub
Verified signature74c5a49 -
Upload tokenizer/tokenizer.json with huggingface_hub
Verified signatureec35531 -
Upload tokenizer/special_tokens_map.json with huggingface_hub
Verified signature5bd4b3c -
Upload tokenizer/merges.txt with huggingface_hub
Verified signatured785cc2 -
Upload tokenizer/chat_template.jinja with huggingface_hub
Verified signature6dd5cb4 -
Upload tokenizer/added_tokens.json with huggingface_hub
Verified signaturee7b1d4c -
Upload text_encoder/model.safetensors.index.json with huggingface_hub
Verified signaturec172425 -
Upload text_encoder/model-00002-of-00002.safetensors with huggingface_hub
Verified signature4a5de4e -
Upload text_encoder/model-00001-of-00002.safetensors with huggingface_hub
Verified signatureb5d1f7e -
Upload text_encoder/generation_config.json with huggingface_hub
Verified signaturef11c58e -
Upload text_encoder/config.json with huggingface_hub
Verified signatured1134b0 -
Upload scheduler/scheduler_config.json with huggingface_hub
Verified signature0832a16 -
initial commit
Verified signature4c6ccb7