Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add regnet_y_128gf from SWAG #5732

Merged
merged 4 commits into from
Apr 4, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions torchvision/models/regnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -629,8 +629,19 @@ class RegNet_Y_32GF_Weights(WeightsEnum):


class RegNet_Y_128GF_Weights(WeightsEnum):
# weights are not available yet.
pass
IMAGENET1K_SWAG_V1 = Weights(
url="https://download.pytorch.org/models/regnet_y_128gf_swag-c8ce3e52.pth",
transforms=partial(
ImageClassification, crop_size=384, resize_size=384, interpolation=InterpolationMode.BICUBIC
),
meta={
**_COMMON_SWAG_META,
"num_params": 644812894,
"acc@1": 88.228,
"acc@5": 98.682,
},
)
DEFAULT = IMAGENET1K_SWAG_V1


class RegNet_X_400MF_Weights(WeightsEnum):
Expand Down