Implement some hair segmentation network and a color similarity calculating method.
!! update ported some of the network to pytorch for it's easier to convert to ncnn. Check it here: mobile phone portrait matting
Implement some light weight hair segmentation network with keras which can be used on mobile devices easily.
Matting methods used channel split operation which is unportable to CoreML as I wrote.
I have also use this model to predict hair color with tensorflow serving. Follow instructions bellow.
python serving/keras_to_serving.py
generate model used for tensorflow serving deployment.