Image-to-Image
Diffusers
Safetensors
Diffusion Single File
English
FluxKontextPipeline
image-generation
flux
Instructions to use HelloTestUser/FLUX.1-Kontext-dev with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use HelloTestUser/FLUX.1-Kontext-dev 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("HelloTestUser/FLUX.1-Kontext-dev", 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 HelloTestUser/FLUX.1-Kontext-dev 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 signatureaf58063 -
Update LICENSE.md
Verified signature5f6b5b0 -
Update README.md
Verified signatureb508860
-
Correct safety filter (#7)
Verified signature- Update README.md (aebf2be7d6cdb3419c04f6d4631a4a9aa43708b5) Co-authored-by: Apolinário from multimodal AI art <multimodalart@users.noreply.huggingface.co>f9fdd1a -
Diffusers-format weights (#4)
Verified signature- Upload folder using huggingface_hub (d6a1017a365a539d15da8cab248361bfeb3f7d47) - Update README.md (272bd7d41350d2916bc6c2ecd1ba6d3756ebb880) - Update README.md (7610c9af3c0bfb3117f2e4ac2ececcaf7b6435df) Co-authored-by: Aryan V S <a-r-r-o-w@users.noreply.huggingface.co>ec5756a -
Update task for downstream systems to work + correct snippets (#3)
Verified signature- Update task for downstream systems to work + correct snippets (6beda44ccab9d6af307f30497670486fd6c0f7cd) Co-authored-by: Vaibhav Srivastav <reach-vb@users.noreply.huggingface.co>6bdb09e -
Upload LICENSE.md with huggingface_hub
Verified signature3db495d -
Kontext release
0018ada