Skip to content

Commit

Permalink
fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
wsstriving committed Mar 27, 2024
1 parent 8a0c923 commit 67dc4f2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions examples/voxceleb/v2/conf/gemini_dfresnet_adam.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,11 @@ loss_args: {}

optimizer: AdamW
optimizer_args:
weight_decay: 0.05
weight_decay: 0.05

scheduler: ExponentialDecrease
scheduler_args:
initial_lr: 0.000125
final_lr: 0.000001
warm_up_epoch: 0
warm_from_zero: False
warm_from_zero: False
8 changes: 4 additions & 4 deletions wespeaker/models/gemini_dfresnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ def forward(self, x):
class Gemini_DF_ResNet(nn.Module):
# DF_ResNet with T14c stride strategy of Golden Gemini
def __init__(self,
depths=[3, 3, 9, 3],
dims=[32, 64, 128, 256],
depths,
dims,
feat_dim=40,
embed_dim=128,
pooling_func='TSTP',
Expand Down Expand Up @@ -79,7 +79,7 @@ def __init__(self,
dims[i], dims[i + 1], kernel_size=3,
stride=(stride_f[i], stride_t[i]),
padding=1, bias=False),
nn.BatchNorm2d(dims[i + 1])
nn.BatchNorm2d(dims[i + 1])
)
self.downsample_layers.append(downsample_layer)

Expand Down Expand Up @@ -154,7 +154,7 @@ def Gemini_DF_ResNet183(feat_dim, embed_dim, pooling_func='TSTP', two_emb_layer=
two_emb_layer=two_emb_layer)


def Gemini_DF_ResNet237(feat_dim, embed_dim, pooling_func='TSTP', two_emb_layer=False): # not used
def Gemini_DF_ResNet237(feat_dim, embed_dim, pooling_func='TSTP', two_emb_layer=False):
return Gemini_DF_ResNet(depths=[3, 8, 63, 3],
dims=[32, 32, 64, 128, 256],
feat_dim=feat_dim,
Expand Down

0 comments on commit 67dc4f2

Please sign in to comment.