Skip to content

Commit

Permalink
follow @arquolo feedback and advice for MaxViT
Browse files Browse the repository at this point in the history
  • Loading branch information
lucidrains committed Jun 29, 2022
1 parent 2c6dd70 commit 9f87d1c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -3,7 +3,7 @@
setup(
name = 'vit-pytorch',
packages = find_packages(exclude=['examples']),
version = '0.35.5',
version = '0.35.6',
license='MIT',
description = 'Vision Transformer (ViT) - Pytorch',
long_description_content_type = 'text/markdown',
Expand Down
4 changes: 3 additions & 1 deletion vit_pytorch/max_vit.py
Expand Up @@ -103,7 +103,9 @@ def MBConv(
nn.Conv2d(dim_in, hidden_dim, 1),
nn.BatchNorm2d(hidden_dim),
nn.GELU(),
nn.Conv2d(hidden_dim, hidden_dim, 3, stride = stride, padding = 1, groups = dim_out),
nn.Conv2d(hidden_dim, hidden_dim, 3, stride = stride, padding = 1, groups = hidden_dim),
nn.BatchNorm2d(hidden_dim),
nn.GELU(),
SqueezeExcitation(hidden_dim, shrinkage_rate = shrinkage_rate),
nn.Conv2d(hidden_dim, dim_out, 1),
nn.BatchNorm2d(dim_out)
Expand Down

0 comments on commit 9f87d1c

Please sign in to comment.