-
Notifications
You must be signed in to change notification settings - Fork 53
Description
`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)`