96ae969993c6f476314c2bfc639a67f83fe97239,utils/utils.py,,get_batch_statistics,#Any#Any#Any#,128

Before Change


                    continue

                ious = bbox_iou_numpy(np.expand_dims(pred_box, 0), target_boxes)
                iou, box_index = ious.max(1), ious.argmax(1)
                if iou >= iou_threshold and box_index not in detected_boxes:
                    true_positives[pred_i] = 1
                    detected_boxes += [box_index]

After Change


                if pred_label not in target_labels:
                    continue

                iou, box_index = bbox_iou(pred_box.unsqueeze(0), target_boxes).max(0)
                if iou >= iou_threshold and box_index not in detected_boxes:
                    true_positives[pred_i] = 1
                    detected_boxes += [box_index]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: eriklindernoren/PyTorch-YOLOv3
Commit Name: 96ae969993c6f476314c2bfc639a67f83fe97239
Time: 2019-04-26
Author: eriklindernoren@live.se
File Name: utils/utils.py
Class Name:
Method Name: get_batch_statistics


Project Name: rusty1s/pytorch_geometric
Commit Name: 84cf50939f5d7b382ec46e7e4255cb073f7898fc
Time: 2018-03-07
Author: janeric.lenssen@tu-dortmund.de
File Name: torch_geometric/nn/functional/pool/pool.py
Class Name:
Method Name: _pool


Project Name: maciejkula/spotlight
Commit Name: 70e4d7fe60a9658bb27b9f5fb67592a1222b2ec3
Time: 2017-07-06
Author: maciej.kula@gmail.com
File Name: spotlight/sequence/representations.py
Class Name: CNNNet
Method Name: user_representation