a7706fbde22887909db42f96a696437c084c05db,chainercv/evaluations/eval_detection_voc.py,,eval_detection_voc,#Any#Any#Any#Any#Any#Any#Any#Any#,11

Before Change


            for bb in pred_bbox_l:
                if len(gt_bbox_l) > 0:
                    iou = bbox_iou(gt_bbox_l, bb[np.newaxis])
                    gt_idx = iou.argmax()
                    iou = iou[gt_idx]
                else:
                    iou = -np.inf

                if iou >= iou_thresh:

After Change



            if len(pred_bbox_l) == 0:
                continue
            if len(gt_bbox_l) == 0:
                match[l].extend((0,) * pred_bbox_l.shape[0])
                continue

            // VOC evaluation follows integer typed bounding boxes.
            pred_bbox_l = pred_bbox_l.copy()
            pred_bbox_l[:, 2:] += 1
            gt_bbox_l = gt_bbox_l.copy()
            gt_bbox_l[:, 2:] += 1

            iou = bbox_iou(pred_bbox_l, gt_bbox_l)
            gt_index = iou.argmax(axis=1)
            match_ = iou.max(axis=1) >= iou_thresh
            del iou

            selec = np.zeros(gt_bbox_l.shape[0], dtype=bool)
            for gt_idx, mc in six.moves.zip(gt_index, match_):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: chainer/chainercv
Commit Name: a7706fbde22887909db42f96a696437c084c05db
Time: 2017-05-31
Author: Hakuyume@users.noreply.github.com
File Name: chainercv/evaluations/eval_detection_voc.py
Class Name:
Method Name: eval_detection_voc


Project Name: asyml/texar
Commit Name: 348fe606caf81291f9122e3d0cd68868009e181d
Time: 2018-01-03
Author: 695742297@qq.com
File Name: examples/cartpole.py
Class Name:
Method Name:


Project Name: autonomio/talos
Commit Name: c7519c70be11a967e708ee4095710300c19a2fd8
Time: 2018-08-21
Author: hugorosen@macbook-pro-de-hugo.home
File Name: talos/metrics/score_model.py
Class Name:
Method Name: get_score