a7d92f7020dfe8854430ef13ed2923b2606a6262,torchsample/transforms/affine_transforms.py,Translate,__call__,#Translate#,391
Before Change
if self.lazy:
return translation_matrix
else:
x_transformed = th_affine2d(x,
translation_matrix,
mode=self.interp[0])
if y is not None:
y_transformed = th_affine2d(y,
translation_matrix,
mode=self.interp[1])
return x_transformed, y_transformed
else:
return x_transformed
class RandomShear(object):
def __init__(self,
shear_range,
After Change
mode=interp[idx],
center=True)
outputs.append(input_tf)
return outputs if idx > 1 else outputs[0]
class RandomShear(object):
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 16
Instances
Project Name: ncullen93/torchsample
Commit Name: a7d92f7020dfe8854430ef13ed2923b2606a6262
Time: 2017-05-11
Author: ncullen.th@dartmouth.edu
File Name: torchsample/transforms/affine_transforms.py
Class Name: Translate
Method Name: __call__
Project Name: ncullen93/torchsample
Commit Name: a7d92f7020dfe8854430ef13ed2923b2606a6262
Time: 2017-05-11
Author: ncullen.th@dartmouth.edu
File Name: torchsample/transforms/affine_transforms.py
Class Name: Shear
Method Name: __call__
Project Name: ncullen93/torchsample
Commit Name: a7d92f7020dfe8854430ef13ed2923b2606a6262
Time: 2017-05-11
Author: ncullen.th@dartmouth.edu
File Name: torchsample/transforms/affine_transforms.py
Class Name: Rotate
Method Name: __call__
Project Name: ncullen93/torchsample
Commit Name: a7d92f7020dfe8854430ef13ed2923b2606a6262
Time: 2017-05-11
Author: ncullen.th@dartmouth.edu
File Name: torchsample/transforms/affine_transforms.py
Class Name: Zoom
Method Name: __call__