Skip to content

Commit fd5c99d

Browse files
committed
Repackage weights.
1 parent 290440b commit fd5c99d

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

torchvision/prototype/models/convnext.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030

3131
class LayerNorm2d(nn.LayerNorm):
3232
def forward(self, x: Tensor) -> Tensor:
33-
# TODO: Benchmark this against the approach described at https://github.com/pytorch/vision/pull/5197#discussion_r786251298
3433
x = x.permute(0, 2, 3, 1)
3534
x = F.layer_norm(x, self.normalized_shape, self.weight, self.bias, self.eps)
3635
x = x.permute(0, 3, 1, 2)
@@ -219,7 +218,7 @@ def _convnext(
219218

220219
class ConvNeXt_Tiny_Weights(WeightsEnum):
221220
IMAGENET1K_V1 = Weights(
222-
url="https://download.pytorch.org/models/convnext_tiny-47b116bd.pth", # TODO: repackage
221+
url="https://download.pytorch.org/models/convnext_tiny-983f1562.pth",
223222
transforms=partial(ImageNetEval, crop_size=224, resize_size=236),
224223
meta={
225224
**_COMMON_META,
@@ -233,7 +232,7 @@ class ConvNeXt_Tiny_Weights(WeightsEnum):
233232

234233
class ConvNeXt_Small_Weights(WeightsEnum):
235234
IMAGENET1K_V1 = Weights(
236-
url="https://download.pytorch.org/models/convnext_small-9aa23d28.pth", # TODO: repackage
235+
url="https://download.pytorch.org/models/convnext_small-0c510722.pth",
237236
transforms=partial(ImageNetEval, crop_size=224, resize_size=230),
238237
meta={
239238
**_COMMON_META,
@@ -247,7 +246,7 @@ class ConvNeXt_Small_Weights(WeightsEnum):
247246

248247
class ConvNeXt_Base_Weights(WeightsEnum):
249248
IMAGENET1K_V1 = Weights(
250-
url="https://download.pytorch.org/models/convnext_base-3b9f985d.pth", # TODO: repackage
249+
url="https://download.pytorch.org/models/convnext_base-6075fbad.pth",
251250
transforms=partial(ImageNetEval, crop_size=224, resize_size=232),
252251
meta={
253252
**_COMMON_META,
@@ -261,7 +260,7 @@ class ConvNeXt_Base_Weights(WeightsEnum):
261260

262261
class ConvNeXt_Large_Weights(WeightsEnum):
263262
IMAGENET1K_V1 = Weights(
264-
url="https://download.pytorch.org/models/convnext_large-d73f62ac.pth", # TODO: repackage
263+
url="https://download.pytorch.org/models/convnext_large-ea097f82.pth",
265264
transforms=partial(ImageNetEval, crop_size=224, resize_size=232),
266265
meta={
267266
**_COMMON_META,

0 commit comments

Comments
 (0)