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
n_aug = len(self.scales) if self.flip else len(self.scales) * 2
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
In pattern: SUPERPATTERN
Frequency: 3
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: f6f0c153fe1f0dacd8ba30ae0dd31a389b66f43f
Time: 2017-05-27
Author: yuyuniitani@gmail.com
File Name: chainercv/evaluations/eval_semantic_segmentation.py
Class Name:
Method Name: _to_cpu
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