File Exchange

image thumbnail


version 1.0.0 (871 KB) by mugambi ndwiga
This code trains a CNN using a collection of facial images that are cropped and aligned. Verification with new images gives an accuracy of 8


Updated 11 Sep 2019

From GitHub

View license on GitHub

1. genderNet.m is the main script. It carries out loading; splitting into training and verification datasets; pre-processing; training; verification; and error analysis.

2. genderNetFun.m is a function to define the layers and parameters of the CNN.

3. Datasets is the dataset folders (I'm not sure whether it can be seen here but I'll upload it to guthub

4. myfun.m is the @readFun for the imagedatastore.

Dataset originally derived from

Cite As

mugambi ndwiga (2021). Facial-classification-using-CNN-and-MATLAB-according-to-gend (, GitHub. Retrieved .

Comments and Ratings (0)

MATLAB Release Compatibility
Created with R2018b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Inspired by: Age and Gender Estimation from Face

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!