Skip to content

Commit

Permalink
allow channels to be customizable for cvt
Browse files Browse the repository at this point in the history
  • Loading branch information
lucidrains committed Oct 25, 2023
1 parent 92b6932 commit 0ad09c4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions 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 = '1.6.2',
version = '1.6.3',
license='MIT',
description = 'Vision Transformer (ViT) - Pytorch',
long_description_content_type = 'text/markdown',
Expand Down
5 changes: 3 additions & 2 deletions vit_pytorch/cvt.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,12 +140,13 @@ def __init__(
s3_heads = 6,
s3_depth = 10,
s3_mlp_mult = 4,
dropout = 0.
dropout = 0.,
channels = 3
):
super().__init__()
kwargs = dict(locals())

dim = 3
dim = channels
layers = []

for prefix in ('s1', 's2', 's3'):
Expand Down

0 comments on commit 0ad09c4

Please sign in to comment.