Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions densenet.py
Original file line number Diff line number Diff line change
Expand Up @@ -767,7 +767,9 @@ def __create_fcn_dense_net(nb_classes, img_input, include_top, nb_dense_block=5,
grow_nb_filters=False)

if include_top:
x = Conv2D(nb_classes, (1, 1), activation='linear', padding='same', use_bias=False)(x_up)
# not the concatenation of the input with the feature maps concat_list[0] in the decompression path
l = concatenate(concat_list[1:], axis=concat_axis)
x = Conv2D(nb_classes, (1, 1), activation='linear', padding='same', use_bias=False)(l)

if K.image_data_format() == 'channels_first':
channel, row, col = input_shape
Expand All @@ -792,4 +794,4 @@ def __create_fcn_dense_net(nb_classes, img_input, include_top, nb_dense_block=5,
model = DenseNet((32, 32, 3), weights=None)
model.summary()

plot_model(model, 'test.png', show_shapes=True)
plot_model(model, 'test.png', show_shapes=True)