Skip to content

Commit

Permalink
why :C
Browse files Browse the repository at this point in the history
  • Loading branch information
sdierauf committed May 23, 2016
1 parent 5b431db commit f1be5a6
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions tiny_imagenet_classifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,29 +173,36 @@
model.add(Activation('relu'))
model.add(Convolution2D(96, 3, 3, border_mode='same'))
model.add(Activation('relu'))

model.add(Convolution2D(96, 3, 3, border_mode='same', subsample=(2,2)))
model.add(Convolution2D(96, 3, 3, border_mode='same'))
model.add(Activation('relu'))
model.add(MaxPooling2D(pool_size=(3, 3), strides=(2, 2)))

# model.add(Convolution2D(96, 3, 3, border_mode='same', subsample=(2,2)))
# model.add(Activation('relu'))

model.add(Convolution2D(192, 3, 3, border_mode='same'))
model.add(Activation('relu'))
model.add(Convolution2D(192, 3, 3, border_mode='same'))
model.add(Activation('relu'))

model.add(Convolution2D(192, 3, 3, border_mode='same', subsample=(2,2)))
model.add(Convolution2D(192, 3, 3, border_mode='same'))
model.add(Activation('relu'))

model.add(MaxPooling2D(pool_size=(3, 3), strides=(2, 2)))


# model.add(Convolution2D(192, 3, 3, border_mode='same', subsample=(2,2)))
# model.add(Activation('relu'))

model.add(Convolution2D(192, 3, 3, border_mode='same'))
model.add(Activation('relu'))
model.add(Convolution2D(192, 1, 1, border_mode='same'))
model.add(Activation('relu'))
model.add(Convolution2D(10, 1, 1, border_mode='same'))
model.add(Activation('relu'))
AveragePooling2D(pool_size=(6, 6), strides=None, border_mode='same', dim_ordering='th')
# model.add(Activation('relu'))
model.add(Flatten())
# model.add(Dense(512))
# model.add(Activation('relu'))
model.add(Dense(512))
model.add(Activation('relu'))
model.add(Dense(10))#pretrained weights assume only 100 outputs, we need to train this layer from scratch

# model.add(AveragePooling2D(pool_size=(6, 6), strides=None, border_mode='valid', dim_ordering='th'))
Expand Down

0 comments on commit f1be5a6

Please sign in to comment.