zllrunning/face-parsing.PyTorch
zllrunning/face-parsing.PyTorch has 2,592 GitHub stars and 497 forks. GitHot measured 0 stars in 24 hours. Last checked 2026-11-08 19:23 UTC. Last push 2023-05-21.
Using modified BiSeNet for face parsing in PyTorch
Measured star growth
- in 24h
- 0
- in 7 days
- Collecting history
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
Originalface-parsing.PyTorch
Contents
Training
Prepare training data: -- download CelebAMask-HQ dataset
-- change file path in the
prepropess_data.pyand run
python prepropess_data.py
- 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
- Evaluate the trained model using:
# evaluate using GPU
python test.py
Face makeup using parsing maps
| Hair | Lip | |
|---|---|---|
| Original Input | ![]() |
![]() |
| Color | ![]() |
![]() |
References
Explore related projects
tensorflow/tensorflow
An Open Source Machine Learning Framework for Everyone
201,388 starshuggingface/transformers
🤗 Transformers: the model-definition framework for state-of-the-art machine learning models in text, vision, audio, and multimodal models, for both inference and training.
168,636 starsAUTOMATIC1111/stable-diffusion-webui
Stable Diffusion web UI
165,251 starsComfy-Org/ComfyUI
The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
145,629 stars



