fix the input error in train_face_detector.