https://github.com/610265158/modnet
A Trimap-Free Portrait Matting Solution in Real Time [AAAI 2022]
Science Score: 10.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
○codemeta.json file
-
○.zenodo.json file
-
○DOI references
-
✓Academic publication links
Links to: arxiv.org -
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (10.6%) to scientific vocabulary
Last synced: 10 months ago
·
JSON representation
Repository
A Trimap-Free Portrait Matting Solution in Real Time [AAAI 2022]
Basic Info
Statistics
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
- Releases: 0
Fork of ZHKKKe/MODNet
Created about 4 years ago
· Last pushed about 4 years ago
https://github.com/610265158/MODNet/blob/master/
MODNet: Trimap-Free Portrait Matting in Real Time
MODNet: Real-Time Trimap-Free Portrait Matting via Objective Decomposition (AAAI 2022)
MODNet is a model for real-time portrait matting with only RGB image inputMODNetRGB
Online Application () | Research Demo | AAAI 2022 Paper | Supplementary Video
Community | Code | PPM Benchmark | License | Acknowledgement | Citation | Contact
--- ## Online Application () A **Single** model! Only **7M**! Process **2K** resolution image with a **Fast** speed on common PCs or Mobiles! **Beter** than research demos! Please try online portrait image matting via [this website](https://sight-x.cn/portrait_matting) or on [my personal homepage](https://zhke.io/#/?modnet_demo)! ******7M**PC******2K****** [](https://sight-x.cn/portrait_matting)[](https://zhke.io/#/?modnet_demo) ## 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. ## Community We share some cool applications/extentions of MODNet built by the community. - **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! - **ONNX Version of MODNet** 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). - **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)). - **Docker Container for MODnet** 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)). 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 code comments, we provide examples for using the functions. ## PPM Benchmark The PPM benchmark is released in a separate repository [PPM](https://github.com/ZHKKKe/PPM). ## License 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. ## Acknowledgement - We thank [@yzhou0919](https://github.com/yzhou0919), [@eyaler](https://github.com/eyaler), [@manthan3C273](https://github.com/manthan3C273), [@yarkable](https://github.com/yarkable), [@jkjung-avt](https://github.com/jkjung-avt), [@manzke](https://github.com/manzke), [@nahidalam](https://github.com/nahidalam), [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 If this work helps your research, please consider to cite: ```bibtex @InProceedings{MODNet, author = {Zhanghan Ke and Jiayu Sun and Kaican Li and Qiong Yan and Rynson W.H. Lau}, title = {MODNet: Real-Time Trimap-Free Portrait Matting via Objective Decomposition}, booktitle = {AAAI}, year = {2022}, } ``` ## Contact This repository is maintained by Zhanghan Ke ([@ZHKKKe](https://github.com/ZHKKKe)). For questions, please contact `kezhanghan@outlook.com`.![]()
Owner
- Name: Lz
- Login: 610265158
- Kind: user
- Location: CN
- Repositories: 2
- Profile: https://github.com/610265158
I am looking for a job now, contact me if got any opportunity.