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

fixed stride typo #106

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 @@ -237,12 +237,12 @@ def create_multiscale_vision_transformers(
)

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

patch_embed_dims = [
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))
]
cls_positional_encoding = SpatioTemporalClsPositionalEncoding(
embed_dim=patch_embed_dim,
Expand Down