def callback(): path = 'images/' + img_path + '/' sample_images(gan.combined_A, path + 'A_decoded.png', set_domain_A) sample_images(gan.combined_B, path + 'B_decoded.png', set_domain_B) sample_images(gan.encoder, path + 'A_encoded.png', set_domain_A) sample_images(gan.decoder, path + 'B_encoded.png', set_domain_B) plotter.save_hist_image(gan.history, path + 'History.png')
def callback(): path = 'images/' + img_path + '/' sample_images(gan.generator, path + 'results.png') plotter.save_hist_image(gan.history, path + 'history.png')
def callback(): path = 'images/' + img_path + '/' sample_images(gan.decoder, path + 'decoded.png') plotter.save_hist_image(gan.history, path + 'History.png')
def callback(): path = 'images/CGAN/' + tests['img_path'][i] + '/conv_' + tests[ 'mode'][i] sample_images(gan.generator, path + '.png') plotter.save_hist_image(gan.history, path + '_hist.png')