Moving the face validation to CNN regressor for the Matlab version of the code.