Skip to main content

A module to run facexformer model as pipeline

Project description

FaceXFormer Pipeline Implementation

This repository contains the easy-to-use pipeline implementation of the FaceXFormer, a unified transformer model for comprehensive facial analysis, as described in the paper by Kartik Narayan et al. from Johns Hopkins University.

Here is official code repo : https://github.com/Kartik-3004/facexformer

What is it

You can use FaceXFormer to extract

  • landmarks
  • headpose orientation
  • various attributes
  • visibility
  • age-gender-race information really fast and from unified model. And you can do it really fast(37 FPS).

Installation

pip install facexformer_pipeline 

Usage

To use the FaceXFormer pipeline, follow these steps:

#Import the pipeline class:

from facexformer_pipeline import FacexformerPipeline

#Initialize the pipeline with desired tasks:
pipeline = FacexformerPipeline(debug=True, tasks=['headpose', 'landmark', 'attributes'])


#Run the model on an image:
results = pipeline.run_model(image_array)

#Access the results:
print(results['headpose'])
print(results['landmark_list'])

Acknowledgements

This implementation is based on the research done by Kartik Narayan and his team at Johns Hopkins University. All credit for the conceptual model and its validation belongs to them.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

facexformer_pipeline-0.2.0.tar.gz (12.3 kB view hashes)

Uploaded Source

Built Distribution

facexformer_pipeline-0.2.0-py3-none-any.whl (13.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page