This script uses https://github.com/ageitgey/face_recognition together with the model trained by juan-csv, that can be found at https://github.com/juan-csv/face_recognition_occlusion, to implement face recognition (using KNN classifier) that works with oclussion faces. With you have an mask/unmasked dataset, please contact me.