Skip to content

Commit

Permalink
Update decoder.py
Browse files Browse the repository at this point in the history
  • Loading branch information
brianhou0208 committed Dec 5, 2024
1 parent 5ee19b0 commit 999a2c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion segmentation_models_pytorch/decoders/segformer/decoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def forward(self, x: torch.Tensor):
batch, _, height, width = x.shape
x = x.flatten(2).transpose(1, 2)
x = self.linear(x)
x = x.transpose(1, 2).reshape(batch, -1, height, width).contiguous()
x = x.transpose(1, 2).reshape(batch, -1, height, width)
return x


Expand Down

0 comments on commit 999a2c8

Please sign in to comment.