mirror of
https://github.com/huggingface/pytorch-image-models.git
synced 2025-06-03 15:01:08 +08:00
Revert "Update metaformers.py"
This reverts commit 32bede4e279ee1027a63d5b55591153e53c209ec.
This commit is contained in:
parent
2912d8c477
commit
a1882204ea
@ -809,12 +809,12 @@ class MetaFormer(nn.Module):
|
||||
if pre_logits:
|
||||
return x
|
||||
|
||||
x = self.global_pool(x)
|
||||
x = x.squeeze()
|
||||
x = self.norm(x)
|
||||
#x = self.global_pool(x)
|
||||
#x = x.squeeze()
|
||||
#x = self.norm(x)
|
||||
# (B, H, W, C) -> (B, C)
|
||||
x = self.head(x)
|
||||
#x=self.head(self.norm(x.mean([2, 3])))
|
||||
#x = self.head(x)
|
||||
x=self.head(self.norm(x.mean([2, 3])))
|
||||
return x
|
||||
|
||||
def forward_features(self, x):
|
||||
|
Loading…
x
Reference in New Issue
Block a user