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

  • Log In
  • Sign Up

yoshi53
/
bg_rm2

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 yoshi53/bg_rm2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use yoshi53/bg_rm2 with Transformers:

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

    How to use yoshi53/bg_rm2 with Transformers.js:

    // npm i @huggingface/transformers
    import { pipeline } from '@huggingface/transformers';
    
    // Allocate pipeline
    const pipe = await pipeline('image-segmentation', 'yoshi53/bg_rm2');
  • Notebooks
  • Google Colab
  • Kaggle
bg_rm2
5.37 GB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 2 commits
miner-bit
initial commit
fa09896 4 months ago
  • onnx
    initial commit 4 months ago
  • .gitattributes
    1.78 kB
    initial commit 4 months ago
  • BiRefNet_config.py
    298 Bytes
    initial commit 4 months ago
  • README.md
    8.49 kB
    initial commit 4 months ago
  • birefnet.py
    91.4 kB
    initial commit 4 months ago
  • collage5.png
    4.52 MB
    xet
    initial commit 4 months ago
  • config.json
    405 Bytes
    initial commit 4 months ago
  • diagram1.png
    21.3 kB
    initial commit 4 months ago
  • model.safetensors
    885 MB
    xet
    initial commit 4 months ago
  • preprocessor_config.json
    391 Bytes
    initial commit 4 months ago
  • pytorch_model.bin

    Detected Pickle imports (4)

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

    What is a pickle import?

    885 MB
    xet
    initial commit 4 months ago
  • t4.png
    2.16 MB
    xet
    initial commit 4 months ago