Skip to content

Commit 883adef

Browse files
authored
Fix transpose block
1 parent c0524e3 commit 883adef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

segmentation_models/models/linknet.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def DecoderTransposeX2Block(filters, stage, use_batchnorm):
100100

101101
def wrapper(input_tensor, skip=None):
102102
input_filters = backend.int_shape(input_tensor)[channels_axis]
103-
output_filters = backend.int_shape(skip) if skip else filters
103+
output_filters = backend.int_shape(skip)[channels_axis] if skip is not None else filters
104104

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

0 commit comments

Comments
 (0)