Skip to content

Commit

Permalink
fix FCN: wrong argument name for UpSampling2D
Browse files Browse the repository at this point in the history
  • Loading branch information
pesekon2 committed Aug 28, 2023
1 parent ca74bde commit 2d0507e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/architectures.py
Original file line number Diff line number Diff line change
Expand Up @@ -1230,7 +1230,7 @@ def instantiate_layers(self):
)

if self.variant == '32s':
self.final_upsample = UpSampling2D(pool_size=(32, 32),
self.final_upsample = UpSampling2D(size=(32, 32),
name='upsampling_final')
return 0
elif self.variant == '16s':
Expand All @@ -1243,7 +1243,7 @@ def instantiate_layers(self):
self.adds = []
for i in range(5, stop_level, -1):
self.upsamples.append(
UpSampling2D(pool_size=(2, 2),
UpSampling2D(size=(2, 2),
name=f'upsampling_{i}_to_{i - 1}'))
self.classifiers.append(Conv2D(
self.nr_classes,
Expand All @@ -1255,8 +1255,8 @@ def instantiate_layers(self):
))
self.adds.append(Concatenate(axis=3, name=f'concat_{i}_to_{i - 1}'))

self.final_upsample = UpSampling2D(pool_size=(2 ** stop_level,
2 ** stop_level),
self.final_upsample = UpSampling2D(size=(2 ** stop_level,
2 ** stop_level),
name='upsampling_final')

def get_config(self):
Expand Down

0 comments on commit 2d0507e

Please sign in to comment.