Skip to content

Commit

Permalink
fix deit
Browse files Browse the repository at this point in the history
  • Loading branch information
gau-nernst committed Oct 29, 2023
1 parent cad7d5b commit c5f1889
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions vision_toolbox/backbones/deit.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ def __init__(
) -> None:
# fmt: off
super().__init__(
d_model, depth, n_heads, patch_size, img_size, True, bias, mlp_ratio,
dropout, layer_scale_init, stochastic_depth, norm_eps
d_model, depth, n_heads, patch_size, img_size, True, "cls_token", bias,
mlp_ratio, dropout, layer_scale_init, stochastic_depth, norm_eps,
)
# fmt: on
self.dist_token = nn.Parameter(torch.zeros(1, 1, d_model))
Expand Down Expand Up @@ -133,7 +133,7 @@ def __init__(
):
# fmt: off
super().__init__(
d_model, depth, n_heads, patch_size, img_size, cls_token, bias,
d_model, depth, n_heads, patch_size, img_size, cls_token, "cls_token", bias,
mlp_ratio, dropout, layer_scale_init, stochastic_depth, norm_eps,
)
# fmt: on
Expand Down

0 comments on commit c5f1889

Please sign in to comment.