Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

black-forest-labs
/
FLUX.2-dev

Image-to-Image
Diffusers
Safetensors
Diffusion Single File
English
Flux2Pipeline
image-generation
image-editing
flux
Model card Files Files and versions
xet
Community
46

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

  • Libraries
  • Diffusers

    How to use black-forest-labs/FLUX.2-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.2-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.2-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 contact information to access this model

This repository is publicly accessible, but you have to accept the conditions to access its files and content.

By clicking "Agree", you agree to the FLUX 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
  • config.json
    1.22 kB
    FLUX.2 launch 6 months ago
  • generation_config.json
    155 Bytes
    FLUX.2 launch 6 months ago
  • model-00001-of-00010.safetensors
    4.88 GB
    xet
    FLUX.2 launch 6 months ago
  • model-00002-of-00010.safetensors
    4.78 GB
    xet
    FLUX.2 launch 6 months ago
  • model-00003-of-00010.safetensors
    4.89 GB
    xet
    FLUX.2 launch 6 months ago
  • model-00004-of-00010.safetensors
    4.78 GB
    xet
    FLUX.2 launch 6 months ago
  • model-00005-of-00010.safetensors
    4.78 GB
    xet
    FLUX.2 launch 6 months ago
  • model-00006-of-00010.safetensors
    4.89 GB
    xet
    FLUX.2 launch 6 months ago
  • model-00007-of-00010.safetensors
    4.78 GB
    xet
    FLUX.2 launch 6 months ago
  • model-00008-of-00010.safetensors
    4.78 GB
    xet
    FLUX.2 launch 6 months ago
  • model-00009-of-00010.safetensors
    4.89 GB
    xet
    FLUX.2 launch 6 months ago
  • model-00010-of-00010.safetensors
    4.57 GB
    xet
    FLUX.2 launch 6 months ago
  • model.safetensors.index.json
    57.9 kB
    FLUX.2 launch 6 months ago