Git Product home page Git Product logo

willyfh / farl-face-segmentation Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 0.0 155 KB

A face segmentation implementation of FarRL model (CVPR 2022) using Facer, a face analysis toolkit for modern research.

Home Page: https://openaccess.thecvf.com/content/CVPR2022/papers/Zheng_General_Facial_Representation_Learning_in_a_Visual-Linguistic_Manner_CVPR_2022_paper.pdf

License: MIT License

Python 100.00%
artificial-intelligence computer-vision deep-learning face-parsing face-segmentation facer farl maching-learning face-analysis

farl-face-segmentation's Introduction

Face Segmentation of FaRL Model using Facer

A face segmentation implementation of FarRL model (CVPR 2022) using Facer, a face analysis toolkit for modern research.

The author of FaRL performed pre-training on LAION-FACE, a dataset containing a large amount of face image-text pairs. They then used the pretrained encoder, to extract the image features for training a downstream task, which also includes Face Parsing task. In this work, I utilize the FaRL model which was pretrained on the Face Parsing task, and then map the predicted labels (eyes, nose, mouth, etc.) into two separate labels, i.e., face and background.

Illustration of the FaRL Pretraining Framework

FaRL

Installation

conda create --name {name_env} python==3.8
conda activate {name_env}
pip install git+https://github.com/FacePerceiver/facer.git@main
pip install timm
pip install imutils

Usage

python face_segmentation.py --image_path sample/Shin-Eun-Soo.jpg

To display the list of available arguments:

python face_segmentation.py --help

Output

For left to right: segmented face image, extracted face mask, cropped face Shin-Eun-Soo_stackedsegmentation Shin-Tae-Yong_stackedsegmentation Willy-Fitra-Hendria_stackedsegmentation

farl-face-segmentation's People

Contributors

willyfh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

farl-face-segmentation's Issues

remove the hand over face

hi ,thanks for your job, I wonder can our model can remove the hand part when hands over face occluded suitation,and the speed is a little slow ,how to improve

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.