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 cc056a1
Showing 1 changed file with 3 additions and 2 deletions.
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 cc056a1

Please sign in to comment.