5cc55a742a1230dd87d803d4c9127cd945c9db83,autokeras/pretrained/face_detector.py,FaceDetector,predict,#FaceDetector#Any#Any#,624
Before Change
if not os.path.exists(img_path):
raise ValueError("Image does not exist")
return detect_faces(self.pnet, self.rnet, self.onet, img_path, output_file_path)
After Change
if not os.path.exists(img_path):
raise ValueError("Image does not exist")
img = cv2.imread(img_path)
img_bg = cv2.cvtColor(img, cv2.COLOR_BGR2RGB)
bounding_boxes, landmarks = self.detect_face(img)
if output_file_path is not None:
vis_face(img_bg, bounding_boxes, output_file_path, landmarks)
return bounding_boxes, landmarks
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: jhfjhfj1/autokeras
Commit Name: 5cc55a742a1230dd87d803d4c9127cd945c9db83
Time: 2019-01-07
Author: yashwanth95tuniki@gmail.com
File Name: autokeras/pretrained/face_detector.py
Class Name: FaceDetector
Method Name: predict
Project Name: keras-team/autokeras
Commit Name: 5cc55a742a1230dd87d803d4c9127cd945c9db83
Time: 2019-01-07
Author: yashwanth95tuniki@gmail.com
File Name: autokeras/pretrained/face_detector.py
Class Name: FaceDetector
Method Name: predict
Project Name: open-mmlab/mmcv
Commit Name: a0506ec5605f23e4bd5a0fe63d08aedd28420e33
Time: 2020-02-15
Author: innerlee@users.noreply.github.com
File Name: mmcv/image/transforms/normalize.py
Class Name:
Method Name: imnormalize