-
Notifications
You must be signed in to change notification settings - Fork 102
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
Unable to run 8 bit grayscale png images #15
Comments
Hi, thanks for commenting. Supporting a grayscale image means slightly modifying the network architecture. This can be done in the config file, line 55. Just change the first conv-layer to get 1 input channel: [3, 3, 1, self.width]. (note that the image still needs to have channels-axis but it will be a singleton. Another solution is to concatenate the image to itself channel-wise to get an RGB image that looks the In the future I will ad automatic support when identifying a grayscale image. Thanks! |
Hi, thanks for the quick response. I tried both of your solutions.
)
Any ideas? |
Another query. Although currently, I am facing trouble in running the code for any grayscale image, my end objective is to use the model for small images (For example, to obtain 100x100 images from 25x25 images). Is there anything specific I must take care of in order to run code for such small images? |
|
Hi, the code works fine with all 24-bit images (both jpg & png) but when I tried to run it for 8 bit images (including the boat image in set14 i.e. 'img_003_SRF_2_LR.png'), I am getting some errors.
Just to be sure, I ran in it in the command line and got the same error messages.
Any ideas?
Thanks.
The text was updated successfully, but these errors were encountered: