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

  • Log In
  • Sign Up

callgg
/
kontext-bf16

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

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

  • Libraries
  • Diffusers

    How to use callgg/kontext-bf16 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-bf16", 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-bf16
30.6 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 14 commits
chatpig's picture
chatpig
Upload 2 files
3babe28 verified 10 months ago
  • scheduler
    Upload 11 files 10 months ago
  • text_encoder
    Upload 6 files 10 months ago
  • text_encoder_2
    Upload 6 files 10 months ago
  • tokenizer
    Upload 11 files 10 months ago
  • tokenizer_2
    Upload 11 files 10 months ago
  • transformer
    Upload 2 files 10 months ago
  • vae
    Upload 11 files 10 months ago
  • .gitattributes
    1.52 kB
    initial commit 10 months ago
  • README.md
    271 Bytes
    Update README.md 10 months ago
  • model_index.json
    680 Bytes
    Upload model_index.json with huggingface_hub 10 months ago