Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

Duplicated from  ZQL9711/RMBG-2-Matting

aoiandroid
/
RMBG-2-Matting

Image Segmentation
Transformers
PyTorch
ONNX
Safetensors
Transformers.js
remove background
background
background-removal
Pytorch
vision
legal liability
custom_code
Model card Files Files and versions
xet
Community

Instructions to use aoiandroid/RMBG-2-Matting with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use aoiandroid/RMBG-2-Matting with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("image-segmentation", model="aoiandroid/RMBG-2-Matting", trust_remote_code=True)
    # Load model directly
    from transformers import AutoModelForImageSegmentation
    model = AutoModelForImageSegmentation.from_pretrained("aoiandroid/RMBG-2-Matting", trust_remote_code=True, dtype="auto")
  • Transformers.js

    How to use aoiandroid/RMBG-2-Matting with Transformers.js:

    // npm i @huggingface/transformers
    import { pipeline } from '@huggingface/transformers';
    
    // Allocate pipeline
    const pipe = await pipeline('image-segmentation', 'aoiandroid/RMBG-2-Matting');
  • Notebooks
  • Google Colab
  • Kaggle
RMBG-2-Matting / onnx
3.59 GB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 1 commit
aoiandroid's picture
aoiandroid
Duplicate from ZQL9711/RMBG-2-Matting
7fee895 14 days ago
  • model.onnx
    1.02 GB
    xet
    Duplicate from ZQL9711/RMBG-2-Matting 14 days ago
  • model_bnb4.onnx
    355 MB
    xet
    Duplicate from ZQL9711/RMBG-2-Matting 14 days ago
  • model_fp16.onnx
    514 MB
    xet
    Duplicate from ZQL9711/RMBG-2-Matting 14 days ago
  • model_int8.onnx
    366 MB
    xet
    Duplicate from ZQL9711/RMBG-2-Matting 14 days ago
  • model_q4.onnx
    367 MB
    xet
    Duplicate from ZQL9711/RMBG-2-Matting 14 days ago
  • model_q4f16.onnx
    234 MB
    xet
    Duplicate from ZQL9711/RMBG-2-Matting 14 days ago
  • model_quantized.onnx
    366 MB
    xet
    Duplicate from ZQL9711/RMBG-2-Matting 14 days ago
  • model_uint8.onnx
    366 MB
    xet
    Duplicate from ZQL9711/RMBG-2-Matting 14 days ago