We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b093dcb commit edd3d73Copy full SHA for edd3d73
timm/models/convnext.py
@@ -1,4 +1,4 @@
1
-""" ConvNext
+""" ConvNeXt
2
3
Paper: `A ConvNet for the 2020s` - https://arxiv.org/pdf/2201.03545.pdf
4
@@ -229,6 +229,7 @@ def __init__(
229
('global_pool', SelectAdaptivePool2d(pool_type=global_pool)),
230
('norm', norm_layer(self.num_features)),
231
('flatten', nn.Flatten(1) if global_pool else nn.Identity()),
232
+ ('drop', nn.Dropout(self.drop_rate)),
233
('fc', nn.Linear(self.num_features, num_classes) if num_classes > 0 else nn.Identity())
234
]))
235
0 commit comments