Traffic-Sign-Classification.keras icon indicating copy to clipboard operation
Traffic-Sign-Classification.keras copied to clipboard

Error with input value

Open codemanish opened this issue 6 years ago • 6 comments

`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)`

codemanish avatar May 08 '18 06:05 codemanish

same problem, have you clear that?

shanicky4ever avatar May 23 '18 14:05 shanicky4ever

No the problem is yet not cleared

On Wed, 23 May 2018, 7:42 pm Shanicky, [email protected] wrote:

same problem, have you clear that?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/chsasank/Traffic-Sign-Classification.keras/issues/6#issuecomment-391362017, or mute the thread https://github.com/notifications/unsubscribe-auth/AlRJz3vPkEYzk03LuHDZJrAiLD8hHHEfks5t1W42gaJpZM4T2D7a .

codemanish avatar May 23 '18 15:05 codemanish

Did you solve this error, Please share

aalzooke avatar Jun 04 '18 15:06 aalzooke

No brother i was unable to solve this

On Mon, 4 Jun 2018, 9:06 pm Assam ALZookery, [email protected] wrote:

Did you solve this error, Please share

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/chsasank/Traffic-Sign-Classification.keras/issues/6#issuecomment-394399440, or mute the thread https://github.com/notifications/unsubscribe-auth/AlRJz7BMHjona4VLGPzHJO6UzLhsJBiAks5t5VP0gaJpZM4T2D7a .

codemanish avatar Jun 04 '18 15:06 codemanish

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

aalzooke avatar Jun 04 '18 15:06 aalzooke

The same as yours.How to solve?

RuiChen520 avatar Oct 31 '18 13:10 RuiChen520