Skip to content

WuChenDi/MODNet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MODNet

Trimap-Free Portrait Matting in Real Time

ONNX export/inference tooling and a Transformers.js example for the MODNet portrait matting model.

Derived from the official ZHKKKe/MODNet repository. The original work is by its authors; this repository adds ONNX export/inference scripts and a Transformers.js usage example on top of it.

Links

Contents

Path Description
onnx_tools/ Export a MODNet checkpoint to ONNX and run inference with ONNX Runtime
examples/ Portrait matting in JS/TS via @huggingface/transformers
pretrained/ Location for downloaded pre-trained models
src/ MobileNetV2 backbone vendored from upstream MODNet (used by the ONNX pipeline)

Quick start

  • Web / Node.js — see examples/ to run matting with Transformers.js.
  • Python / ONNX — see onnx_tools/ to export a checkpoint and run ONNX Runtime inference.

About

ONNX export/inference and Transformers.js tooling for MODNet real-time trimap-free portrait matting

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages