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

Error with input value #6

Open
codemanish opened this issue May 8, 2018 · 6 comments
Open

Error with input value #6

codemanish opened this issue May 8, 2018 · 6 comments

Comments

@codemanish
Copy link

`Loaded images from X.h5


Layer (type) Output Shape Param #

conv2d_17 (Conv2D) (None, 48, 48, 32) 896


conv2d_18 (Conv2D) (None, 46, 46, 32) 9248


max_pooling2d_9 (MaxPooling2 (None, 23, 23, 32) 0


dropout_9 (Dropout) (None, 23, 23, 32) 0


conv2d_19 (Conv2D) (None, 23, 23, 64) 18496


conv2d_20 (Conv2D) (None, 21, 21, 64) 36928


max_pooling2d_10 (MaxPooling (None, 10, 10, 64) 0


dropout_10 (Dropout) (None, 10, 10, 64) 0


conv2d_21 (Conv2D) (None, 10, 10, 128) 73856


conv2d_22 (Conv2D) (None, 8, 8, 128) 147584


max_pooling2d_11 (MaxPooling (None, 4, 4, 128) 0


dropout_11 (Dropout) (None, 4, 4, 128) 0


flatten_3 (Flatten) (None, 2048) 0


dense_5 (Dense) (None, 512) 1049088


dropout_12 (Dropout) (None, 512) 0


dense_6 (Dense) (None, 43) 22059

Total params: 1,358,155
Trainable params: 1,358,155
Non-trainable params: 0


Traceback (most recent call last):

File "", line 132, in
ModelCheckpoint('model.h5',save_best_only=True)]

File "C:\Users\pandey\Anaconda3\lib\site-packages\keras\models.py", line 963, in fit
validation_steps=validation_steps)

File "C:\Users\pandey\Anaconda3\lib\site-packages\keras\engine\training.py", line 1630, in fit
batch_size=batch_size)

File "C:\Users\pandey\Anaconda3\lib\site-packages\keras\engine\training.py", line 1476, in _standardize_user_data
exception_prefix='input')

File "C:\Users\pandey\Anaconda3\lib\site-packages\keras\engine\training.py", line 113, in _standardize_input_data
'with shape ' + str(data_shape))

ValueError: Error when checking input: expected conv2d_17_input to have 4 dimensions, but got array with shape (0, 1)`

@shanicky4ever
Copy link

same problem, have you clear that?

@codemanish
Copy link
Author

codemanish commented May 23, 2018 via email

@aalzooke
Copy link

aalzooke commented Jun 4, 2018

Did you solve this error, Please share

@codemanish
Copy link
Author

codemanish commented Jun 4, 2018 via email

@aalzooke
Copy link

aalzooke commented Jun 4, 2018

I really don't know how to solve it, I tried many times.
Please let me know if you come up with a solution

@RuiChen520
Copy link

The same as yours.How to solve?

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

4 participants