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

Duplicated from  BritishWerewolf/U-2-Net

LEO-LLLL
/
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

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

  • Libraries
  • Transformers

    How to use LEO-LLLL/U-2-Net with Transformers:

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

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

    // npm i @huggingface/transformers
    import { pipeline } from '@huggingface/transformers';
    
    // Allocate pipeline
    const pipe = await pipeline('image-segmentation', 'LEO-LLLL/U-2-Net');
  • Notebooks
  • Google Colab
  • Kaggle
U-2-Net
176 MB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 1 commit
LEO-LLLL's picture
LEO-LLLL
BritishWerewolf's picture
BritishWerewolf
Duplicate from BritishWerewolf/U-2-Net
ff27042 5 days ago
  • onnx
    Duplicate from BritishWerewolf/U-2-Net 5 days ago
  • .gitattributes
    1.52 kB
    Duplicate from BritishWerewolf/U-2-Net 5 days ago
  • README.md
    2.6 kB
    Duplicate from BritishWerewolf/U-2-Net 5 days ago
  • config.json
    389 Bytes
    Duplicate from BritishWerewolf/U-2-Net 5 days ago
  • preprocessor_config.json
    438 Bytes
    Duplicate from BritishWerewolf/U-2-Net 5 days ago