You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Training Resnet50 with grayscale images:ValueError: Error when checking input: expected input_2 to have shape (256, 256, 3) but got array with shape (256, 256, 1)
#9739
Closed
2 of 4 tasks
mohapatras opened this issue
Mar 23, 2018
· 2 comments
Please make sure that the boxes below are checked before you submit your issue. If your issue is an implementation question, please ask your question on StackOverflow or join the Keras Slack channel and ask there instead of filing a GitHub issue.
Thank you!
Check that you are up-to-date with the master branch of Keras. You can update with:
pip install git+git://github.com/keras-team/keras.git --upgrade --no-deps
If running on TensorFlow, check that you are up-to-date with the latest version. The installation instructions can be found here.
If running on Theano, check that you are up-to-date with the master branch of Theano. You can update with:
pip install git+git://github.com/Theano/Theano.git --upgrade --no-deps
Provide a link to a GitHub Gist of a Python script that can reproduce your issue (or just copy the script here if it is short).
I am trying to use resnet50 with grayscale images from scratch. However it is unclear why the network is expecting channels of 3 while in Input channel 1 is passed. Below is the error I am facing and the reproducible code is in the gist.
Configurations:
Tensorflow : 1.5.0
Keras : 2.1.5
Python : 3.6
Please make sure that the boxes below are checked before you submit your issue. If your issue is an implementation question, please ask your question on StackOverflow or join the Keras Slack channel and ask there instead of filing a GitHub issue.
Thank you!
Check that you are up-to-date with the master branch of Keras. You can update with:
pip install git+git://github.com/keras-team/keras.git --upgrade --no-deps
If running on TensorFlow, check that you are up-to-date with the latest version. The installation instructions can be found here.
If running on Theano, check that you are up-to-date with the master branch of Theano. You can update with:
pip install git+git://github.com/Theano/Theano.git --upgrade --no-deps
Provide a link to a GitHub Gist of a Python script that can reproduce your issue (or just copy the script here if it is short).
I am trying to use resnet50 with grayscale images from scratch. However it is unclear why the network is expecting channels of 3 while in Input channel 1 is passed. Below is the error I am facing and the reproducible code is in the gist.
Configurations:
Tensorflow : 1.5.0
Keras : 2.1.5
Python : 3.6
Link provided: https://gist.github.com/mohapatras/5d720cb19014ed573bcd3ed36c5929f5
Any suggestion and fix is highly welcome.
The text was updated successfully, but these errors were encountered: