18b040f951c70d1788034866086b9115f5ffc4df,src/align/align_celeb.py,,main,#Any#,58
Before Change
v = datamap.get(person, None)
if v is None:
continue
if not img_id in v[1]:
continue
labelid = v[0]
img_str = base64.b64decode(vec[-1])
nparr = np.fromstring(img_str, np.uint8)
img = cv2.imdecode(nparr, cv2.CV_LOAD_IMAGE_COLOR)
After Change
_bb = fimage.bbox
_minsize = min( [_bb[2]-_bb[0], _bb[3]-_bb[1], img.shape[0]//2, img.shape[1]//2] )
else:
_minsize = min(img.shape[0]//5, img.shape[1]//5)
bounding_boxes, points = detect_face.detect_face(img, _minsize, pnet, rnet, onet, threshold, factor)
bindex = -1
nrof_faces = bounding_boxes.shape[0]
if fimage.bbox is None and nrof_faces>0:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances Project Name: deepinsight/insightface
Commit Name: 18b040f951c70d1788034866086b9115f5ffc4df
Time: 2018-02-07
Author: guojia@gmail.com
File Name: src/align/align_celeb.py
Class Name:
Method Name: main
Project Name: chartbeat-labs/textacy
Commit Name: eaaf2bad32af4bda1a98d434530926bb6a001230
Time: 2019-08-23
Author: burtdewilde@gmail.com
File Name: textacy/augmentation/transformations.py
Class Name:
Method Name: insert_synonyms
Project Name: deepinsight/insightface
Commit Name: bc4b9dc684ea554fc07be8dedf1a4111fcb2a357
Time: 2018-02-07
Author: guojia@gmail.com
File Name: src/align/align_celeb.py
Class Name:
Method Name: main