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)
Built Distribution
Close
Hashes for facexformer_pipeline-0.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3cc8da4ab681f128071c281d2b9e7feee9e786f35da4e42818c3e91e52b98f5c |
|
MD5 | e594773cce1d63d6e1b344098efc4fcf |
|
BLAKE2b-256 | 298342c2a43e62c669965a4d24df27d3ec5b577a53155d7fef0d8875ec2b895f |
Close
Hashes for facexformer_pipeline-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 90447d8da4a85e8a039001fb7ad97090277fa40ce3804620b712358f290d0c16 |
|
MD5 | b47bb3bfffb6fe1d1d217596f1232be6 |
|
BLAKE2b-256 | a38edb27defcd59f91940ae1fe0089a22427a7974bf28fae70bd3a7cdfafd4c4 |