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

why-do-u-care
/
a-simple-bg-removal

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

Instructions to use why-do-u-care/a-simple-bg-removal with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use why-do-u-care/a-simple-bg-removal with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("image-segmentation", model="why-do-u-care/a-simple-bg-removal", trust_remote_code=True)
    # Load model directly
    from transformers import AutoModelForImageSegmentation
    model = AutoModelForImageSegmentation.from_pretrained("why-do-u-care/a-simple-bg-removal", trust_remote_code=True, dtype="auto")
  • Transformers.js

    How to use why-do-u-care/a-simple-bg-removal with Transformers.js:

    // npm i @huggingface/transformers
    import { pipeline } from '@huggingface/transformers';
    
    // Allocate pipeline
    const pipe = await pipeline('image-segmentation', 'why-do-u-care/a-simple-bg-removal');
  • Notebooks
  • Google Colab
  • Kaggle
a-simple-bg-removal
842 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
why-do-u-care's picture
why-do-u-care
Upload 20 files
253f183 verified about 1 year ago
  • onnx
    Upload 20 files about 1 year ago
  • .gitattributes
    1.94 kB
    Upload 20 files about 1 year ago
  • MyConfig.py
    339 Bytes
    Upload 20 files about 1 year ago
  • MyPipe.py
    2.96 kB
    Upload 20 files about 1 year ago
  • README.md
    6.44 kB
    Upload 20 files about 1 year ago
  • briarmbg.py
    13.6 kB
    Upload 20 files about 1 year ago
  • config.json
    573 Bytes
    Upload 20 files about 1 year ago
  • example_inference.py
    1.13 kB
    Upload 20 files about 1 year ago
  • example_input.jpg
    327 kB
    xet
    Upload 20 files about 1 year ago
  • model.pth

    Detected Pickle imports (4)

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

    What is a pickle import?

    177 MB
    xet
    Upload 20 files about 1 year ago
  • model.safetensors
    176 MB
    xet
    Upload 20 files about 1 year ago
  • preprocessor_config.json
    367 Bytes
    Upload 20 files about 1 year ago
  • pytorch_model.bin

    Detected Pickle imports (4)

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

    What is a pickle import?

    177 MB
    xet
    Upload 20 files about 1 year ago
  • requirements.txt
    94 Bytes
    Upload 20 files about 1 year ago
  • results.png
    1.25 MB
    xet
    Upload 20 files about 1 year ago
  • t4.png
    2.16 MB
    xet
    Upload 20 files about 1 year ago
  • utilities.py
    1 kB
    Upload 20 files about 1 year ago