← Open Source

Using modified BiSeNet for face parsing in PyTorch.

ModelsVision modelsPython
Momentum
+0stars in 24 hours0.0%
2.60k
Stars
496
Forks
+0
This week
1
Contributors
Created 2019-04-18 · Updated 2026-12-03 · #10050 today
Top developers
README

face-parsing.PyTorch

Contents

Training

  1. Prepare training data: -- download CelebAMask-HQ dataset

    -- change file path in the prepropess_data.py and run

python prepropess_data.py
  1. Train the model using CelebAMask-HQ dataset: Just run the train script:
    $ CUDA_VISIBLE_DEVICES=0,1 python -m torch.distributed.launch --nproc_per_node=2 train.py

If you do not wish to train the model, you can download our pre-trained model and save it in res/cp.

Demo

  1. Evaluate the trained model using:
# evaluate using GPU
python test.py

Face makeup using parsing maps

face-makeup.PyTorch

  Hair Lip
Original Input
Color

References

Nearby in the ranking
Similar items

AI Rank for iPhone

Follow AI model rankings

Download on the App Store