Skip to content

Commit

Permalink
Fix typos in MViT param descriptions (#176)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #176

Fix typos in MViT param descriptions

Reviewed By: anshulverma, bxiong1202

Differential Revision: D34865114

fbshipit-source-id: 1f84875713322db821d5a12a87449a3dba33a725
  • Loading branch information
chuckcho authored and facebook-github-bot committed Mar 29, 2022
1 parent 68740b6 commit 5e58541
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
12 changes: 6 additions & 6 deletions pytorchvideo/layers/attention.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,9 +220,9 @@ def __init__(
Otherwise, pool is applied after qkv projection. Default: False.
residual_pool (bool): If set to True, use Improved Multiscale Vision
Transformer's pooling residual connection.
depthwise_conv (bool): Wether use depthwise or full convolution for pooling.
bias_on (bool): Wether use biases for linear layers.
separate_qkv (bool): Wether to use separate or one layer for qkv projections.
depthwise_conv (bool): Whether use depthwise or full convolution for pooling.
bias_on (bool): Whether use biases for linear layers.
separate_qkv (bool): Whether to use separate or one layer for qkv projections.
"""

super().__init__()
Expand Down Expand Up @@ -543,9 +543,9 @@ def __init__(
Otherwise, pool is applied after qkv projection. Default: False.
residual_pool (bool): If set to True, use Improved Multiscale Vision
Transformer's pooling residual connection.
depthwise_conv (bool): Wether use depthwise or full convolution for pooling.
bias_on (bool): Wether use biases for linear layers.
separate_qkv (bool): Wether to use separate or one layer for qkv projections.
depthwise_conv (bool): Whether use depthwise or full convolution for pooling.
bias_on (bool): Whether use biases for linear layers.
separate_qkv (bool): Whether to use separate or one layer for qkv projections.
"""
super().__init__()
self.dim = dim
Expand Down
12 changes: 6 additions & 6 deletions pytorchvideo/layers/attention_torchscript.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,9 +204,9 @@ def __init__(
Otherwise, pool is applied after qkv projection. Default: False.
residual_pool (bool): If set to True, use Improved Multiscale Vision
Transformer's pooling residual connection.
depthwise_conv (bool): Wether use depthwise or full convolution for pooling.
bias_on (bool): Wether use biases for linear layers.
separate_qkv (bool): Wether to use separate or one layer for qkv projections.
depthwise_conv (bool): Whether use depthwise or full convolution for pooling.
bias_on (bool): Whether use biases for linear layers.
separate_qkv (bool): Whether to use separate or one layer for qkv projections.
"""

super().__init__()
Expand Down Expand Up @@ -520,9 +520,9 @@ def __init__(
Otherwise, pool is applied after qkv projection. Default: False.
residual_pool (bool): If set to True, use Improved Multiscale Vision
Transformer's pooling residual connection.
depthwise_conv (bool): Wether use depthwise or full convolution for pooling.
bias_on (bool): Wether use biases for linear layers.
separate_qkv (bool): Wether to use separate or one layer for qkv projections.
depthwise_conv (bool): Whether use depthwise or full convolution for pooling.
bias_on (bool): Whether use biases for linear layers.
separate_qkv (bool): Whether to use separate or one layer for qkv projections.
"""
super().__init__()
assert not pool_first
Expand Down
6 changes: 3 additions & 3 deletions pytorchvideo/models/vision_transformers.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,9 +269,9 @@ def create_multiscale_vision_transformers(
Otherwise, pool is applied after qkv projection. Default: False.
residual_pool (bool): If set to True, use Improved Multiscale Vision
Transformer's pooling residual connection.
depthwise_conv (bool): Wether use depthwise or full convolution for pooling.
bias_on (bool): Wether use biases for linear layers.
separate_qkv (bool): Wether to use separate or one layer for qkv projections.
depthwise_conv (bool): Whether use depthwise or full convolution for pooling.
bias_on (bool): Whether use biases for linear layers.
separate_qkv (bool): Whether to use separate or one layer for qkv projections.
embed_dim_mul (Optional[List[List[int]]]): Dimension multiplication at layer i.
If X is used, then the next block will increase the embed dimension by X
times. Format: [depth_i, mul_dim_ratio].
Expand Down

0 comments on commit 5e58541

Please sign in to comment.