In addition to what Peter mentioned here is a few more things to consider.
The face in the photo should be front facing or nearly so. Also very important is that the lighting is even. So if one side of the face is darker then the other it is best to correct that before using the photo.
Preferably, hair should not cover the face in order for the AI to better determine the contour (shape) of the face.