• Stars
    star
    124
  • Rank 288,207 (Top 6 %)
  • Language
    Python
  • Created almost 6 years ago
  • Updated over 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Semantic segmentation for hair, face and background

Face Segmentation

Semantic segmentation for hair, face and background

Barebones version of this repository.

Dataset

Labeled faces in the wild. Get it from here.

Training

python train.py \
    --data-folder data/lfw \
    --pre-trained weights/mobilenet_v2.pth.tar \
    --output-folder scratch/ \
    --num-epochs=50 \
    --batch-size=32

Testing

python test.py --data-folder data/samples/ --pre-trained checkpoints/model.pt

Results

alt text