Skip to content

Semantic segmentation for hair, face and background

Notifications You must be signed in to change notification settings

kampta/face-seg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Semantic segmentation for hair, face and background

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages