6278979a2498df00e4e8bb91a8f86ce4c682fba2,flow_transforms.py,RandomVerticalFlip,__call__,#RandomVerticalFlip#,142
Before Change
def __call__(self, inputs, target):
if random.random() < 0.5:
inputs[0] = np.flipud(inputs[0])
inputs[1] = np.flipud(inputs[1])
target = np.flipud(target)
target[:,:,1]*=-1
return inputs,target
After Change
def __call__(self, inputs, target):
if random.random() < 0.5:
inputs[0] = np.copy(np.flipud(inputs[0]))
inputs[1] = np.copy(np.flipud(inputs[1]))
target = np.copy(np.flipud(target))
target[:,:,1]*=-1
return inputs,target
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: RandomVerticalFlip
Method Name: __call__