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

  • Log In
  • Sign Up

holwech
/
kontext

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

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

  • Libraries
  • Diffusers

    How to use holwech/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("holwech/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]
  • Notebooks
  • Google Colab
  • Kaggle
kontext
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
holwech's picture
holwech
Push current folder content
2d2e4f0 verified 10 months ago
  • scheduler
    Push current folder content 10 months ago
  • text_encoder
    Push current folder content 10 months ago
  • text_encoder_2
    Push current folder content 10 months ago
  • tokenizer
    Push current folder content 10 months ago
  • tokenizer_2
    Push current folder content 10 months ago
  • transformer
    Push current folder content 10 months ago
  • vae
    Push current folder content 10 months ago
  • .gitattributes
    1.52 kB
    Push current folder content 10 months ago
  • model_index.json
    696 Bytes
    Push current folder content 10 months ago