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

  • Log In
  • Sign Up

prithivMLmods
/
FLUX.2-Klein-Object-Remover-Bbox

Image-to-Image
Diffusers
English
lora
Bbox
art
Object-Remover
Model card Files Files and versions
xet
Community
1

Instructions to use prithivMLmods/FLUX.2-Klein-Object-Remover-Bbox with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Diffusers

    How to use prithivMLmods/FLUX.2-Klein-Object-Remover-Bbox 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("black-forest-labs/FLUX.2-klein-base-9B", dtype=torch.bfloat16, device_map="cuda")
    pipe.load_lora_weights("prithivMLmods/FLUX.2-Klein-Object-Remover-Bbox")
    
    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
  • Local Apps
  • Draw Things
FLUX.2-Klein-Object-Remover-Bbox
522 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 5 commits
prithivMLmods's picture
prithivMLmods
Update README.md
a9983cc verified 2 months ago
  • ckpts
    upload flux.2-klein-object-remover-bbox model files โœ… (#1) 2 months ago
  • .gitattributes
    1.52 kB
    initial commit 2 months ago
  • FLUX.2-Klein-Object-Remover-Bbox-5000.safetensors
    87.1 MB
    xet
    upload flux.2-klein-object-remover-bbox model files โœ… (#1) 2 months ago
  • README.md
    1.73 kB
    Update README.md 2 months ago