diff options
| author | junyanz <junyanzhu89@gmail.com> | 2018-02-09 11:39:35 -0500 |
|---|---|---|
| committer | junyanz <junyanzhu89@gmail.com> | 2018-02-09 11:39:35 -0500 |
| commit | 0ae4f0500e415a6a67689ef9356e8e4779ae5833 (patch) | |
| tree | 25392e96a1b64c8454f7f548886af7dd48aa6bd0 /util/image_pool.py | |
| parent | 7a5e2cd5f5003e8ca9a0fc3dac14a74b81287881 (diff) | |
code reformatting
Diffstat (limited to 'util/image_pool.py')
| -rw-r--r-- | util/image_pool.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/util/image_pool.py b/util/image_pool.py index ada1627..634fd81 100644 --- a/util/image_pool.py +++ b/util/image_pool.py @@ -1,5 +1,4 @@ import random -import numpy as np import torch from torch.autograd import Variable @@ -24,7 +23,7 @@ class ImagePool(): else: p = random.uniform(0, 1) if p > 0.5: - random_id = random.randint(0, self.pool_size-1) + random_id = random.randint(0, self.pool_size - 1) tmp = self.images[random_id].clone() self.images[random_id] = image return_images.append(tmp) |
