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

car-behavioral-cloning #39

Open
15snehalgugale opened this issue Feb 24, 2019 · 1 comment
Open

car-behavioral-cloning #39

15snehalgugale opened this issue Feb 24, 2019 · 1 comment

Comments

@15snehalgugale
Copy link

how to resolve this error

Sn_drive.py:127: UserWarning: Update your Conv2D call to the Keras 2 API: Conv2D(24, (5, 5), strides=(2, 2), activation="elu")
cnn.add(Conv2D(24, 5, 5, activation='elu', subsample=(2, 2)))
Sn_drive.py:128: UserWarning: Update your Conv2D call to the Keras 2 API: Conv2D(36, (5, 5), strides=(2, 2), activation="elu")
cnn.add(Conv2D(36, 5, 5, activation='elu', subsample=(2, 2)))
Sn_drive.py:129: UserWarning: Update your Conv2D call to the Keras 2 API: Conv2D(48, (5, 5), strides=(2, 2), activation="elu")
cnn.add(Conv2D(48, 5, 5, activation='elu', subsample=(2, 2)))
Sn_drive.py:130: UserWarning: Update your Conv2D call to the Keras 2 API: Conv2D(64, (3, 3), activation="elu")
cnn.add(Conv2D(64, 3, 3, activation='elu'))
Sn_drive.py:131: UserWarning: Update your Conv2D call to the Keras 2 API: Conv2D(64, (3, 3), activation="elu")
cnn.add(Conv2D(64, 3, 3, activation='elu'))
Traceback (most recent call last):
File "C:\Users\Dell\Anaconda3\envs\car-behavioral-cloning\lib\site-packages\tensorflow\python\framework\ops.py", line 1628, in _create_c_op
c_op = c_api.TF_FinishOperation(op_desc)
tensorflow.python.framework.errors_impl.InvalidArgumentError: Dimension 0 in both shapes must be equal, but are 28224 and 1152. Shapes are [28224,100] and [1152,100]. for 'Assign_10' (op: 'Assign') with input shapes: [28224,100], [1152,100].

During handling of the above exception, another exception occurred:

@David-Un-ger
Copy link

you need to input the kernel_size as a tupel (5,5)

--> cnn.add(Conv2D(48, (5, 5), strides=(2, 2), activation="elu"))

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

2 participants