Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

black-forest-labs
/
FLUX.1-Kontext-dev

Image-to-Image
Diffusers
Safetensors
Diffusion Single File
English
FluxKontextPipeline
image-generation
flux
Eval Results
Model card Files Files and versions
xet
Community
91

Instructions to use black-forest-labs/FLUX.1-Kontext-dev with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Diffusers

    How to use black-forest-labs/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("black-forest-labs/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 black-forest-labs/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
  • Inference
  • Notebooks
  • Google Colab
  • Kaggle

You need to agree to share your Hugging Face information to access this model

We'd like to know who is building with FLUX. If you are affiliated with a company, we may email you about our models, products and commercial licensing. You can unsubscribe at any time. See our Privacy Policy.

By clicking "Agree", you agree to the FluxDev Non-Commercial License Agreement and acknowledge the Acceptable Use Policy.

Log in or Sign Up to review the conditions and access this model content.

Gated model
You can list files but not access them

Preview of files found in this repository
  • scheduler
    Upload folder using huggingface_hub over 1 year ago
  • text_encoder
    Upload folder using huggingface_hub over 1 year ago
  • text_encoder_2
    Upload folder using huggingface_hub over 1 year ago
  • tokenizer
    Upload folder using huggingface_hub over 1 year ago
  • tokenizer_2
    Upload folder using huggingface_hub over 1 year ago
  • transformer
    Upload folder using huggingface_hub over 1 year ago
  • vae
    Upload folder using huggingface_hub over 1 year ago
  • .gitattributes
    1.66 kB
    Kontext release over 1 year ago
  • LICENSE.md
    18.7 kB
    Upload LICENSE.md with huggingface_hub over 1 year ago
  • README.md
    9.89 kB
    Update README.md over 1 year ago
  • ae.safetensors
    335 MB
    xet
    Kontext release over 1 year ago
  • flux1-kontext-dev.safetensors
    23.8 GB
    xet
    Kontext release over 1 year ago
  • model_index.json
    688 Bytes
    Upload folder using huggingface_hub over 1 year ago
  • teaser.png
    6.17 MB
    xet
    Kontext release over 1 year ago