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

  • Log In
  • Sign Up

mohantesting
/
remove_background

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

  • Libraries
  • Transformers

    How to use mohantesting/remove_background with Transformers:

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

    How to use mohantesting/remove_background with Transformers.js:

    // npm i @huggingface/transformers
    import { pipeline } from '@huggingface/transformers';
    
    // Allocate pipeline
    const pipe = await pipeline('image-segmentation', 'mohantesting/remove_background');
  • Notebooks
  • Google Colab
  • Kaggle
remove_background
5.37 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
mohantesting's picture
mohantesting
Add files using upload-large-folder tool
ddd449c verified 4 months ago
  • onnx
    Add files using upload-large-folder tool 4 months ago
  • .gitattributes
    1.78 kB
    Add files using upload-large-folder tool 4 months ago
  • BiRefNet_config.py
    298 Bytes
    Add files using upload-large-folder tool 4 months ago
  • README.md
    8.52 kB
    Add files using upload-large-folder tool 4 months ago
  • birefnet.py
    91.4 kB
    Add files using upload-large-folder tool 4 months ago
  • collage5.png
    4.52 MB
    xet
    Add files using upload-large-folder tool 4 months ago
  • config.json
    405 Bytes
    Add files using upload-large-folder tool 4 months ago
  • diagram1.png
    21.3 kB
    Add files using upload-large-folder tool 4 months ago
  • model.safetensors
    885 MB
    xet
    Add files using upload-large-folder tool 4 months ago
  • preprocessor_config.json
    391 Bytes
    Add files using upload-large-folder tool 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
    Add files using upload-large-folder tool 4 months ago
  • t4.png
    2.16 MB
    xet
    Add files using upload-large-folder tool 4 months ago