INNER CODE UNIT · Python

source_configuration

HyperGAN/HyperGAN · hypergan/cli.py:209

        source_configuration = Configuration.find(self.config_name+config_format, config_format=config_format, prepackaged=True)
        shutil.copyfile(source_configuration, template)

        return

    def run(self):
        if self.method == 'train':
            self.train()
        elif self.method == 'build':
            self.gan = hg.GAN(config=self.gan_config, inputs=self.create_input(blank=True))
            if not self.gan.load(self.save_file):
                raise ValidationException("Could not load model: "+ self.save_file)
            self.build()
        elif self.method == 'new':
            self.new()
        elif self.method == 'sample':
            self.gan = hg.GAN(config=self.gan_config, inputs=self.create_input(blank=False))
            if not self.gan.load(self.save_file):

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…