This is a neural network implementation based on U-NET for generating hair segmentation masks on image & video data. Built for virtual try-on of beauty products.
- Architecture: U-Net network implemented with keras
- Training platform: Google colab T4 GPU
- Deployment Backend: Tensorflow JS on browser via webgl
- Input dataset: Sampled images from CelebA dataset and generated segmentation masks
- Execution speed: ~9 video frames per second
- main_unet.ipynb:- training script
- demo-app:- webapp for predicting on webcam & images
- dataset:- data preparation scripts
- converter.sh:- Tensorflow to TFJS model format converter
- Handle temporal inconsistency for videos
- Decrease prediction time