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

The shape of the input to "Flatten" is not fully defined #3

Open
NanYoMy opened this issue Aug 14, 2017 · 0 comments
Open

The shape of the input to "Flatten" is not fully defined #3

NanYoMy opened this issue Aug 14, 2017 · 0 comments

Comments

@NanYoMy
Copy link

NanYoMy commented Aug 14, 2017

hi, i got this error info:
Traceback (most recent call last):
File "main.py", line 87, in
model = vgg_bn()
File "main.py", line 68, in vgg_bn
model.add(Flatten())
File "/home/nanyomy/anaconda2/envs/keras_env/lib/python2.7/site-packages/keras/models.py", line 469, in add
output_tensor = layer(self.outputs[0])
File "/home/nanyomy/anaconda2/envs/keras_env/lib/python2.7/site-packages/keras/engine/topology.py", line 615, in call
output_shape = self.compute_output_shape(input_shape)
File "/home/nanyomy/anaconda2/envs/keras_env/lib/python2.7/site-packages/keras/layers/core.py", line 477, in compute_output_shape
'(got ' + str(input_shape[1:]) + '. '
ValueError: The shape of the input to "Flatten" is not fully defined (got (0, 7, 128). Make sure to pass a complete "input_shape" or "batch_input_shape" argument to the first layer in your model.

did this problem caused by the different version of keras?

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