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

Method __init__

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected