Going deeper

Keras ile Görüntü Modellemesi

Ariel Rokem

Senior Data Scientist, University of Washington

Network with one convolutional layer

Keras ile Görüntü Modellemesi

Network with one convolutional layer: implementation

model = Sequential()
model.add(Conv2D(10, kernel_size=2, activation='relu', 
                 input_shape=(img_rows, img_cols, 1)))
model.add(Flatten())
model.add(Dense(3, activation='softmax'))
Keras ile Görüntü Modellemesi

Building a deeper network

Keras ile Görüntü Modellemesi

Building a deep network

model = Sequential()
model.add(Conv2D(10, kernel_size=2, activation='relu', 
                 input_shape=(img_rows, img_cols, 1), 
                 padding='equal'))

# Second convolutional layer model.add(Conv2D(10, kernel_size=2, activation='relu')
model.add(Flatten()) model.add(Dense(3, activation='softmax'))
Keras ile Görüntü Modellemesi

Why do we want deep networks?

Keras ile Görüntü Modellemesi

Features in early layers

Keras ile Görüntü Modellemesi

Features in intermediate layers

Keras ile Görüntü Modellemesi

Features in late layers

Keras ile Görüntü Modellemesi

How deep?

  • Depth comes at a computational cost
  • May require more data
Keras ile Görüntü Modellemesi

Let's practice!

Keras ile Görüntü Modellemesi

Preparing Video For Download...