← 开源

Using modified BiSeNet for face parsing in PyTorch

ModelsVision modelsPython
增长势头
+024 小时新增 Star0.0%
2.60k
Star
496
Fork
+0
本周
1
贡献者
创建于 2019-04-18 · 更新于 2026-12-03 · 今日第 8907 名
主要开发者
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

排名相邻
同类项目

AI Rank iPhone 版

随时追踪 AI 模型榜单

在 App Store 下载