Hair Mask RCNN using matterport model
$ pip install -r requirements.txt
.
|
|── dataset
│ |── train
│ |── val
|── mask_rcnn_hair_0200.h5
|── run.py
To train run
$ python3 run.py train --dataset=path/to/dataset --weights=path/to/weights
For example to start training from the coco model
$ python3 run.py train --dataset=./data/dataset --weights=coco
Or to continue training from custom weights(for example project weights)
$ python3 run.py train --dataset=./data/dataset --weights=~/proj/Hair-Detection/data/weights/mask_rcnn_hair_0200.h5
Run this command on an image
$ python3 run.py mask --image=path/to/image --weights=path/to/weights
The image is saved into the project directory
Figaro-1k: It contains 1050 unconstrained view images with persons, subdivided into seven different hairstyles classes (straight, wavy, curly, kinky, braids, dreadlocks, short), where each image is provided with the related manually segmented hair mask.