8f61e58847f3d70094e6f8622dd335d03d0c8242,RetinaFace/retinaface.py,RetinaFace,bbox_vote,#RetinaFace#Any#,569

Before Change


      //order = det[:, 4].ravel().argsort()[::-1]
      //det = det[order, :]
      if det.shape[0] == 0:
          dets = np.array([[10, 10, 20, 20, 0.002]])
          det = np.empty(shape=[0, 5])
      while det.shape[0] > 0:
          // IOU
          area = (det[:, 2] - det[:, 0] + 1) * (det[:, 3] - det[:, 1] + 1)

After Change


        return np.zeros( (0, 5) )
          //dets = np.array([[10, 10, 20, 20, 0.002]])
          //det = np.empty(shape=[0, 5])
      dets = None
      while det.shape[0] > 0:
          if dets is not None and dets.shape[0]>=750:
              break
          // IOU
          area = (det[:, 2] - det[:, 0] + 1) * (det[:, 3] - det[:, 1] + 1)
          xx1 = np.maximum(det[0, 0], det[:, 0])
          yy1 = np.maximum(det[0, 1], det[:, 1])
          xx2 = np.minimum(det[0, 2], det[:, 2])
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 7

Instances


Project Name: deepinsight/insightface
Commit Name: 8f61e58847f3d70094e6f8622dd335d03d0c8242
Time: 2019-10-15
Author: guojia@gmail.com
File Name: RetinaFace/retinaface.py
Class Name: RetinaFace
Method Name: bbox_vote


Project Name: HazyResearch/fonduer
Commit Name: 1d6771befb95f4ae94f308899633294a003dcfd6
Time: 2020-07-24
Author: hiromu.hota@hal.hitachi.com
File Name: src/fonduer/utils/data_model_utils/structural.py
Class Name:
Method Name: lowest_common_ancestor_depth


Project Name: HazyResearch/fonduer
Commit Name: 1d6771befb95f4ae94f308899633294a003dcfd6
Time: 2020-07-24
Author: hiromu.hota@hal.hitachi.com
File Name: src/fonduer/utils/data_model_utils/structural.py
Class Name:
Method Name: common_ancestor


Project Name: deepinsight/insightface
Commit Name: 24af8c5e2730c0f2d4c6cc6357a6528f4b529431
Time: 2019-10-15
Author: guojia@gmail.com
File Name: RetinaFace/retinaface.py
Class Name: RetinaFace
Method Name: bbox_vote