012daf57ac31d82366323e7ec27ab7c2cb678a09,utils.py,,non_max_suppression,#,41

Before Change


            // Get index of image
            image_index = max_detections.new(max_detections.size(0), 1).fill_(image_i)
            // Repeat the batch_id for as many detections of the class cls in the image
            max_detections = torch.cat((image_index, max_detections), 1)
            // Add max detections to outputs
            output = max_detections if output is None else torch.cat((output, max_detections))

    return output

After Change


    box_corner[:, :, 3] = prediction[:, :, 1] + prediction[:, :, 3] / 2
    prediction[:, :, :4] = box_corner[:, :, :4]

    output = [None for _ in range(len(prediction))]
    for image_i, image_pred in enumerate(prediction):
        // Filter out confidence scores below threshold
        conf_mask = (image_pred[:, 4] >= conf_thres).squeeze()
        image_pred = image_pred[conf_mask]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


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


Project Name: eriklindernoren/PyTorch-YOLOv3
Commit Name: 142bc348f80ae6c1f6ede5b598b0443af8048717
Time: 2018-05-22
Author: eriklindernoren@live.se
File Name: models.py
Class Name: Darknet
Method Name: forward


Project Name: kymatio/kymatio
Commit Name: 9991d432372b304f84b67cc60027e92f4ce2273a
Time: 2018-12-16
Author: eickenberg@users.noreply.github.com
File Name: kymatio/scattering3d/scattering3d.py
Class Name: Scattering3D
Method Name: forward