Skip to content

Minor Swin Transformer fixes #6054

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

Merged
merged 2 commits into from
May 19, 2022
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions hubconf.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
shufflenet_v2_x2_0,
)
from torchvision.models.squeezenet import squeezenet1_0, squeezenet1_1
from torchvision.models.swin_transformer import swin_t, swin_s, swin_b
from torchvision.models.vgg import vgg11, vgg13, vgg16, vgg19, vgg11_bn, vgg13_bn, vgg16_bn, vgg19_bn
from torchvision.models.vision_transformer import (
vit_b_16,
Expand Down
Binary file modified test/expect/ModelTester.test_swin_b_expect.pkl
Binary file not shown.
Binary file modified test/expect/ModelTester.test_swin_s_expect.pkl
Binary file not shown.
2 changes: 2 additions & 0 deletions test/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,8 @@ def _check_input_backprop(model, inputs):
"regnet_x_16gf",
"regnet_x_32gf",
"swin_t",
"swin_s",
"swin_b",
]
for m in slow_models:
_model_params[m] = {"input_shape": (1, 3, 64, 64)}
Expand Down