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

  • Log In
  • Sign Up

BritishWerewolf
/
U-2-Netp

Image Segmentation
Transformers
ONNX
Transformers.js
English
u2net
mask-generation
vision
background-removal
portrait-matting
Model card Files Files and versions
xet
Community

Instructions to use BritishWerewolf/U-2-Netp with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use BritishWerewolf/U-2-Netp with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("image-segmentation", model="BritishWerewolf/U-2-Netp")
    # Load model directly
    from transformers import AutoModel
    model = AutoModel.from_pretrained("BritishWerewolf/U-2-Netp", dtype="auto")
  • Transformers.js

    How to use BritishWerewolf/U-2-Netp with Transformers.js:

    // npm i @huggingface/transformers
    import { pipeline } from '@huggingface/transformers';
    
    // Allocate pipeline
    const pipe = await pipeline('image-segmentation', 'BritishWerewolf/U-2-Netp');
  • Notebooks
  • Google Colab
  • Kaggle
U-2-Netp
4.58 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 4 commits
BritishWerewolf's picture
BritishWerewolf
Set default model to fp32.
7112208 about 1 year ago
  • onnx
    Add ONNX model (fp32). about 1 year ago
  • .gitattributes
    1.52 kB
    initial commit about 1 year ago
  • README.md
    2.2 kB
    Update model's tags. about 1 year ago
  • config.json
    388 Bytes
    Set default model to fp32. about 1 year ago
  • preprocessor_config.json
    438 Bytes
    Add ONNX model (fp32). about 1 year ago