Skip to content

Commit c65397d

Browse files
authored
Merge branch 'main' into mobilenet-fix
2 parents 67dce75 + 7e2050f commit c65397d

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

test/test_transforms_v2.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,8 @@
5252
from torchvision.transforms.v2.functional._utils import _get_kernel, _register_kernel_internal
5353

5454

55-
# FIXME: Put this back once https://github.com/pytorch/vision/issues/8030
56-
# and https://github.com/pytorch/pytorch/issues/110857 are addressed
5755
# turns all warnings into errors for this module
58-
# pytestmark = pytest.mark.filterwarnings("error")
56+
pytestmark = pytest.mark.filterwarnings("error")
5957

6058

6159
@pytest.fixture(autouse=True)

torchvision/models/efficientnet.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ def _efficientnet_conf(
439439
class EfficientNet_B0_Weights(WeightsEnum):
440440
IMAGENET1K_V1 = Weights(
441441
# Weights ported from https://github.com/rwightman/pytorch-image-models/
442-
url="https://download.pytorch.org/models/efficientnet_b0_rwightman-3dd342df.pth",
442+
url="https://download.pytorch.org/models/efficientnet_b0_rwightman-7f5810bc.pth",
443443
transforms=partial(
444444
ImageClassification, crop_size=224, resize_size=256, interpolation=InterpolationMode.BICUBIC
445445
),
@@ -511,7 +511,7 @@ class EfficientNet_B1_Weights(WeightsEnum):
511511
class EfficientNet_B2_Weights(WeightsEnum):
512512
IMAGENET1K_V1 = Weights(
513513
# Weights ported from https://github.com/rwightman/pytorch-image-models/
514-
url="https://download.pytorch.org/models/efficientnet_b2_rwightman-bcdf34b7.pth",
514+
url="https://download.pytorch.org/models/efficientnet_b2_rwightman-c35c1473.pth",
515515
transforms=partial(
516516
ImageClassification, crop_size=288, resize_size=288, interpolation=InterpolationMode.BICUBIC
517517
),
@@ -535,7 +535,7 @@ class EfficientNet_B2_Weights(WeightsEnum):
535535
class EfficientNet_B3_Weights(WeightsEnum):
536536
IMAGENET1K_V1 = Weights(
537537
# Weights ported from https://github.com/rwightman/pytorch-image-models/
538-
url="https://download.pytorch.org/models/efficientnet_b3_rwightman-cf984f9c.pth",
538+
url="https://download.pytorch.org/models/efficientnet_b3_rwightman-b3899882.pth",
539539
transforms=partial(
540540
ImageClassification, crop_size=300, resize_size=320, interpolation=InterpolationMode.BICUBIC
541541
),
@@ -559,7 +559,7 @@ class EfficientNet_B3_Weights(WeightsEnum):
559559
class EfficientNet_B4_Weights(WeightsEnum):
560560
IMAGENET1K_V1 = Weights(
561561
# Weights ported from https://github.com/rwightman/pytorch-image-models/
562-
url="https://download.pytorch.org/models/efficientnet_b4_rwightman-7eb33cd5.pth",
562+
url="https://download.pytorch.org/models/efficientnet_b4_rwightman-23ab8bcd.pth",
563563
transforms=partial(
564564
ImageClassification, crop_size=380, resize_size=384, interpolation=InterpolationMode.BICUBIC
565565
),
@@ -583,7 +583,7 @@ class EfficientNet_B4_Weights(WeightsEnum):
583583
class EfficientNet_B5_Weights(WeightsEnum):
584584
IMAGENET1K_V1 = Weights(
585585
# Weights ported from https://github.com/lukemelas/EfficientNet-PyTorch/
586-
url="https://download.pytorch.org/models/efficientnet_b5_lukemelas-b6417697.pth",
586+
url="https://download.pytorch.org/models/efficientnet_b5_lukemelas-1a07897c.pth",
587587
transforms=partial(
588588
ImageClassification, crop_size=456, resize_size=456, interpolation=InterpolationMode.BICUBIC
589589
),
@@ -607,7 +607,7 @@ class EfficientNet_B5_Weights(WeightsEnum):
607607
class EfficientNet_B6_Weights(WeightsEnum):
608608
IMAGENET1K_V1 = Weights(
609609
# Weights ported from https://github.com/lukemelas/EfficientNet-PyTorch/
610-
url="https://download.pytorch.org/models/efficientnet_b6_lukemelas-c76e70fd.pth",
610+
url="https://download.pytorch.org/models/efficientnet_b6_lukemelas-24a108a5.pth",
611611
transforms=partial(
612612
ImageClassification, crop_size=528, resize_size=528, interpolation=InterpolationMode.BICUBIC
613613
),
@@ -631,7 +631,7 @@ class EfficientNet_B6_Weights(WeightsEnum):
631631
class EfficientNet_B7_Weights(WeightsEnum):
632632
IMAGENET1K_V1 = Weights(
633633
# Weights ported from https://github.com/lukemelas/EfficientNet-PyTorch/
634-
url="https://download.pytorch.org/models/efficientnet_b7_lukemelas-dcc49843.pth",
634+
url="https://download.pytorch.org/models/efficientnet_b7_lukemelas-c5b4e57e.pth",
635635
transforms=partial(
636636
ImageClassification, crop_size=600, resize_size=600, interpolation=InterpolationMode.BICUBIC
637637
),

0 commit comments

Comments
 (0)