MCPcopy Create free account
hub / github.com/NVIDIA/pix2pixHD / __init__

Method __init__

util/image_pool.py:5–9  ·  view source on GitHub ↗
(self, pool_size)

Source from the content-addressed store, hash-verified

3from torch.autograd import Variable
4class ImagePool():
5 def __init__(self, pool_size):
6 self.pool_size = pool_size
7 if self.pool_size > 0:
8 self.num_imgs = 0
9 self.images = []
10
11 def query(self, images):
12 if self.pool_size == 0:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected