You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The model used in the online demo (unpublished) is only **7M**! Process **2K** resolution image with a **Fast** speed on common PCs or Mobiles! **Beter** than research demos!
59
-
Please try online portrait image matting on [my personal homepage](https://zhke.io/#/?modnet_demo) for fun!
We provide two real-time portrait video matting demos based on WebCam. When using the demo, you can move the WebCam around at will.
77
-
If you have an Ubuntu system, we recommend you to try the [offline demo](demo/video_matting/webcam) to get a higher *fps*. Otherwise, you can access the [online Colab demo](https://colab.research.google.com/drive/1Pt3KDSc2q7WxFvekCnCLD8P0gBEbxm6J?usp=sharing).
78
-
We also provide an [offline demo](demo/video_matting/custom) that allows you to process custom videos.
We share some cool applications/extentions of MODNet built by the community.
86
-
87
-
<!-- - **WebGUI for Portrait Image Matting** -->
88
-
<!-- You can try [this WebGUI](https://www.gradio.app/hub/aliabd/modnet) (hosted on [Gradio](https://www.gradio.app/)) for portrait image matting from your browser without code! -->
89
-
90
-
-**Colab Demo of Bokeh (Blur Background)**
91
-
You can try [this Colab demo](https://colab.research.google.com/github/eyaler/avatars4all/blob/master/yarok.ipynb) (built by [@eyaler](https://github.com/eyaler)) to blur the backgroud based on MODNet!
92
-
93
-
-**ONNX Version of MODNet**
94
-
You can convert the pre-trained MODNet to an ONNX model by using [this code](onnx) (provided by [@manthan3C273](https://github.com/manthan3C273)). You can also try [this Colab demo](https://colab.research.google.com/drive/1P3cWtg8fnmu9karZHYDAtmm1vj1rgA-f?usp=sharing) for MODNet image matting (ONNX version).
95
-
96
-
-**TorchScript Version of MODNet**
97
-
You can convert the pre-trained MODNet to an TorchScript model by using [this code](torchscript) (provided by [@yarkable](https://github.com/yarkable)).
98
-
99
-
-**TensorRT Version of MODNet**
100
-
You can access [this Github repository](https://github.com/jkjung-avt/tensorrt_demos) to try the TensorRT version of MODNet (provided by [@jkjung-avt](https://github.com/jkjung-avt)).
101
-
102
-
-**Docker Container for MODnet**
103
-
You can access [this Github repository](https://github.com/nahidalam/modnet_docker) for a containerized version of MODNet with the Docker environment (provided by [@nahidalam](https://github.com/nahidalam)).
104
-
105
-
106
-
There are some resources about MODNet from the community.
107
-
-[Video from What's AI YouTube Channel](https://youtu.be/rUo0wuVyefU)
108
-
-[Article from Louis Bouchard's Blog](https://www.louisbouchard.ai/remove-background/)
109
-
110
-
111
-
## Code
112
-
We provide the [code](src/trainer.py) of MODNet training iteration, including:
113
-
-**Supervised Training**: Train MODNet on a labeled matting dataset
114
-
-**SOC Adaptation**: Adapt a trained MODNet to an unlabeled dataset
115
-
116
-
In code comments, we provide examples for using the functions.
117
-
118
-
119
-
## PPM Benchmark
120
-
The PPM benchmark is released in a separate repository [PPM](https://github.com/ZHKKKe/PPM).
121
-
122
-
123
-
## License
124
-
The code, models, and demos in this repository (excluding GIF files under the folder `doc/gif`) are released under the [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0) license.
0 commit comments