Commit 2710c3fc authored by Anjith GEORGE's avatar Anjith GEORGE

Fixes error in transform

parent 319a4369
Pipeline #26980 passed with stage
in 12 minutes and 47 seconds
......@@ -274,9 +274,11 @@ class RandomHorizontalFlipImage(object):
"""
if numpy.random.random() < self.p:
img=numpy.fliplr(img)
imgn=numpy.fliplr(img).copy()
else:
imgn=img.copy()
return img
return imgn
def __repr__(self):
return self.__class__.__name__ + '(Flipping Probability={})'.format(self.p)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment