We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a7d816 commit fec2ec7Copy full SHA for fec2ec7
utils.py
@@ -29,7 +29,7 @@ def __call__(self, image):
29
self.images.append(image)
30
self.num_img=self.num_img+1
31
return image
32
- if np.random.rand > 0.5:
+ if np.random.rand() > 0.5:
33
idx = int(np.random.rand()*self.maxsize)
34
tmp = copy.copy(self.images[idx])
35
self.images[idx] = image
0 commit comments