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
1c480d00
Commit
1c480d00
authored
Jul 07, 2021
by
Anthony Larcher
Browse files
API tuning
parent
e7f1f46a
Changes
1
Hide whitespace changes
Inline
Side-by-side
nnet/xvector.py
View file @
1c480d00
...
...
@@ -314,7 +314,7 @@ class TrainingMonitor():
"""
# TODO
self
.
logger
.
critical
(
f
"***Validation metrics - Cross validation accuracy =
{
self
.
val_acc
[
-
1
]
}
%, EER =
{
self
.
val_eer
[
-
1
]
*
100
}
%"
)
#
self.logger.critical(f"***Test metrics - Test EER = {self.test_eer[-1] * 100} %")
self
.
logger
.
critical
(
f
"***Test metrics - Test EER =
{
self
.
test_eer
[
-
1
]
*
100
}
%"
)
def
display_final
(
self
):
"""
...
...
@@ -1006,10 +1006,10 @@ def get_network(model_opts, local_rank):
"""
if
model_opts
[
"model_type"
]
in
[
"xvector"
,
"rawnet2"
,
"resnet34"
,
"fastresnet34"
,
"halfresnet34"
]:
model
=
Xtractor
(
model_opts
[
"speaker_number"
],
model_opts
[
"model_type"
],
loss
=
model_opts
[
"loss"
][
"type"
])
model
=
Xtractor
(
model_opts
[
"speaker_number"
],
model_opts
[
"model_type"
],
loss
=
model_opts
[
"loss"
][
"type"
]
,
embedding_size
=
model_opts
[
"embedding_size"
]
)
else
:
# Custom type of model
model
=
Xtractor
(
model_opts
[
"speaker_number"
],
model_opts
,
loss
=
model_opts
[
"loss"
][
"type"
])
model
=
Xtractor
(
model_opts
[
"speaker_number"
],
model_opts
,
loss
=
model_opts
[
"loss"
][
"type"
]
,
embedding_size
=
model_opts
[
"embedding_size"
]
)
# Load the model if it exists
if
model_opts
[
"initial_model_name"
]
is
not
None
and
os
.
path
.
isfile
(
model_opts
[
"initial_model_name"
]):
...
...
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