Skip to main content

Gender Classification by LUT based boosting of Overlapping Block Patterns

This package provides the source code to run the experiments published in the Paper Gender Classification by LUT based boosting of Overlapping Block Patterns. The gender classification pipeline consists of two main steps: feature extraction and classification. OBP features are used in our method along with boosting of look-up tables as weak classifiers. This package relies on Bob to execute both feature extraction and classification.

Installation:

This package uses several Bob libraries, which will be automatically installed locally using the command lines as listed below. However, in order for the Bob packages to compile, certain Dependencies need to be installed.

This package

The installation of this package relies on the BuildOut system. By default, the command line sequence:

$ python bootstrap-buildout.py
$ ./bin/buildout

should download and install all required packages of Bob in the versions that we used to produce the results. Other versions of the packages might generate sightly different results.

Databases

Experiments are executed based on two publicly available image databases. The evaluation protocols for both databases are included into this package:

The Experiments:

Protocol:

The test are performed on two face data sets: MOBIO and Labeled Faces in Wild (LFW).

  1. MOBIO: The evaluation protocol we use consists of training, development and test sets. The number of images in each set are: 9598 in Training set, 9586 in Development set and 9592 in Test set.

  2. LFW: The data set consists of more than 13,000 images collected from web. The images are split into 5 non-overlapping partitions and on each test round four partition are used for training and the fifth one is used for testing. The accuracy is reported as the mean over the five sets.

Algorithms:

The following algorithms are implemented:

  • PCA + LDA: PCA is used with 98% variance and Linear Discriminant Analysis is used as the classifier.

  • LBPHS + LDA: Uniform Local Binary Patterns (LBP) features are extracted from the images by dividing it into 6x6 cells. The LBP features from different cells are concatenated and the same PCA + LDA classifier is used.

  • MB-LBP + LUT Boosting: Multi Block- LBP features of square shape are extracted from face images. The block size is varied from 1 to 7. The features are boosted with LUT as the weak classifier.

  • OBP + LUT Boosting: OBP features of square shape are extracted from the images. The block size is varied from 1 to 7. The features are boosted with LUT as the weak classifier.

  • LBP + LUT Boosting (not part of the paper): LPB features in a single scale are extracted from the images. The features are boosted with LUT as the weak classifier.

User Guide:

To reproduce the results from the paper use the following commands:

  1. Image preprocessing:

    $ ./bin/preprocess.py -d mobio -i <MOBIO-IMAGE-DIRECTORY> -a <MOBIO-ANNOTATION-DIRECTORY> -vv
    $ ./bin/preprocess.py -d lfw -i <LFW-FUNNELED-IMAGE-DIRECTORY> -a <LFW-FUNNELED-ANNOTATION-DIRECTORY> -vv
  2. PCA+LDA on raw pixel values:

    $ ./bin/pca_lda.py -d mobio lfw -vv
  3. PCA+LDA on LBPHS features:

    $ ./bin/pca_lda.py -d mobio lfw -vv -l
  4. Boosting with three types of features: MB-LBP, OBP, and LBP (just for comparison, not in the paper):

    $ ./bin/lbp_boosting.py -d mobio lfw -vv
    $ ./bin/lbp_boosting.py -d mobio lfw -vv -o
    $ ./bin/lbp_boosting.py -d mobio lfw -vv -b 1
  5. Evaluation:

    $ ./bin/evaluate.py -d mobio lfw -vv

The last command will print out the results as they are reported in Table 1 of the Paper and generate the ROC curves as shown in Figure 5 of the Paper.

Metadata

Release files for bob.paper.SCIA2015 2.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bob.paper.SCIA2015 2.0.4
File Size Uploaded Provenance Actions
bob.paper.SCIA2015-2.0.4.zip 2.1 MB Without provenance Details for bob.paper.SCIA2015-2.0.4.zip

Release files / bob.paper.SCIA2015-2.0.4.zip

Download URL bob.paper.SCIA2015-2.0.4.zip
Size 2.1 MB
Tags Source
SHA-256 checksum
How to use checksums
ca0ab2e25f42470e2f0973b7088cadbdc135eb7fada303c6d5eea2079245ebf6
BLAKE2b-256 checksum
How to use checksums
ca999e32378386cd83ee8bcafcda64b4031d23526cb5028067adebb70b751766
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for bob.paper.SCIA2015 2.0.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2.0.4 This release

1 release file No provenance

1.0.0

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page