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

Update vision_transformers.py #164

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
4 changes: 2 additions & 2 deletions pytorchvideo/models/vision_transformers.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,14 +247,14 @@ def create_multiscale_vision_transformers(
)

input_dims = [temporal_size, spatial_size[0], spatial_size[1]]
input_stirde = (
input_stride = (
(1,) + tuple(conv_patch_embed_stride)
if use_2d_patch
else conv_patch_embed_stride
)

patch_embed_shape = (
[input_dims[i] // input_stirde[i] for i in range(len(input_dims))]
[input_dims[i] // input_stride[i] for i in range(len(input_dims))]
if enable_patch_embed
else input_dims
)
Expand Down