Skip to content
This repository was archived by the owner on Mar 17, 2019. It is now read-only.

Commit 0765932

Browse files
committed
change to keras 2 api
1 parent 7f0c628 commit 0765932

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/turtlebot/circuit2c_turtlebot_camera_dqn.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,10 @@ def initNetworks(self):
6363
def createModel(self):
6464
# Network structure must be directly changed here.
6565
model = Sequential()
66-
model.add(Convolution2D(16, 3, 3, subsample=(2,2), input_shape=(img_channels,img_rows,img_cols)))
66+
model.add(Convolution2D(16, (3,3), strides=(2,2), input_shape=(img_channels,img_rows,img_cols)))
6767
model.add(Activation('relu'))
6868
model.add(ZeroPadding2D((1, 1)))
69-
model.add(Convolution2D(16, 3, 3, subsample=(2,2)))
69+
model.add(Convolution2D(16, (3,3), strides=(2,2)))
7070
model.add(Activation('relu'))
7171
model.add(MaxPooling2D(pool_size=(2, 2), strides=(2,2)))
7272
model.add(Flatten())

0 commit comments

Comments
 (0)