Efficient face detection by leveraging knowledge from large-scale photos