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

CNN ISSUE #4

Open
anandsharma18 opened this issue Sep 29, 2019 · 0 comments
Open

CNN ISSUE #4

anandsharma18 opened this issue Sep 29, 2019 · 0 comments

Comments

@anandsharma18
Copy link

"C:\Users\Acer\Desktop\python project\Simple-OpenCV-Calculator-master\venv\Scripts\python.exe" "C:/Users/Acer/Desktop/python project/Simple-OpenCV-Calculator-master/cnn_keras.py"
Using TensorFlow backend.
WARNING:tensorflow:From C:\Users\Acer\Desktop\python project\Simple-OpenCV-Calculator-master\venv\lib\site-packages\tensorflow\python\framework\op_def_library.py:263: colocate_with (from tensorflow.python.framework.ops) is deprecated and will be removed in a future version.
Instructions for updating:
Colocations handled automatically by placer.
WARNING:tensorflow:From C:\Users\Acer\Desktop\python project\Simple-OpenCV-Calculator-master\venv\lib\site-packages\keras\backend\tensorflow_backend.py:3445: calling dropout (from tensorflow.python.ops.nn_ops) with keep_prob is deprecated and will be removed in a future version.
Instructions for updating:
Please use rate instead of keep_prob. Rate should be set to rate = 1 - keep_prob.
Traceback (most recent call last):
File "C:/Users/Acer/Desktop/python project/Simple-OpenCV-Calculator-master/cnn_keras.py", line 67, in
train()
File "C:/Users/Acer/Desktop/python project/Simple-OpenCV-Calculator-master/cnn_keras.py", line 62, in train
model.fit(train_images, train_labels, validation_data=(test_images, test_labels), epochs=50, batch_size=100, callbacks=callbacks_list)
File "C:\Users\Acer\Desktop\python project\Simple-OpenCV-Calculator-master\venv\lib\site-packages\keras\engine\training.py", line 952, in fit
batch_size=batch_size)
File "C:\Users\Acer\Desktop\python project\Simple-OpenCV-Calculator-master\venv\lib\site-packages\keras\engine\training.py", line 789, in _standardize_user_data
exception_prefix='target')
File "C:\Users\Acer\Desktop\python project\Simple-OpenCV-Calculator-master\venv\lib\site-packages\keras\engine\training_utils.py", line 138, in standardize_input_data
str(data_shape))
ValueError: Error when checking target: expected dense_2 to have shape (13,) but got array with shape (40,)

please help what can i do

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