Executing Face PAD experiments¶
A. Single Channel PAD¶
Directly run the command spoof.py
with necessary parameters as generated in the commands.txt
. It is advisable to first run the PCA+LDA experiment for any channel. The preprocessed data will be re-used for other experiments of the same channel. If you wish to re-compute the preprocessed data for each experiment, edit the settings from config.ini.
B. Feature Fusion¶
The commands assume that extracted features from constituent channels are precomputed (and stored in folders defined in commands.txt). Commands include script to fuse features from script
folder, followed by training classifiers, and their evaluation.
C. Score Fusion¶
The commands assume that scores from constituent channels are precomputed (and stored in folders defined in commands.txt). Commands include script to fuse scores, followed by training classifiers, and their evaluation.
D. Cross Validation¶
The set of commands in the commands.txt first computes the extracted features at once. Then it provides commands to train and evaluate the PAD methods for 5 folds.
Note: Whenever you are working with already preprocessed data, you may use the corresponding flags in spoof.py
command to avoid invoking the preprocessing commands.