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

Before Change


                    chainer.function.no_backprop_mode():
                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: 3

Non-data size: 5

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: HyperGAN/HyperGAN
Commit Name: 81871180c30f64aafdac700c4d2d2993e81577b6
Time: 2017-01-05
Author: martyn@255bits.com
File Name: hypergan/generators/resize_conv.py
Class Name:
Method Name: generator


Project Name: HyperGAN/HyperGAN
Commit Name: 01cc9670d67e6907935e1ea6da9ae4d3b2f312ee
Time: 2017-11-03
Author: martyn@255bits.com
File Name: hypergan/discriminators/pyramid_discriminator.py
Class Name: PyramidDiscriminator
Method Name: build