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

  • Log In
  • Sign Up

joyfox
/
Kontext-Remover-General-LoRA

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

Instructions to use joyfox/Kontext-Remover-General-LoRA with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Diffusers

    How to use joyfox/Kontext-Remover-General-LoRA 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("joyfox/Kontext-Remover-General-LoRA", dtype=torch.bfloat16, device_map="cuda")
    
    prompt = "Remove this woman from the scene"
    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 joyfox/Kontext-Remover-General-LoRA 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
Kontext-Remover-General-LoRA
450 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 3 commits
starsfriday's picture
starsfriday
Update README.md
cd22b1b verified 10 months ago
  • results
    Upload folder using huggingface_hub 10 months ago
  • .gitattributes
    2.05 kB
    Upload folder using huggingface_hub 10 months ago
  • README.md
    1.25 kB
    Update README.md 10 months ago
  • config.yaml
    1.98 kB
    Upload folder using huggingface_hub 10 months ago
  • kontext_remove.safetensors
    172 MB
    xet
    Upload folder using huggingface_hub 10 months ago
  • optimizer.pt

    Detected Pickle imports (4)

    • "torch._utils._rebuild_tensor_v2",
    • "torch.ByteStorage",
    • "torch.FloatStorage",
    • "collections.OrderedDict"

    What is a pickle import?

    176 MB
    xet
    Upload folder using huggingface_hub 10 months ago