75fb3ffdc4cb9371214acbd29db38d98071dfe82,chainercv/links/model/mask_rcnn/mask_head.py,MaskHead,decode,#MaskHead#Any#Any#Any#Any#,84

Before Change


        // CPU is used because cv2.resize only accepts numpy arrays.
        segms = [chainer.backends.cuda.to_cpu(segm) for segm in segms]
        bboxes = [chainer.backends.cuda.to_cpu(bbox) for bbox in bboxes]
        labels = [chainer.backends.cuda.to_cpu(label) for label in labels]

        masks = []
        // To work around an issue with cv2.resize (it seems to automatically
        // pad with repeated border values), we manually zero-pad the masks by 1

After Change


        

        xp = chainer.backends.cuda.get_array_module(*segms)
        if xp != np:
            raise ValueError(
                "MaskHead.decode only supports numpy inputs for now.")
        masks = []
        // To work around an issue with cv2.resize (it seems to automatically
        // pad with repeated border values), we manually zero-pad the masks by 1
        // pixel prior to resizing back to the original image resolution.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: chainer/chainercv
Commit Name: 75fb3ffdc4cb9371214acbd29db38d98071dfe82
Time: 2019-02-13
Author: yuyuniitani@gmail.com
File Name: chainercv/links/model/mask_rcnn/mask_head.py
Class Name: MaskHead
Method Name: decode


Project Name: chainer/chainercv
Commit Name: ec70c8f39d759dfe733286a41c2f49bf6258878c
Time: 2017-07-14
Author: yuyuniitani@gmail.com
File Name: chainercv/links/model/sequential_feature_extractor.py
Class Name: SequentialFeatureExtractor
Method Name: __init__


Project Name: GPflow/GPflow
Commit Name: a1a3a6a27e236464460d07fa7e0c4b605d094717
Time: 2017-08-17
Author: art.art.v@gmail.com
File Name: GPflow/_settings.py
Class Name:
Method Name: parse