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

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 https://www.mathworks.com/matlabcentral/fileexchange/72577-age-and-gender-estimation-from-face

Cite As

mugambi ndwiga (2024). Facial-classification-using-CNN-and-MATLAB-according-to-gend (https://github.com/zombimann/Facial-classification-using-CNN-and-MATLAB-according-to-gender), GitHub. Retrieved .

MATLAB Release Compatibility
Created with R2018b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Find more on Recognition, Object Detection, and Semantic Segmentation in Help Center and MATLAB Answers

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!

Versions that use the GitHub default branch cannot be downloaded

Version Published Release Notes

To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.