Image-to-Image
Diffusers
Safetensors
Diffusion Single File
English
Flux2KleinPipeline
image-generation
image-editing
flux
Instructions to use timdrnl/FLUX.2-klein-9B-SNOFS with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use timdrnl/FLUX.2-klein-9B-SNOFS 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("timdrnl/FLUX.2-klein-9B-SNOFS", 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 timdrnl/FLUX.2-klein-9B-SNOFS 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
-
Upload transformer/diffusion_pytorch_model.safetensors.index.json with huggingface_hub
Verified signaturee8dc41b -
Upload transformer/config.json with huggingface_hub
Verified signaturee8d3cf0 -
Upload text_encoder/generation_config.json with huggingface_hub
Verified signatureba61a53 -
Upload text_encoder/model.safetensors.index.json with huggingface_hub
Verified signature9955e5d -
Upload text_encoder/config.json with huggingface_hub
Verified signature0aa4c0d -
Upload vae/diffusion_pytorch_model.safetensors with huggingface_hub
Verified signaturee821efe -
Upload vae/config.json with huggingface_hub
Verified signature427c7e7 -
Upload tokenizer/chat_template.jinja with huggingface_hub
Verified signature95968ad -
Upload tokenizer/merges.txt with huggingface_hub
Verified signaturef4fb50b -
Upload tokenizer/tokenizer.json with huggingface_hub
Verified signatureb677541 -
Upload tokenizer/added_tokens.json with huggingface_hub
Verified signature4432108 -
Upload tokenizer/special_tokens_map.json with huggingface_hub
Verified signature5dfbe23 -
Upload tokenizer/vocab.json with huggingface_hub
Verified signature60c8ae8 -
Upload tokenizer/tokenizer_config.json with huggingface_hub
Verified signatureadd3e72 -
Upload scheduler/scheduler_config.json with huggingface_hub
Verified signature5ea1b1e -
Upload LICENSE.md with huggingface_hub
Verified signaturef1701b5 -
Upload README.md with huggingface_hub
Verified signature9df3b7a -
Upload .gitattributes with huggingface_hub
Verified signature43d9632 -
Upload realism.jpg with huggingface_hub
Verified signature6671b05 -
Upload model_index.json with huggingface_hub
Verified signature2c0e00b -
Upload editing.jpg with huggingface_hub
Verified signature27cb1ef -
Upload others.jpg with huggingface_hub
Verified signature2fa2e54 -
Upload flux-2-klein-9b.safetensors with huggingface_hub
Verified signatureaa262c0 -
initial commit
Verified signaturea9e4fdb