Skip to content

Commit

Permalink
Update backbonev2.py
Browse files Browse the repository at this point in the history
  • Loading branch information
liyy201912 authored Jan 22, 2023
1 parent 5f1dddc commit 2c0e950
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion segmentation/backbonev2.py
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,7 @@ def forward(self, x):
if not self.training:
cls_out = (cls_out[0] + cls_out[1]) / 2
else:
cls_out = self.head(x.mean(-2))
cls_out = self.head(x.flatten(2).mean(-1))
# for image classification
return cls_out

Expand Down

0 comments on commit 2c0e950

Please sign in to comment.