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 / onnx
Ctrl+K
Ctrl+K
  • 1 contributor
History: 1 commit
BritishWerewolf's picture
BritishWerewolf
Add ONNX model (fp32).
614b52f about 1 year ago
  • model.onnx
    176 MB
    xet
    Add ONNX model (fp32). about 1 year ago