Skip to content

Commit

Permalink
fix a bug
Browse files Browse the repository at this point in the history
  • Loading branch information
LongguangWang committed Oct 18, 2021
1 parent af9b04c commit daac49c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions model/smsr.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,8 +250,8 @@ def forward(self, x):
fea = self.body[i](fea)
fea = fea * ch_mask[:, :, i:i + 1, 1:] * spa_mask + fea * ch_mask[:, :, i:i + 1, :1]
else:
fea_d = self.body[i](fea * ch_mask[:, :, i:i + 1, :1])
fea_s = self.body[i](fea * ch_mask[:, :, i:i + 1, 1:])
fea_d = self.body[i](fea * ch_mask[:, :, i - 1:i, :1])
fea_s = self.body[i](fea * ch_mask[:, :, i - 1:i, 1:])
fea = fea_d * ch_mask[:, :, i:i + 1, 1:] * spa_mask + fea_d * ch_mask[:, :, i:i + 1, :1] + \
fea_s * ch_mask[:, :, i:i + 1, 1:] * spa_mask + fea_s * ch_mask[:, :, i:i + 1, :1] * spa_mask
fea = self.relu(fea)
Expand Down

0 comments on commit daac49c

Please sign in to comment.