6f3ac8d2c8bfd8765ce87f12a87b7831acf8e80b,flow_transforms.py,CenterCrop,__call__,#CenterCrop#Any#Any#,52

Before Change


        y1 = int(round((h - th) / 2.))

        inputs[0] = inputs[0].crop((x1, y1, x1 + tw, y1 + th))
        inputs[1] = inputs[1].crop((x1, y1, x1 + tw, y1 + th))
        target = target[y1 : y1 + th, x1 : x1 + tw]
        return inputs,target

class Scale(object):

After Change


        x1 = int(round((w - tw) / 2.))
        y1 = int(round((h - th) / 2.))

        inputs[0] = inputs[0][y1 : y1 + th, x1 : x1 + tw]
        inputs[1] = inputs[1][y1 : y1 + th, x1 : x1 + tw]
        target = target[y1 : y1 + th, x1 : x1 + tw]
        return inputs,target
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: ClementPinard/FlowNetPytorch
Commit Name: 6f3ac8d2c8bfd8765ce87f12a87b7831acf8e80b
Time: 2017-01-30
Author: clement.pinard@parrot.com
File Name: flow_transforms.py
Class Name: CenterCrop
Method Name: __call__


Project Name: geometalab/OSMDeepOD
Commit Name: a59e0476e44ee53a62a103c95f542ff8b8f7ff06
Time: 2015-09-30
Author: samuel.kurath@gmail.com
File Name: out/production/OSM-Crosswalk-Detection/service/ImageGenerator.py
Class Name: ImageGenerator
Method Name: generate


Project Name: ClementPinard/FlowNetPytorch
Commit Name: 6f3ac8d2c8bfd8765ce87f12a87b7831acf8e80b
Time: 2017-01-30
Author: clement.pinard@parrot.com
File Name: flow_transforms.py
Class Name: RandomCrop
Method Name: __call__


Project Name: ClementPinard/FlowNetPytorch
Commit Name: 6f3ac8d2c8bfd8765ce87f12a87b7831acf8e80b
Time: 2017-01-30
Author: clement.pinard@parrot.com
File Name: flow_transforms.py
Class Name: CenterCrop
Method Name: __call__