Image-to-Image
Diffusers
Safetensors
Diffusion Single File
English
FluxKontextPipeline
image-generation
flux
Instructions to use worksimpli/FLUX.1-Kontext-img-edit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use worksimpli/FLUX.1-Kontext-img-edit 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("worksimpli/FLUX.1-Kontext-img-edit", 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 worksimpli/FLUX.1-Kontext-img-edit 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
- Xet hash:
- e7463c1c6b7c46ae0de79b004f3d7318bf4307ef0bef4de3be2e38ae80fab160
- Size of remote file:
- 792 kB
- SHA256:
- d60acb128cf7b7f2536e8f38a5b18a05535c9e14c7a355904270e15b0945ea86
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.