Skip to content

Commit a30baca

Browse files
Bug fix ObjectAttentionBlock2D
1 parent c20437e commit a30baca

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
VERSION = (0, 4, 6)
1+
VERSION = (0, 4, 7)
22

33
__version__ = ".".join(map(str, VERSION))

‎tensorflow_advanced_segmentation_models/models/_custom_layers_and_blocks.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -883,7 +883,7 @@ def call(self, feats, ctx, training=None):
883883
ctx = tf.keras.layers.Permute((2, 1))(ctx)
884884
BS, H, W, C = feats.shape
885885
if self.scale > 1:
886-
x = self.pool(x, training=training)
886+
feats = self.pool(feats, training=training)
887887

888888
query = self.f_pixel(feats, training=training) # (BS, H, W, C)
889889
query = tf.keras.layers.Reshape((-1, C))(query) # (BS, N, C)
@@ -906,7 +906,7 @@ def call(self, feats, ctx, training=None):
906906
# feats-dim: (BS, C, H, W) & ctx-dim: (BS, C, C2)
907907
BS, C, H, W = feats.shape
908908
if self.scale > 1:
909-
x = self.pool(x, training=training)
909+
feats = self.pool(feats, training=training)
910910

911911
query = self.f_pixel(feats, training=training) # (BS, C, H, W)
912912
query = tf.keras.layers.Reshape((C, -1))(query) # (BS, C, N)

0 commit comments

Comments
 (0)