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
Commit History
-
Update README.md
Verified signaturee4e0fab
-
Update README.md
Verified signature676669d
-
Update README.md
Verified signature0a7c687
-
Update README.md
Verified signature7a715a9 -
Upload model_index.json with huggingface_hub
Verified signature6896ad3 -
Upload vae/diffusion_pytorch_model.safetensors with huggingface_hub
Verified signature3b85fcf -
Upload vae/config.json with huggingface_hub
Verified signature327e2d3 -
Upload transformer/diffusion_pytorch_model.safetensors with huggingface_hub
Verified signature87d47c9 -
Upload transformer/config.json with huggingface_hub
Verified signature04c328a -
Upload tokenizer/vocab.json with huggingface_hub
Verified signature7f22c32 -
Upload tokenizer/tokenizer_config.json with huggingface_hub
Verified signature4455abf -
Upload tokenizer/tokenizer.json with huggingface_hub
Verified signature869d89b -
Upload tokenizer/special_tokens_map.json with huggingface_hub
Verified signature8bd4272 -
Upload tokenizer/merges.txt with huggingface_hub
Verified signaturee1d655f -
Upload tokenizer/chat_template.jinja with huggingface_hub
Verified signatured51f0ee -
Upload tokenizer/added_tokens.json with huggingface_hub
Verified signature6cd03d0 -
Upload text_encoder/model.safetensors.index.json with huggingface_hub
Verified signaturec028771 -
Upload text_encoder/model-00002-of-00002.safetensors with huggingface_hub
Verified signatureb063d28 -
Upload text_encoder/model-00001-of-00002.safetensors with huggingface_hub
Verified signature3ae22ac -
Upload text_encoder/generation_config.json with huggingface_hub
Verified signature66d2204 -
Upload text_encoder/config.json with huggingface_hub
Verified signature5b66815 -
Upload scheduler/scheduler_config.json with huggingface_hub
Verified signature8915af4 -
Upload LICENSE.md with huggingface_hub
Verified signaturef6eb653 -
initial commit
Verified signature9958e6c