Skip to content

Commit 5d4c798

Browse files
committed
cleanup sepvit
1 parent d65a742 commit 5d4c798

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
setup(
44
name = 'vit-pytorch',
55
packages = find_packages(exclude=['examples']),
6-
version = '0.32.0',
6+
version = '0.32.1',
77
license='MIT',
88
description = 'Vision Transformer (ViT) - Pytorch',
99
author = 'Phil Wang',

vit_pytorch/sep_vit.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,8 +253,6 @@ def __init__(
253253
dropout = 0.
254254
):
255255
super().__init__()
256-
self.to_patches = nn.Conv2d(channels, dim, 7, stride = 4, padding = 3)
257-
258256
assert isinstance(depth, tuple), 'depth needs to be tuple if integers indicating number of transformer blocks at that stage'
259257

260258
num_stages = len(depth)

0 commit comments

Comments
 (0)