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
We provide two real-time portrait video matting demos based on WebCam. When using the demo, you can move the WebCam around at will.
35
-
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).
36
-
We also provide an [offline demo](demo/video_matting/custom) that allows you to process custom videos.
We provide two real-time portrait video matting demos based on WebCam. When using the demo, you can move the WebCam around at will.
86
+
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).
87
+
We also provide an [offline demo](demo/video_matting/custom) that allows you to process custom videos.
Here we share some cool applications/extentions of MODNet built by the community.
94
+
We share some cool applications/extentions of MODNet built by the community.
50
95
51
-
-**WebGUI for Image Matting**
52
-
You can try [this WebGUI](https://www.gradio.app/hub/aliabd/modnet) (hosted on [Gradio](https://www.gradio.app/)) for portrait matting from your browser without code!
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!
54
98
55
99
-**Colab Demo of Bokeh (Blur Background)**
56
100
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!
@@ -61,31 +105,37 @@ You can convert the pre-trained MODNet to an ONNX model by using [this code](onn
61
105
-**TorchScript Version of MODNet**
62
106
You can convert the pre-trained MODNet to an TorchScript model by using [this code](torchscript) (provided by [@yarkable](https://github.com/yarkable)).
63
107
108
+
-**TensorRT Version of MODNet**
109
+
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)).
110
+
111
+
112
+
There are some resources about MODNet from the community.
113
+
-[Video from What's AI YouTube Channel](https://youtu.be/rUo0wuVyefU)
114
+
-[Article from Louis Bouchard's Blog](https://www.louisbouchard.ai/remove-background/)
115
+
64
116
65
117
## Code
66
118
We provide the [code](src/trainer.py) of MODNet training iteration, including:
67
119
-**Supervised Training**: Train MODNet on a labeled matting dataset
68
120
-**SOC Adaptation**: Adapt a trained MODNet to an unlabeled dataset
69
121
70
-
In the function comments, we provide examples of how to call the function.
122
+
In the code comments, we provide examples for using the functions.
71
123
72
124
73
-
## TODO
74
-
- Release the code of One-Frame Delay
75
-
- Release PPM-100 validation benchmark (**Delayed, But On The Way...**)
76
-
**NOTE**: PPM-100 is a **validation set**. Our training set will not be published.
125
+
## PPM Benchmark
126
+
The PPM benchmark will be released in a separate repository [PPM](https://github.com/ZHKKKe/PPM).
77
127
78
128
79
129
## License
80
-
This project (**code, pre-trained models, demos, *etc.***) is released under the [Creative Commons Attribution NonCommercial ShareAlike 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/legalcode) license.
130
+
All resources in this repository (code, models, demos, *etc.*) are released under the [Creative Commons Attribution NonCommercial ShareAlike 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/legalcode) license.
131
+
The license will be changed to allow commercial use after our paper is accepted.
81
132
82
-
**NOTE**: The license will be changed to allow commercial use after this work is accepted by a conference or a journal.
83
133
84
-
## Acknowledgement
85
-
- We thank [City University of Hong Kong](https://www.cityu.edu.hk/) and [SenseTime](https://www.sensetime.com/) for their support to this project.
0 commit comments