dcgan.torch
dcgan.torch copied to clipboard
Image Generated are blurred
Hi, I am using CPU to generate images,
At first change the code from GPU to cpu. then training by this command-- DATA_ROOT=myimages dataset=folder th main.lua
the generating image
gpu=0 batchSize=64 net=experiment1_25_net_G.t7 th generate.lua
it is generating one image and blurry.
at first i tried medical images , the image that i got is blurred. Then i thought it might be because they are grayscale , then i tried some rgb images (Horse dataset) and then did the same thing but the image generated is again blurred.
I tried three different generator (generate 5/generate 10/ generator 25) but all are blurred.
I am attaching them.

Please help if I am doing wrong.
If you have fewer than 10000 images in your dataset you need to increase the number of epochs the model trains for. Set nist=500 or 100 and let it run.
Then use one of the higher saved models for the image generation. For example gpu=0 batchSize=64 net=experiment1_500_net_G.t7 th generate.lua
I also encountered this problem using gpu and over 200k images