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
Using gpu device 0: GeForce GTX 1080 Ti (CNMeM is disabled, cuDNN 5110)
Traceback (most recent call last):
File "train.py", line 39, in
FCN = FullyConvolutionalNetwork(img_height=img_size, img_width=img_size, FCN_CLASSES=nb_class)
File "/home/takeichi/Deeplearning/FCN_via_keras/model.py", line 38, in init
input_shape=(3, self.img_height, self.img_width))
File "/usr/local/lib/python2.7/dist-packages/keras/applications/vgg16.py", line 79, in VGG16
include_top=include_top)
File "/usr/local/lib/python2.7/dist-packages/keras/applications/imagenet_utils.py", line 131, in _obtain_input_shape
'input_shape=' + str(input_shape) + '')
ValueError: The input must have 3 channels; got input_shape=(3, 224, 224)
When I ran train, I got the message below.
How can I fix it?
Using Theano backend.
WARNING (theano.sandbox.cuda): The cuda backend is deprecated and will be removed in the next release (v0.10). Please switch to the gpuarray backend. You can get more information about how to switch at this URL:
https://github.com/Theano/Theano/wiki/Converting-to-the-new-gpu-back-end%28gpuarray%29
Using gpu device 0: GeForce GTX 1080 Ti (CNMeM is disabled, cuDNN 5110)
Traceback (most recent call last):
File "train.py", line 39, in
FCN = FullyConvolutionalNetwork(img_height=img_size, img_width=img_size, FCN_CLASSES=nb_class)
File "/home/takeichi/Deeplearning/FCN_via_keras/model.py", line 38, in init
input_shape=(3, self.img_height, self.img_width))
File "/usr/local/lib/python2.7/dist-packages/keras/applications/vgg16.py", line 79, in VGG16
include_top=include_top)
File "/usr/local/lib/python2.7/dist-packages/keras/applications/imagenet_utils.py", line 131, in _obtain_input_shape
'
input_shape=' + str(input_shape) + '
')ValueError: The input must have 3 channels; got
input_shape=(3, 224, 224)
.keras/keras.json is below.
{
"epsilon": 1e-07,
"floatx": "float32",
"image_data_format": "th",
"backend": "theano"
}
Thank you.
The text was updated successfully, but these errors were encountered: