Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image Generated are blurred #66

Open
hellorp1990 opened this issue Feb 23, 2017 · 2 comments
Open

Image Generated are blurred #66

hellorp1990 opened this issue Feb 23, 2017 · 2 comments

Comments

@hellorp1990
Copy link

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.
![5](https://cloud.githubusercontent.com/assets/19805255/23264269/c43fdf2c-f9ae-11e6-877d-ef80e72bf1a0.png
10
5

)

Please help if I am doing wrong.

@darinc
Copy link

darinc commented Mar 5, 2017

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

@xhchrn
Copy link

xhchrn commented Mar 9, 2017

I also encountered this problem using gpu and over 200k images

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants