Skip to content

Commit

Permalink
name output layers
Browse files Browse the repository at this point in the history
  • Loading branch information
yusuke-a-uchida committed Apr 3, 2018
1 parent 154ee03 commit 500eb37
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions wide_resnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,11 @@ def __call__(self):
pool = AveragePooling2D(pool_size=(8, 8), strides=(1, 1), padding="same")(relu)
flatten = Flatten()(pool)
predictions_g = Dense(units=2, kernel_initializer=self._weight_init, use_bias=self._use_bias,
kernel_regularizer=l2(self._weight_decay), activation="softmax")(flatten)
kernel_regularizer=l2(self._weight_decay), activation="softmax",
name="pred_gender")(flatten)
predictions_a = Dense(units=101, kernel_initializer=self._weight_init, use_bias=self._use_bias,
kernel_regularizer=l2(self._weight_decay), activation="softmax")(flatten)
kernel_regularizer=l2(self._weight_decay), activation="softmax",
name="pred_age")(flatten)

model = Model(inputs=inputs, outputs=[predictions_g, predictions_a])

Expand Down

0 comments on commit 500eb37

Please sign in to comment.