An open API service indexing awesome lists of open source software.

https://github.com/nikhilroxtomar/u2-net-for-image-matting-in-tensorflow

This project showcases an implementation of the U2-Net architecture for Image Matting in the TensorFlow.
https://github.com/nikhilroxtomar/u2-net-for-image-matting-in-tensorflow

image-matting portrait-matting u2-net

Last synced: 5 months ago
JSON representation

This project showcases an implementation of the U2-Net architecture for Image Matting in the TensorFlow.

Awesome Lists containing this project

README

        

# U2-Net for Image Matting in TensorFlow

Welcome to the U2-Net for Image Matting in TensorFlow repository! This project showcases an implementation of the U2-Net architecture for image matting in the TensorFlow. The code includes the training process, making use of the Privacy-Preserving Portrait Matting Dataset (P3M-10k) to achieve accurate foreground extraction from images.

## Dataset
Privacy-Preserving Portrait Matting Dataset (P3M-10k) is used for training and validation process. P3M-10k contains 10421 high-resolution real-world face-blurred portrait images, along with their manually labeled alpha mattes.


Download the dataset:
- [Privacy-Preserving Portrait Matting Dataset (P3M-10k)](https://drive.google.com/uc?export=download&id=1LqUU7BZeiq8I3i5KxApdOJ2haXm-cEv1)
- [P3M-10k facemask (optional)](https://drive.google.com/file/d/1I-71PbkWcivBv3ly60V0zvtYRd3ddyYs/view?usp=sharing)

## Results
The sequence in the images below is as follows- `Input Image`, `Predicted Alpha Matte` and `Predicted Alpha Matte applied over Input Image`.


![](results/joint/photo-1494790108377-be9c29b29330.jpg)
![](results/joint/photo-1544723795-3fb6469f5b39.jpg)
![](results/joint/photo-1438761681033-6461ffad8d80.jpg)

## How to improve
- Train on more epochs.
- Increase the input image resolution.
- Apply data augmentation.
- Try new loss function.

## Contact
For more follow me on:

- YouTube
- Facebook
- Twitter
- Instagram
- Telegram