face_parsing

Official Pytorch implementation of 'RoI Tanh-polar Transformer Network for Face Parsing in the Wild.'

https://github.com/hhj1897/face_parsing

Science Score: 67.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 2 DOI reference(s) in README
  • Academic publication links
    Links to: arxiv.org, sciencedirect.com
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (12.8%) to scientific vocabulary

Keywords

face-parsing pytorch
Last synced: 6 months ago · JSON representation ·

Repository

Official Pytorch implementation of 'RoI Tanh-polar Transformer Network for Face Parsing in the Wild.'

Basic Info
  • Host: GitHub
  • Owner: hhj1897
  • License: mit
  • Language: Python
  • Default Branch: master
  • Homepage:
  • Size: 176 KB
Statistics
  • Stars: 219
  • Watchers: 5
  • Forks: 41
  • Open Issues: 3
  • Releases: 2
Topics
face-parsing pytorch
Created about 5 years ago · Last pushed over 3 years ago
Metadata Files
Readme License Citation

README.md

RoI Tanh-polar Transformer Network for Face Parsing in the Wild

Recent Updates

2022-04-02 Update: If you could not download the weights with LFS, check out issue https://github.com/hhj1897/face_parsing/issues/7#issuecomment-1086684106 for alternative downloading links.

2022-03-04 Update: We have released the FP-Age model which can perform face parsing and age estimation simultaneously, please visit https://github.com/ibug-group/fpage for details.


Official repo for our paper RoI Tanh-polar transformer network for face parsing in the wild.

Note: If you use this repository in your research, we kindly rquest you to cite the following paper: bibtex @article{lin2021roi, title = {RoI Tanh-polar transformer network for face parsing in the wild}, journal = {Image and Vision Computing}, volume = {112}, pages = {104190}, year = {2021}, issn = {0262-8856}, doi = {https://doi.org/10.1016/j.imavis.2021.104190}, url = {https://www.sciencedirect.com/science/article/pii/S0262885621000950}, author = {Yiming Lin and Jie Shen and Yujiang Wang and Maja Pantic}, keywords = {Face parsing, In-the-wild dataset, Head pose augmentation, Tanh-polar representation}, }

Dependencies

How to Install

bash git clone https://github.com/hhj1897/face_parsing cd face_parsing git lfs pull pip install -e .

How to Test

bash python face_warping_test.py -i 0 -e rtnet50 --decoder fcn -n 11 -d cuda:0 Command-line arguments: -i VIDEO: Index of the webcam to use (start from 0) or path of the input video file -d: Device to be used by PyTorch (default=cuda:0) -e: Encoder (default=rtnet50) --decoder: Decoder (default=fcn) -n: Number of facial classes, can be 11 or 14 for now (default=11)

iBugMask Dataset

The training and testing images, bounding boxes, landmarks, and parsing maps can be found in the following:

Label Maps

Label map for 11 classes: 0 : background 1 : skin (including face and scalp) 2 : left_eyebrow 3 : right_eyebrow 4 : left_eye 5 : right_eye 6 : nose 7 : upper_lip 8 : inner_mouth 9 : lower_lip 10 : hair

Label map for 14 classes: 0 : background 1 : skin (including face and scalp) 2 : left_eyebrow 3 : right_eyebrow 4 : left_eye 5 : right_eye 6 : nose 7 : upper_lip 8 : inner_mouth 9 : lower_lip 10 : hair 11 : left_ear 12 : right_ear 13 : glasses

Visualisation

Owner

  • Name: Jie Shen
  • Login: hhj1897
  • Kind: user
  • Location: London
  • Company: Meta

Citation (CITATION.cff)

@software{lin_face_parsing_github,
  author = {Lin, Yiming and Shen, Jie},
  title = {RoI Tanh-polar Transformer Network for Face Parsing in the Wild},
  url = {https://github.com/hhj1897/face_parsing/},
  year = {2021}
}

GitHub Events

Total
  • Watch event: 13
  • Issue comment event: 1
  • Fork event: 3
Last Year
  • Watch event: 13
  • Issue comment event: 1
  • Fork event: 3

Dependencies

requirements.txt pypi
  • numpy >=1.17.0
  • opencv-python >=3.4.2
  • scipy >=1.1.0
  • torch >=1.6.0
  • torchvision >=0.7.0