Skip to content
Projets

zllrunning/face-parsing.PyTorch

Voir sur GitHub

zllrunning/face-parsing.PyTorch has 2,592 GitHub stars and 497 forks. GitHot measured 0 stars in 24 hours and -1 in 7 days. Last checked 2026-11-11 08:58 UTC. Last push 2023-05-21.

Comment ces chiffres sont mesurés

Using modified BiSeNet for face parsing in PyTorch

Progression mesurée des étoiles

in 24h
0
in 7 days
-1
in 15 days
Historique en cours
in 1 month
Historique en cours

Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.

README.md

Original

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 Original Input Original Input
Color Color Color

References

Explorer des projets similaires