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

  • Log In
  • Sign Up

torealise
/
custom_kontext

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

Instructions to use torealise/custom_kontext with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Diffusers

    How to use torealise/custom_kontext 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("torealise/custom_kontext", 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 torealise/custom_kontext 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
custom_kontext
Ctrl+K
Ctrl+K
  • 1 contributor
History: 7 commits
torealise's picture
torealise
Rename flux1-kontext-dev_t2i-1500img-12000.safetensors to flux1-kontext-dev.safetensors
d3cc5d5 verified 10 months ago
  • scheduler
    Upload folder using huggingface_hub 10 months ago
  • text_encoder
    Upload folder using huggingface_hub 10 months ago
  • text_encoder_2
    Upload folder using huggingface_hub 10 months ago
  • tokenizer
    Upload folder using huggingface_hub 10 months ago
  • tokenizer_2
    Upload folder using huggingface_hub 10 months ago
  • transformer
    Upload folder using huggingface_hub 10 months ago
  • vae
    Upload folder using huggingface_hub 10 months ago
  • .gitattributes
    1.66 kB
    Upload folder using huggingface_hub 10 months ago
  • LICENSE.md
    18.6 kB
    Upload folder using huggingface_hub 10 months ago
  • README.md
    9.64 kB
    Upload folder using huggingface_hub 10 months ago
  • ae.safetensors
    335 MB
    xet
    Upload folder using huggingface_hub 10 months ago
  • flux1-kontext-dev.safetensors
    23.8 GB
    xet
    Rename flux1-kontext-dev_t2i-1500img-12000.safetensors to flux1-kontext-dev.safetensors 10 months ago
  • flux1-kontext-dev_diesel_v01_3500.safetensors
    23.8 GB
    xet
    Rename flux1-kontext-dev.safetensors to flux1-kontext-dev_diesel_v01_3500.safetensors 10 months ago
  • model_index.json
    688 Bytes
    Upload folder using huggingface_hub 10 months ago
  • teaser.png
    6.17 MB
    xet
    Upload folder using huggingface_hub 10 months ago