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 Image is Awful #30

Open
hurkal opened this issue Apr 2, 2020 · 2 comments
Open

Output Image is Awful #30

hurkal opened this issue Apr 2, 2020 · 2 comments

Comments

@hurkal
Copy link

hurkal commented Apr 2, 2020

Hi,
Thanks for this repo. I have a problem about input images.

I run this command to generate HR images:
!python test.py --input_low_res='./data_lr/' --output_dir='./output/' --model_dir='./model/gen_model3000.h5' --number_of_images=1 --test_type='test_lr_images'

When 384x384 pixels with 32 bit-depth PNG image is provided, got this error:
ValueError: Error when checking input: expected input_1 to have shape (96, 96, 3) but got array with shape (96, 96, 4)

So, by removing alpha channel image is converted to 24 bit-depth with 384x384 pixels. I understand that HR image is converting into LR image with lr_images() function in Utilty.py. Test image is taken from the output folder, already generated while training:
03-24bits

I need to make some changes according to discussed here before: #18 (comment)

So, I got the same dimensions and bit-depth as input file:
high_res_result_image_0 (3)

It wants us to provide 24 bit-depth image, I think. So I decided to input a PNG file removed alpha channel. But why is the quality is awful even I provide the image within the train set?

@hurkal hurkal changed the title Input and Output Image Properties Output Image is Awful Apr 2, 2020
@deepak112
Copy link
Owner

How you removed alpha channel and how you saved that image?
Will look into such case.

@hurkal
Copy link
Author

hurkal commented May 6, 2020

Thanks for reply.
Actually, within photoshop. File/Save for web/unselected "Transparency" and saved as PNG-24

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

2 participants