6278979a2498df00e4e8bb91a8f86ce4c682fba2,flow_transforms.py,RandomHorizontalFlip,__call__,#RandomHorizontalFlip#,131

Before Change


    
    def __call__(self, inputs, target):
        if random.random() < 0.5:
            inputs[0] = np.fliplr(inputs[0])
            inputs[1] = np.fliplr(inputs[1])
            target = np.fliplr(target)
            target[:,:,0]*=-1
        return inputs,target

After Change


    
    def __call__(self, inputs, target):
        if random.random() < 0.5:
            inputs[0] = np.copy(np.fliplr(inputs[0]))
            inputs[1] = np.copy(np.fliplr(inputs[1]))
            target = np.copy(np.fliplr(target))
            target[:,:,0]*=-1
        return inputs,target
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: ClementPinard/FlowNetPytorch
Commit Name: 6278979a2498df00e4e8bb91a8f86ce4c682fba2
Time: 2017-11-16
Author: simon.fauchard@parrot.com
File Name: flow_transforms.py
Class Name: RandomHorizontalFlip
Method Name: __call__