5bc2c075733e672a9a7c5e14bc474788f88e90de,gluoncv/utils/viz/mask.py,,expand_mask,#Any#Any#Any#Any#Any#Any#Any#,9

Before Change



    full_masks = []
    bboxes *= scale
    for i in sorted_inds:
        if scores is not None and scores[i] < thresh:
            continue
        mask = masks[i]
        bbox = bboxes[i]
        full_masks.append(fill(mask, bbox, im_shape))
    full_masks = np.array(full_masks)
    return full_masks, sorted_inds

After Change


        sorted_inds = np.argsort(range(len(masks)))

    bboxes *= scale
    valid = np.where(scores >= thresh)[0]
    sorted_inds = sorted_inds[valid]
    masks = masks[valid]
    bboxes = bboxes[valid]
    full_masks = fill(masks, bboxes, im_shape)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: dmlc/gluon-cv
Commit Name: 5bc2c075733e672a9a7c5e14bc474788f88e90de
Time: 2019-12-06
Author: jerryzh.cn@gmail.com
File Name: gluoncv/utils/viz/mask.py
Class Name:
Method Name: expand_mask


Project Name: sony/nnabla-examples
Commit Name: 56926bc8b4a158e1c40cddbc795303bc6a66f44d
Time: 2019-05-23
Author: sukriti.mehrotra@sony.com
File Name: semantic-segmentation/deeplabv3plus/train.py
Class Name:
Method Name: get_model


Project Name: scipy/scipy
Commit Name: bc889006b64e63457d81a496122463c57998f218
Time: 2015-01-17
Author: argriffi@ncsu.edu
File Name: scipy/sparse/linalg/dsolve/linsolve.py
Class Name:
Method Name: spsolve