Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Hardware
      • 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-Netp

ddanielle
/
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 ddanielle/U-2-Netp with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

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

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

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

    // npm i @huggingface/transformers
    import { pipeline } from '@huggingface/transformers';
    
    // Allocate pipeline
    const pipe = await pipeline('image-segmentation', 'ddanielle/U-2-Netp');
  • Notebooks
  • Google Colab
  • Kaggle
U-2-Netp
4.58 MB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 1 commit
ddanielle's picture
ddanielle
BritishWerewolf's picture
BritishWerewolf
Duplicate from BritishWerewolf/U-2-Netp
990e0b5 8 days ago
  • onnx
    Duplicate from BritishWerewolf/U-2-Netp 8 days ago
  • .gitattributes
    1.52 kB
    Duplicate from BritishWerewolf/U-2-Netp 8 days ago
  • README.md
    2.2 kB
    Duplicate from BritishWerewolf/U-2-Netp 8 days ago
  • config.json
    388 Bytes
    Duplicate from BritishWerewolf/U-2-Netp 8 days ago
  • preprocessor_config.json
    438 Bytes
    Duplicate from BritishWerewolf/U-2-Netp 8 days ago