MVL Face Datasets is a collection of image processing pipelines written in MATLAB that generate variations of well-known face datasets. The current collection includes following pipelines:
-
KDEF-masked pipeline generates masked face images from the Karolinska Directed Emotional Faces (KDEF) dataset.
-
CFD-masked pipeline generates masked face images from the Chicago Face Database (CFD).
-
CFD-cutout pipeline generates color, grayscale, and lightness-matched face-cutout images from the CFD.
All pipelines rely on MatConvNet 1.0-beta25 and OpenFace 2.2.0 for facial landmark detection. CFD-cutout pipeline uses SHINE toolbox to match lightness histograms across images.
Before running each pipeline, please run the following script to download and set up required libraries (MatConvNet, OpenFace, and SHINE toolbox):
>> Step0_Libraries
Pipelines can be found under the pipelines/
directory.
To generate masked face images from KDEF:
- Download
KDEF_and_AKDEF.zip
file from https://www.kdef.se and unpack it. - Copy
KDEF/
directory and paste it underpipelines/KDEF-masked/
directory. - Change the MATLAB working directory to the
pipelines/KDEF-masked/
directory. - Run the following scripts:
>> Step1_PrepareImages
>> Step2_DetectLandmarks
>> Step3_BuildDataset
- Please check
imgs-dataset/
directory for masked face images,dataset.xlsx
anddataset.mat
files for the map of image names for each model × expression × angle.
To generate masked face images from CFD:
- Download
cfd.zip
file from https://www.chicagofaces.org and unpack it. - Copy
CFD/
directory (found underCFD Version 3.0/Images/
) directory and paste it underpipelines/CFD-masked/
directory. - Change the MATLAB working directory to the
pipelines/CFD-masked/
directory. - Run the following scripts:
>> Step1_PrepareImages
>> Step2_DetectLandmarks
>> Step3_BuildDataset
- Please check imgs-dataset/ directory for masked face images, dataset.xlsx and dataset.mat files for the list of image names for each model.
To generate face-cutout images from CFD:
- Download
cfd.zip
file from https://www.chicagofaces.org and unpack it. - Copy
CFD/
directory (found underCFD Version 3.0/Images/
) directory and paste it underpipelines/CFD-cutout/
directory. - Change the MATLAB working directory to the
pipelines/CFD-cutout/
directory. - Run the following scripts:
>> Step1_PrepareImages
>> Step2_DetectLandmarks
>> Step3_CutoutImages
>> Step4_BuildDataset
- Please check imgs-dataset/ directory for face-cutout images, dataset.xlsx and dataset.mat files for the list of image names for each model.
This work was supported by the National Research Foundation of Korea (NRF) grant funded by the Korea government (Ministry of Science and ICT) (No. 2022R1C1C1008628).