I am implementing GAN (generative adversarial network) in keras from here. In this code after every 20 epoch image is showed and saved. But i donot want to show image and just want to save. so i just commented line number 89 from code, which is following:
plt.imshow(generatedImages[i], interpolation='nearest', cmap='gray_r')
. but after commenting this line blank images saved, and also blank images poped up. but when i remove comment and run full code, images saved properly. accoeding to me imshow
is used to used images, it doesn't part in constructing images. why this happens.