GAN/Architectures/models/gan.py
def summarize_performance(self, epoch, filename_base):
        """generate samples and save as a plot and save the model"""
        self.plot_random_generated_images()
        
        # save the plot
        filename1 = '{}_generated_plot_{:04d}.png'.format(filename_base, epoch)
        pyplot.savefig(filename1)
        pyplot.close()
        
        # save the generator model
        filename2 = '{}_generator_model_{:04d}.h5'.format(filename_base, epoch)
        self.g_model.save(filename2)
        print('>Saved: %s and %s' % (filename1, filename2))
generate samples and save as a plot and save the model
generate samples and save as a plot and save the model
generate samples and save as a plot and save the model
def summarize_performance(self, epoch, filename_base):
        self.plot_random_generated_images()
        filename1 = '{}_generated_plot_{:04d}.png'.format(filename_base, epoch)
        pyplot.savefig(filename1)
        pyplot.close()
        filename2 = '{}_generator_model_{:04d}.h5'.format(filename_base, epoch)
        self.g_model.save(filename2)
        print('>Saved: %s and %s' % (filename1, filename2))
def summarize_performance ( self , epoch , filename_base ) : self . plot_random_generated_images ( ) filename1 = '{}_generated_plot_{:04d}.png' . format ( filename_base , epoch ) pyplot . savefig ( filename1 ) pyplot . close ( ) filename2 = '{}_generator_model_{:04d}.h5' . format ( filename_base , epoch ) self . g_model . save ( filename2 ) print ( '>Saved: %s and %s' % ( filename1 , filename2 ) )
generate samples and save as a plot and save the model
generate samples and save as a plot and save the model
"""generate samples and save as a plot and save the model""" # save the plot # save the generator model
self
epoch
filename_base