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

  • Log In
  • Sign Up

Xenova
/
modnet

Image Segmentation
Transformers.js
ONNX
modnet
vision
background-removal
portrait-matting
Model card Files Files and versions
xet
Community
7

Instructions to use Xenova/modnet with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers.js

    How to use Xenova/modnet with Transformers.js:

    // npm i @huggingface/transformers
    import { pipeline } from '@huggingface/transformers';
    
    // Allocate pipeline
    const pipe = await pipeline('image-segmentation', 'Xenova/modnet');
New discussion
Resources
  • PR & discussions documentation
  • Code of Conduct
  • Hub documentation

The model is now added to WebAI.js. Try it in your browser with no code required.

#7 opened 6 months ago by
AxolsWebAI

Testing device-level configs

#5 opened about 1 year ago by
Xenova

Would be nice to have the output with the alpha already premultiplied

#3 opened over 1 year ago by
tonynoce

Add fp16 ONNX weights

#2 opened about 2 years ago by
Xenova
Company
TOS Privacy About Careers
Website
Models Datasets Spaces Pricing Docs