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

Run Error #4

Open
kazunaritakeichi opened this issue Apr 20, 2017 · 0 comments
Open

Run Error #4

kazunaritakeichi opened this issue Apr 20, 2017 · 0 comments

Comments

@kazunaritakeichi
Copy link

kazunaritakeichi commented Apr 20, 2017

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.

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