diff --git a/README.md b/README.md index 983ea51..6d7a0f8 100644 --- a/README.md +++ b/README.md @@ -1,56 +1,100 @@ -
++ Commercial Solution (商用方案) | + Research Demo | Arxiv Preprint | Supplementary Video
-WebCam Video Demo [Offline][Colab] | Custom Video Demo [Offline] | - Image Demo [WebGUI][Colab] + Community | + Code | + PPM Benchmark | + License | + Acknowledgement | + Citation | + Contact
-
+
+
+
+The commercial API interface for **portrait image matting** will be available soon.
+用于**图片抠像**的商用API接口即将推出。
+
+If you are interest in a **portrait image matting SDK**, please contact `bussiness@sight-x.com`.
+如果您对**图片抠像SDK**感兴趣,请联系`bussiness@sight-x.com`。
-## Demos
+### Portrait Video Matting Solution (视频抠像方案)
-### Video Matting
+Stay tuned.
+敬请期待。
+
+
+---
+
+
+## Research Demo
+
+All the models behind the following demos are trained on the datasets mentioned in [our paper](https://arxiv.org/pdf/2011.11961.pdf).
+
+### Portrait Image Matting
+We provide an [online Colab demo](https://colab.research.google.com/drive/1GANpbKT06aEFiW-Ssx0DQnnEADcXwQG6?usp=sharing) for portrait image matting.
+It allows you to upload portrait images and predict/visualize/download the alpha mattes.
+
+
+
+### Portrait Video Matting
We provide two real-time portrait video matting demos based on WebCam. When using the demo, you can move the WebCam around at will.
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).
We also provide an [offline demo](demo/video_matting/custom) that allows you to process custom videos.
-
+
-### Image Matting
-We provide an [online Colab demo](https://colab.research.google.com/drive/1GANpbKT06aEFiW-Ssx0DQnnEADcXwQG6?usp=sharing) for portrait image matting.
-It allows you to upload portrait images and predict/visualize/download the alpha mattes.
+## Community
-
+We share some cool applications/extentions of MODNet built by the community.
-
-### Community
-Here we share some cool applications/extentions of MODNet built by the community.
-
-- **WebGUI for Image Matting**
-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!
-
+- **WebGUI for Portrait Image Matting**
+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!
- **Colab Demo of Bokeh (Blur Background)**
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
- **TorchScript Version of MODNet**
You can convert the pre-trained MODNet to an TorchScript model by using [this code](torchscript) (provided by [@yarkable](https://github.com/yarkable)).
+- **TensorRT Version of MODNet**
+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)).
+
+
+There are some resources about MODNet from the community.
+- [Video from What's AI YouTube Channel](https://youtu.be/rUo0wuVyefU)
+- [Article from Louis Bouchard's Blog](https://www.louisbouchard.ai/remove-background/)
+
## Code
We provide the [code](src/trainer.py) of MODNet training iteration, including:
- **Supervised Training**: Train MODNet on a labeled matting dataset
- **SOC Adaptation**: Adapt a trained MODNet to an unlabeled dataset
-In the function comments, we provide examples of how to call the function.
+In the code comments, we provide examples for using the functions.
-## TODO
-- Release the code of One-Frame Delay
-- Release PPM-100 validation benchmark (**Delayed, But On The Way...**)
-**NOTE**: PPM-100 is a **validation set**. Our training set will not be published.
+## PPM Benchmark
+The PPM benchmark will be released in a separate repository [PPM](https://github.com/ZHKKKe/PPM).
## License
-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.
+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.
+The license will be changed to allow commercial use after our paper is accepted.
-**NOTE**: The license will be changed to allow commercial use after this work is accepted by a conference or a journal.
-## Acknowledgement
-- We thank [City University of Hong Kong](https://www.cityu.edu.hk/) and [SenseTime](https://www.sensetime.com/) for their support to this project.
+## Acknowledgement
- We thank
- [the Gradio team](https://github.com/gradio-app/gradio), [@eyaler](https://github.com/eyaler), [@manthan3C273](https://github.com/manthan3C273), [@yarkable](https://github.com/yarkable),
-for their contributions to this repository or their cool applications based on MODNet.
+ [@eyaler](https://github.com/eyaler), [@manthan3C273](https://github.com/manthan3C273), [@yarkable](https://github.com/yarkable), [@jkjung-avt](https://github.com/jkjung-avt),
+ [the Gradio team](https://github.com/gradio-app/gradio), [What's AI YouTube Channel](https://www.youtube.com/channel/UCUzGQrN-lyyc0BWTYoJM_Sg), [Louis Bouchard's Blog](https://www.louisbouchard.ai),
+for their contributions to this repository or their cool applications/extentions/resources of MODNet.
## Citation
@@ -103,5 +153,6 @@ If this work helps your research, please consider to cite:
## Contact
-This project is currently maintained by Zhanghan Ke ([@ZHKKKe](https://github.com/ZHKKKe)).
-If you have any questions, please feel free to contact `kezhanghan@outlook.com`.
+This repository is currently maintained by Zhanghan Ke ([@ZHKKKe](https://github.com/ZHKKKe)).
+For commercial questions, please contact `bussiness@sight-x.com`.
+For research questions, please contact `kezhanghan@outlook.com`.
diff --git a/doc/gif/commercial_image_matting_model_result.gif b/doc/gif/commercial_image_matting_model_result.gif
new file mode 100644
index 0000000..ea0f14b
Binary files /dev/null and b/doc/gif/commercial_image_matting_model_result.gif differ
diff --git a/doc/gif/commercial_image_matting_website.gif b/doc/gif/commercial_image_matting_website.gif
new file mode 100644
index 0000000..e123fc6
Binary files /dev/null and b/doc/gif/commercial_image_matting_website.gif differ