Error Message: 'cv2' has no attribute 'face'!

Actually after restarting the jupyter notebook it worked for me.