63772c5cb80b0124b6722f705759ed0e49bb679c,mmdet/core/post_processing/bbox_nms.py,,multiclass_nms,#Any#Any#Any#Any#Any#Any#,7

Before Change



    if bboxes.numel() == 0:
        bboxes = multi_bboxes.new_zeros((0, 5))
        labels = multi_bboxes.new_zeros((0, ), dtype=torch.long)

        if torch.onnx.is_in_onnx_export():
            raise RuntimeError("[ONNX Error] Can not record NMS "
                               "as it has not been executed this time")

After Change


    // remove low scoring boxes
    valid_mask = scores > score_thr
    inds = valid_mask.nonzero(as_tuple=False).squeeze(1)
    bboxes, scores, labels = bboxes[inds], scores[inds], labels[inds]
    if inds.numel() == 0:
        if torch.onnx.is_in_onnx_export():
            raise RuntimeError("[ONNX Error] Can not record NMS "
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: open-mmlab/mmdetection
Commit Name: 63772c5cb80b0124b6722f705759ed0e49bb679c
Time: 2020-11-24
Author: maningsheng@sensetime.com
File Name: mmdet/core/post_processing/bbox_nms.py
Class Name:
Method Name: multiclass_nms


Project Name: kymatio/kymatio
Commit Name: 5f0a67ce3c2d01a2da19b18f2f0834bb31c35182
Time: 2019-03-02
Author: edouard.oyallon@centralesupelec.fr
File Name: kymatio/scattering2d/backend/backend_skcuda.py
Class Name: Pad
Method Name: __call__


Project Name: kymatio/kymatio
Commit Name: 5f0a67ce3c2d01a2da19b18f2f0834bb31c35182
Time: 2019-03-02
Author: edouard.oyallon@centralesupelec.fr
File Name: kymatio/scattering2d/backend/backend_torch.py
Class Name: Pad
Method Name: __call__