We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f8bec5e commit 1123063Copy full SHA for 1123063
vit_pytorch/cct.py
@@ -316,6 +316,9 @@ def __init__(
316
pooling_kernel_size=3,
317
pooling_stride=2,
318
pooling_padding=1,
319
+ dropout_rate=0.,
320
+ attention_dropout=0.1,
321
+ stochastic_depth_rate=0.1,
322
*args, **kwargs
323
):
324
super().__init__()
@@ -340,9 +343,9 @@ def __init__(
340
343
width=img_width),
341
344
embedding_dim=embedding_dim,
342
345
seq_pool=True,
- dropout_rate=0.,
- attention_dropout=0.1,
- stochastic_depth=0.1,
346
+ dropout_rate=dropout_rate,
347
+ attention_dropout=attention_dropout,
348
+ stochastic_depth_rate=stochastic_depth_rate,
349
*args, **kwargs)
350
351
def forward(self, x):
0 commit comments