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 support of MViTv2 video variants #6373

Merged
merged 21 commits into from
Aug 10, 2022
Merged
Show file tree
Hide file tree
Changes from 9 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
3 changes: 2 additions & 1 deletion docs/source/models/video_mvit.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ The MViT model is based on the
Model builders
--------------

The following model builders can be used to instantiate a MViT model, with or
The following model builders can be used to instantiate a MViT v1 or v2 model, with or
without pre-trained weights. All the model builders internally rely on the
``torchvision.models.video.MViT`` base class. Please refer to the `source
code
Expand All @@ -24,3 +24,4 @@ more details about this class.
:template: function.rst

mvit_v1_b
mvit_v2_s
Binary file added test/expect/ModelTester.test_mvit_v2_s_expect.pkl
Binary file not shown.
3 changes: 3 additions & 0 deletions test/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,9 @@ def _check_input_backprop(model, inputs):
"mvit_v1_b": {
"input_shape": (1, 3, 16, 224, 224),
},
"mvit_v2_s": {
"input_shape": (1, 3, 16, 224, 224),
},
}
# speeding up slow models:
slow_models = [
Expand Down
Loading