f64228cbad0988a6e134013c396e80a09692df01,inception.py,InceptionV3,forward,#InceptionV3#,107

Before Change


                              mode="bilinear",
                              align_corners=False)

        if self.normalize_input:
            x = x.clone()
            x[:, 0] = x[:, 0] * (0.229 / 0.5) + (0.485 - 0.5) / 0.5
            x[:, 1] = x[:, 1] * (0.224 / 0.5) + (0.456 - 0.5) / 0.5
            x[:, 2] = x[:, 2] * (0.225 / 0.5) + (0.406 - 0.5) / 0.5

        for idx, block in enumerate(self.blocks):
            x = block(x)
            if idx in self.output_blocks:
                outp.append(x)

After Change


                              mode="bilinear",
                              align_corners=False)

        if self.normalize_input:
            x = 2 * x - 1  // Scale from range (0, 1) to range (-1, 1)

        for idx, block in enumerate(self.blocks):
            x = block(x)
            if idx in self.output_blocks:
                outp.append(x)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: mseitzer/pytorch-fid
Commit Name: f64228cbad0988a6e134013c396e80a09692df01
Time: 2019-05-27
Author: 16725193+mseitzer@users.noreply.github.com
File Name: inception.py
Class Name: InceptionV3
Method Name: forward


Project Name: mseitzer/pytorch-fid
Commit Name: 4e366b2fc9fb933bec9f6f24c5e87c3bd9452eda
Time: 2019-02-16
Author: (none)
File Name: inception.py
Class Name: InceptionV3
Method Name: forward


Project Name: ANTsX/ANTsPy
Commit Name: d23adb96056f3a4ff2d477ae9051a79b481d625b
Time: 2018-11-23
Author: stnava@gmail.com
File Name: ants/utils/mask_image.py
Class Name:
Method Name: mask_image