Showing
1 changed file
with
2 additions
and
2 deletions
| ... | @@ -9,8 +9,8 @@ class randomScale(object): | ... | @@ -9,8 +9,8 @@ class randomScale(object): |
| 9 | 9 | ||
| 10 | 10 | ||
| 11 | def __call__(self, img): | 11 | def __call__(self, img): |
| 12 | - #if random.randrange(0,4) == 0: | 12 | + if random.randrange(0,2) == 0: |
| 13 | - # return img | 13 | + return img |
| 14 | self.d = random.randrange(0,2) | 14 | self.d = random.randrange(0,2) |
| 15 | img = numpy.array(img) | 15 | img = numpy.array(img) |
| 16 | img_dtype = img.dtype | 16 | img_dtype = img.dtype | ... | ... |
-
Please register or login to post a comment