472796edf924009e92c6b6d53c40a168ac12cec6,utils.py,,non_max_suppression,#,41

Before Change


        // Detections ordered as (x1, y1, x2, y2, obj_conf, class_conf, class_pred)
        detections = torch.cat((image_pred[:, :5], class_conf.float(), class_pred.float()), 1)
        // Iterate through all predicted classes
        for c in detections[:, -1].unique():
            // Get the detections with the particular class
            detections_class = detections[detections[:, -1] == c]
            // Sort the detections by maximum objectness confidence

After Change


        // Detections ordered as (x1, y1, x2, y2, obj_conf, class_conf, class_pred)
        detections = torch.cat((image_pred[:, :5], class_conf.float(), class_pred.float()), 1)
        // Iterate through all predicted classes
        unique_labels = detections[:, -1].cpu().unique()
        if prediction.is_cuda:
            unique_labels = unique_labels.cuda()
        for c in unique_labels:
            // Get the detections with the particular class
            detections_class = detections[detections[:, -1] == c]
            // Sort the detections by maximum objectness confidence
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: eriklindernoren/PyTorch-YOLOv3
Commit Name: 472796edf924009e92c6b6d53c40a168ac12cec6
Time: 2018-05-27
Author: eriklindernoren@gmail.com
File Name: utils.py
Class Name:
Method Name: non_max_suppression


Project Name: rasbt/mlxtend
Commit Name: 1309ae7802aede445fa4bf943eee09422724e8e6
Time: 2016-03-08
Author: mail@sebastianraschka.com
File Name: mlxtend/evaluate/scoring.py
Class Name:
Method Name: scoring


Project Name: rasbt/mlxtend
Commit Name: 1ac01c049faee3044894bd3428ac6021b069d516
Time: 2016-03-16
Author: mail@sebastianraschka.com
File Name: mlxtend/evaluate/scoring.py
Class Name:
Method Name: scoring