Skip to content

Commit

Permalink
Fix transpose block
Browse files Browse the repository at this point in the history
  • Loading branch information
qubvel committed Oct 6, 2019
1 parent c0524e3 commit 883adef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion segmentation_models/models/linknet.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def DecoderTransposeX2Block(filters, stage, use_batchnorm):

def wrapper(input_tensor, skip=None):
input_filters = backend.int_shape(input_tensor)[channels_axis]
output_filters = backend.int_shape(skip) if skip else filters
output_filters = backend.int_shape(skip)[channels_axis] if skip is not None else filters

x = Conv1x1BnReLU(input_filters // 4, use_batchnorm, name=conv_block1_name)(input_tensor)
x = layers.Conv2DTranspose(
Expand Down

0 comments on commit 883adef

Please sign in to comment.