Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Anthony Larcher
sidekit
Commits
dc71e2b2
Commit
dc71e2b2
authored
Jun 10, 2021
by
Anthony Larcher
Browse files
Merge branch 'dev_al' of
https://git-lium.univ-lemans.fr/Larcher/sidekit
into dev_al
parents
dcfd5acc
47510e91
Changes
1
Hide whitespace changes
Inline
Side-by-side
nnet/xvector.py
View file @
dc71e2b2
...
...
@@ -1216,18 +1216,6 @@ def get_optimizer(model, model_opts, train_opts, training_loader):
cycle_momentum
=
cycle_momentum
,
mode
=
train_opts
[
"scheduler"
][
"mode"
])
#elif train_opts["scheduler"]["type"] == 'CyclicLR1':
# cycle_momentum = True
# if train_opts["optimizer"]["type"] == "adam":
# cycle_momentum = False
# scheduler = torch.optim.lr_scheduler.CyclicLR(optimizer=optimizer,
# base_lr=1e-8,
# max_lr=train_opts["lr"],
# step_size_up=model_opts["speaker_number"] * 4,
# step_size_down=None,
# cycle_momentum=cycle_momentum,
# mode="triangular")
elif
train_opts
[
"scheduler"
][
"type"
]
==
"MultiStepLR"
:
scheduler
=
torch
.
optim
.
lr_scheduler
.
MultiStepLR
(
optimizer
=
optimizer
,
milestones
=
[
10000
,
50000
,
100000
],
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment