taoxugit / AttnGAN

MIT License
1.33k stars 415 forks source link

eval/eval.py and code/main.py produce different image sizes? #27

Closed arunpatro closed 5 years ago

arunpatro commented 5 years ago

What is the difference between eval/eval.py and code/main.py code for the generation part?

When I run eval/eval.py the images are of size 64x64. Whereas when I sample from test folder using code/main.py by setting the cfg.B_VALIDATION as True, it generates 256x256 images. Both the scripts use the same cfg/eval_****.yml.

Why does the eval.py script generate 64x64 images? I don't see any other hyper paramater in eval.py code that decides the size of the images.

I add print(im.size) after line 110 in eval/eval.py https://github.com/taoxugit/AttnGAN/blob/master/eval/eval.py#L110

I add print(im.size) after line 423 in code/trainer.py https://github.com/taoxugit/AttnGAN/blob/master/code/trainer.py#L423