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

  • Log In
  • Sign Up

BritishWerewolf
/
U-2-Net

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

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

  • Libraries
  • Transformers

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

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

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

    // npm i @huggingface/transformers
    import { pipeline } from '@huggingface/transformers';
    
    // Allocate pipeline
    const pipe = await pipeline('image-segmentation', 'BritishWerewolf/U-2-Net');
  • Notebooks
  • Google Colab
  • Kaggle
U-2-Net
176 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 4 commits
BritishWerewolf's picture
BritishWerewolf
Set default model to fp32.
c08042b 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.6 kB
    Update model's tags. about 1 year ago
  • config.json
    389 Bytes
    Set default model to fp32. about 1 year ago
  • preprocessor_config.json
    438 Bytes
    Add ONNX model (fp32). about 1 year ago