Skip to content
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