Save individual images generated by DCGAN

Below I am sharing code:

When adding this highlighted line for saving the images only three images are saved.

Image 619

Can anyone please guide how to save all the generated images (fake) to the directory?

Hi, @ArshadIram

I suspect that it is saving only 3 images due to the highlighted line within a if statement that is called three times. Try to indent left that line that might help