Skip to main content

DCiFR (Demographic Characteristics in Facial Recognition) is a wrapper software that allows you to run deep learning models to parse demographic characteristics from an image.

Project description

DCiFR

DCiFR (Demographic Characteristics in Facial Recognition) is a wrapper software that allows you to run deep learning models to parse demographic characteristics from an image. This open-source wrapper software written in Python has a GUI that will allow you to run complex models without any knowledge of coding. This includes functions from deepface and fairface and is built with PyQT5 to provide the GUI.

Getting Started

  1. If you do not already have Python installed, navigate to this link to install it.

  2. Download this repository to your local device.

  3. In the command line, change your working directory to <download path>.

  4. For initial run, enter the following in the command line.

  • Windows
dcifr.sh
  • Mac
sh dcifr.sh
  1. After the initial run, use the following code to run DCiFR.
python3 dcifr.py

DeepFace Attributes

Based on faces within images, DCIFR's DeepFace pipeline reports results of four attributes: age, emotion, gender, and race.

  • Age - Predicted age will fall between 0 - 100.
  • Emotion - One of seven possible emotions: Angry, Disgust, Fear, Happy, Sad, Surprise, Neutral.
  • Gender - Reports either man or woman.
  • Race - The software predicts the probability of falling into one of seven race categories: Asian, black, Indian, Latino/Hispanic, Middle Eastern, or white. The results show the racial category with the highest probability.

More information on the attributes and how they are modeled can be found here.

FairFace Attributes

Based on faces within images, DCiFR's FairFace pipeline reports results of eight attributes: race, race4, gender, age, race_scores_fair, race_scores_fair_4, gender_scores_fair, and age_scores_fair.

  • Race - Predicted probability of falling into one of seven race categories: White, Black, Latino_Hispanic, East Asian, Southeast Asian, Indian, or Middle Eastern.
  • Race4 - Predicted probability of falling into one of four race categories: White, Black, Asian, or Indian.
  • Gender - Reports either male or female.
  • Age - Predicted age will fall within the following ranges: 0-2, 3-9, 10-19, 20-29, 30-39, 40-49, 50-59, 60-69, or 70+.
  • Race_scores_fair - The model confidence score for predicting race.
  • Race_scores_fair_4 - The model confidence score for predicting race4.
  • Gender_scores_fair - The model confidence score for predicting gender.
  • Age_scores_fair - The model confidence score for predicting age.

More information on the attributes and how they are modeled can be found here.

Output

The results will be saved in a DCIFR folder within the user's Documents as dcifr_Deepface_results or dcifr_Fairface_results with the date and time of creation attached to the end of the file name.

Reference

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

dcifr-0.0.1.tar.gz (8.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dcifr-0.0.1-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

Details for the file dcifr-0.0.1.tar.gz.

File metadata

  • Download URL: dcifr-0.0.1.tar.gz
  • Upload date:
  • Size: 8.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

File hashes

Hashes for dcifr-0.0.1.tar.gz
Algorithm Hash digest
SHA256 e712d71a162626c991fe769906ca1ce5a1573b30ad496ba93874e66c139d98fa
MD5 cc92e26e5c6b21b86766885eae30e442
BLAKE2b-256 47ee13b92ea7004c7415a8cae9704822fb4711ead74cdc863b580c8480f90d2f

See more details on using hashes here.

File details

Details for the file dcifr-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: dcifr-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 8.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

File hashes

Hashes for dcifr-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f78e1e9ba8d8abe1336a9da5cb2f124bb4ab974759c3e9db67731e926225d3d3
MD5 0a0a64b5bcc7453a6684d172f80c3d7c
BLAKE2b-256 d1f7230bebb7cff6d483026cf94df2190ab0d8907a5e33f5679874d74addcb2f

See more details on using hashes here.

Supported by

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