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

  • Log In
  • Sign Up

callgg
/
kontext-decoder

Image-to-Image
Diffusers
Safetensors
FluxKontextPipeline
Model card Files Files and versions
xet
Community

Instructions to use callgg/kontext-decoder with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Diffusers

    How to use callgg/kontext-decoder 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("callgg/kontext-decoder", 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]
  • Notebooks
  • Google Colab
  • Kaggle
kontext-decoder
419 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 15 commits
chatpig's picture
chatpig
Update tokenizer/tokenizer_config.json
7a73020 verified 8 months ago
  • scheduler
    Upload 16 files 10 months ago
  • text_encoder
    Upload 16 files 10 months ago
  • tokenizer
    Update tokenizer/tokenizer_config.json 8 months ago
  • tokenizer_2
    Update tokenizer_2/tokenizer_config.json 8 months ago
  • transformer
    Update transformer/config.json 9 months ago
  • vae
    Update vae/config.json 10 months ago
  • .gitattributes
    1.52 kB
    initial commit 10 months ago
  • README.md
    67 Bytes
    Update README.md 10 months ago
  • model_index.json
    636 Bytes
    Update model_index.json 10 months ago