Giter Club home page Giter Club logo

gender_classification's Introduction

STEP 1
------
Extract faces by running Face_detection_image_cropping.m on all the images in the folder. Resulting 250ร—250 Images are saved in ./LFW_Cropping/Training/
Requires Image processing toolbox
Requires ./LFW/ directory containing male images
Requires ./LFW_dataset/Training/female directory containing female images
- Creates ./LFW_Cropping/Training/male/ directory containing the extracted male faces
- Creates ./LFW_Cropping/Training/female/ directory containing the extracted female faces

STEP 2
------
Preprocess each image by running Face_image_reading_and_preprocessing.m
Requires Image processing toolbox
Requires folder ./LFW_Cropping/Training/, which it assumes contains subdirectores male/ and female/
Preprocessing consists of
1. Conversion to Grayscale
2. Histogram equalization (normalization)
3. Scale to 80ร—80
4. convert to vectors of 6400 columns
5. Each vector saved as row of matrix X
6. Labels are stored in linear vector Y
	Y[i] = 1 if X[i,:] corresponds to a male image
	Y[i] = 2 if X[i,:] corresponds to a female image
7. Creates ./LFW_faces.mat containing X and Y

STEP 3
------
run compute_PCA
Requires ./LFW_faces.mat 
Creates ./LFW_Face Detection/

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.