INNER CODE UNIT · Python
__init__
HyperGAN/HyperGAN · hypergan/cli.py:24
def __init__(self, args={}, input_config=None, gan_config=None):
self.steps = 0
self.should_sample=False
self.gan_config = gan_config
self.input_config = input_config
args = hc.Config(args)
self.args = args
self.devices = args.devices
crop = self.args.crop
self.config_name = self.args.config or 'default'
self.method = args.method or 'test'
self.total_steps = args.steps or -1
self.sample_every = self.args.sample_every or 100
self.sampler_name = args.sampler