Skip to content

Commit

Permalink
cleanup sepvit
Browse files Browse the repository at this point in the history
  • Loading branch information
lucidrains committed Mar 31, 2022
1 parent d65a742 commit 5d4c798
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
setup(
name = 'vit-pytorch',
packages = find_packages(exclude=['examples']),
version = '0.32.0',
version = '0.32.1',
license='MIT',
description = 'Vision Transformer (ViT) - Pytorch',
author = 'Phil Wang',
Expand Down
2 changes: 0 additions & 2 deletions vit_pytorch/sep_vit.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,6 @@ def __init__(
dropout = 0.
):
super().__init__()
self.to_patches = nn.Conv2d(channels, dim, 7, stride = 4, padding = 3)

assert isinstance(depth, tuple), 'depth needs to be tuple if integers indicating number of transformer blocks at that stage'

num_stages = len(depth)
Expand Down

0 comments on commit 5d4c798

Please sign in to comment.