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

Output Images are not of wanted size #18

Closed
mrciolino opened this issue Aug 29, 2019 · 0 comments
Closed

Output Images are not of wanted size #18

mrciolino opened this issue Aug 29, 2019 · 0 comments

Comments

@mrciolino
Copy link

When using test_lr_images it should give back the wanted resolution:

Ex. if i trained 80x80 to 320x320 i should get back 320x320 not a plt.figsize of 640x480
I switched the commented code for the 2 lines and imprted

from PIL import Image

 for index in range(examples):

    im = Image.fromarray(generated_image[index])
    im.save(output_dir + 'high_res_result_image_%d.png' % index)
    
    """
    #plt.figure(figsize=figsize)

    plt.imshow(generated_image[index], interpolation='nearest')
    plt.axis('off')
    
    plt.tight_layout()
    plt.savefig(output_dir + 'high_res_result_image_%d.png' % index)

    #plt.show()
    """'
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

1 participant