Skip to content

Commit

Permalink
Update swin.py
Browse files Browse the repository at this point in the history
  • Loading branch information
chhluo authored Jun 18, 2022
1 parent b8ece4a commit 605a55b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mmdet/models/backbones/swin.py
Original file line number Diff line number Diff line change
Expand Up @@ -753,8 +753,8 @@ def forward(self, x):
mode='bicubic',
align_corners=False).flatten(2).transpose(1, 2)
else:
absolute_pos_embed = self.absolute_pos_embed\
.flatten(2).transpose(1, 2)
absolute_pos_embed = self.absolute_pos_embed.flatten(
2).transpose(1, 2)
x = x + absolute_pos_embed
x = self.drop_after_pos(x)

Expand Down

0 comments on commit 605a55b

Please sign in to comment.