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
0946c781
Commit
0946c781
authored
Apr 21, 2021
by
Anthony Larcher
Browse files
clean
parent
ca227311
Changes
1
Hide whitespace changes
Inline
Side-by-side
nnet/xvector.py
View file @
0946c781
...
...
@@ -1023,6 +1023,10 @@ def get_network(model_opts, local_rank):
if
name
.
split
(
"."
)[
0
]
in
model_opts
[
"reset_parts"
]:
param
.
requires_grad
=
False
if
model_opts
[
"loss"
][
"type"
]
==
"aam"
and
not
(
model_opts
[
"loss"
][
"aam_margin"
]
==
0.2
and
model_opts
[
"loss"
][
"aam_s"
]
==
30
):
model
.
after_speaker_embedding
.
change_params
(
model_opts
[
"loss"
][
"aam_s"
],
model_opts
[
"loss"
][
"aam_margin"
])
print
(
f
"Modified AAM: margin =
{
model
.
after_speaker_embedding
.
m
}
and s =
{
model
.
after_speaker_embedding
.
s
}
"
)
if
local_rank
<
1
:
logging
.
info
(
model
)
logging
.
info
(
"Model_parameters_count: {:d}"
.
format
(
...
...
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