From 1fd5f7672d2dec34f018937a5e7bc22d540fa29a Mon Sep 17 00:00:00 2001 From: Fredo Guan Date: Tue, 31 Jan 2023 17:03:25 -0800 Subject: [PATCH] Update metaformers.py --- timm/models/metaformers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/timm/models/metaformers.py b/timm/models/metaformers.py index 7a90b448..1cb13141 100644 --- a/timm/models/metaformers.py +++ b/timm/models/metaformers.py @@ -573,7 +573,7 @@ class MetaFormer(nn.Module): return x if pre_logits else self.head.fc(x) def forward_features(self, x): - x = self.patch_embed(x) + x = self.stem(x) x = self.stages(x) x = self.norm_pre(x) return x