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

Fix typo in mvit.py #14

Open
wants to merge 1 commit into
base: onnx
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
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def __init__(
stride_q (int): stride size for q pooling layer.
stride_kv (int): stride size for kv pooling layer.
residual_pooling (bool): If true, enable residual pooling.
use_rel_pos (bool): If True, add relative postional embeddings to the attention map.
use_rel_pos (bool): If True, add relative positional embeddings to the attention map.
rel_pos_zero_init (bool): If True, zero initialize relative positional parameters.
input_size (int or None): Input resolution.
"""
Expand Down Expand Up @@ -212,7 +212,7 @@ def __init__(
residual_pooling (bool): If true, enable residual pooling.
window_size (int): Window size for window attention blocks. If it equals 0, then not
use window attention.
use_rel_pos (bool): If True, add relative postional embeddings to the attention map.
use_rel_pos (bool): If True, add relative positional embeddings to the attention map.
rel_pos_zero_init (bool): If True, zero initialize relative positional parameters.
input_size (int or None): Input resolution.
"""
Expand Down Expand Up @@ -322,7 +322,7 @@ def __init__(
norm_layer (nn.Module): Normalization layer.
act_layer (nn.Module): Activation layer.
use_abs_pos (bool): If True, use absolute positional embeddings.
use_rel_pos (bool): If True, add relative postional embeddings to the attention map.
use_rel_pos (bool): If True, add relative positional embeddings to the attention map.
rel_pos_zero_init (bool): If True, zero initialize relative positional parameters.
window_size (int): Window size for window attention blocks.
use_act_checkpoint (bool): If True, use activation checkpointing.
Expand Down