7d96731b9a50e5455a1e31f676508af42801b7ae,chainercv/links/model/deeplab/deeplab_v3_plus.py,DeepLabV3plus,predict,#DeepLabV3plus#Any#,129

Before Change


                x = chainer.Variable(self.xp.asarray(img[np.newaxis]))
                x = self.__call__(x)
                score = F.resize_images(x, crop)[0, :, :H, :W].array
            score = chainer.backends.cuda.to_cpu(score)
            label = np.argmax(score, axis=0).astype(np.int32)
            labels.append(label)
        return labels

After Change


            for img in imgs:
                for scale in self.scales:
                    score += self._get_proba(img, scale, False) / n_aug
                    if self.flip:
                        score += self._get_proba(img, scale, True) / n_aug

                label = np.argmax(score, axis=0).astype(np.int32)
                labels.append(label)
        return labels
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: chainer/chainercv
Commit Name: 7d96731b9a50e5455a1e31f676508af42801b7ae
Time: 2019-01-23
Author: 69guitar1015@gmail.com
File Name: chainercv/links/model/deeplab/deeplab_v3_plus.py
Class Name: DeepLabV3plus
Method Name: predict


Project Name: chainer/chainercv
Commit Name: 90b78b1379b3423aa3b4b5d0de7313f88bda23ab
Time: 2019-02-17
Author: yuyuniitani@gmail.com
File Name: chainercv/utils/mask/mask_to_bbox.py
Class Name:
Method Name: mask_to_bbox


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/chainerrl
Commit Name: ad60498885593181f25f02cf01a72ef8f3f18167
Time: 2016-06-03
Author: muupan@gmail.com
File Name: dqn.py
Class Name: DQN
Method Name: _compute_loss