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

lharti
/
RMBG-1.4

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

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

  • Libraries
  • Transformers

    How to use lharti/RMBG-1.4 with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("image-segmentation", model="lharti/RMBG-1.4", trust_remote_code=True)
    # Load model directly
    from transformers import AutoModelForImageSegmentation
    model = AutoModelForImageSegmentation.from_pretrained("lharti/RMBG-1.4", trust_remote_code=True, dtype="auto")
  • Notebooks
  • Google Colab
  • Kaggle
RMBG-1.4
Ctrl+K
Ctrl+K
  • 2 contributors
History: 2 commits
lharti's picture
lharti
Update preprocessor_config.json
055313e verified over 1 year ago
  • onnx
    init over 1 year ago
  • .gitattributes
    1.85 kB
    init over 1 year ago
  • MyConfig.py
    326 Bytes
    init over 1 year ago
  • MyPipe.py
    2.93 kB
    init over 1 year ago
  • README.md
    6.2 kB
    init over 1 year ago
  • briarmbg.py
    13.1 kB
    init over 1 year ago
  • config.json
    548 Bytes
    init over 1 year ago
  • example_inference.py
    1.11 kB
    init over 1 year ago
  • example_input.jpg
    327 kB
    init over 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
    init over 1 year ago
  • model.safetensors
    176 MB
    xet
    init over 1 year ago
  • preprocessor_config.json
    351 Bytes
    Update preprocessor_config.json over 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
    init over 1 year ago
  • requirements.txt
    87 Bytes
    init over 1 year ago
  • results.png
    1.25 MB
    xet
    init over 1 year ago
  • t4.png
    2.16 MB
    xet
    init over 1 year ago
  • utilities.py
    980 Bytes
    init over 1 year ago