Skip to content

Commit

Permalink
Typo fix in comment in mvit.py (#6618)
Browse files Browse the repository at this point in the history
Co-authored-by: Nicolas Hug <contact@nicolas-hug.com>
  • Loading branch information
yakhyo and NicolasHug authored Sep 21, 2022
1 parent 0de3e5b commit cffb7f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torchvision/models/video/mvit.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def _add_rel_pos(
k_t_ratio = max(q_t / k_t, 1.0)
dist_t = torch.arange(q_t)[:, None] * q_t_ratio - (torch.arange(k_t)[None, :] + (1.0 - k_t)) * k_t_ratio

# Intepolate rel pos if needed.
# Interpolate rel pos if needed.
rel_pos_h = _interpolate(rel_pos_h, dh)
rel_pos_w = _interpolate(rel_pos_w, dw)
rel_pos_t = _interpolate(rel_pos_t, dt)
Expand Down

0 comments on commit cffb7f7

Please sign in to comment.