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
0df15d91
Commit
0df15d91
authored
Jun 04, 2021
by
Anthony Larcher
Browse files
cleaning
parent
19d860e6
Changes
2
Show whitespace changes
Inline
Side-by-side
nnet/__init__.py
View file @
0df15d91
...
@@ -48,14 +48,7 @@ from .preprocessor import RawPreprocessor
...
@@ -48,14 +48,7 @@ from .preprocessor import RawPreprocessor
from
.preprocessor
import
MfccFrontEnd
from
.preprocessor
import
MfccFrontEnd
from
.preprocessor
import
MelSpecFrontEnd
from
.preprocessor
import
MelSpecFrontEnd
has_pyroom
=
True
try
:
import
pyroomacoustics
except
ImportError
:
has_pyroom
=
False
if
has_pyroom
:
from
.augmentation
import
AddReverb
__author__
=
"Anthony Larcher and Sylvain Meignier"
__author__
=
"Anthony Larcher and Sylvain Meignier"
...
...
nnet/xvector.py
View file @
0df15d91
...
@@ -1492,17 +1492,17 @@ def xtrain(dataset_description,
...
@@ -1492,17 +1492,17 @@ def xtrain(dataset_description,
validation_non_indices
,
validation_non_indices
,
training_opts
[
"mixed_precision"
])
training_opts
[
"mixed_precision"
])
test_eer
=
None
#
test_eer = None
if
training_opts
[
"compute_test_eer"
]
and
local_rank
<
1
:
#
if training_opts["compute_test_eer"] and local_rank < 1:
test_eer
=
test_metrics
(
model
,
device
,
model_opts
,
dataset_opts
,
training_opts
)
#
test_eer = test_metrics(model, device, model_opts, dataset_opts, training_opts)
monitor
.
update
(
test_eer
=
test_eer
,
monitor
.
update
(
test_eer
=
test_eer
,
val_eer
=
val_eer
,
val_eer
=
val_eer
,
val_loss
=
val_loss
,
val_loss
=
val_loss
,
val_acc
=
val_acc
)
val_acc
=
val_acc
)
if
local_rank
<
1
:
#
if local_rank < 1:
monitor
.
display
()
#
monitor.display()
# Save the current model and if needed update the best one
# Save the current model and if needed update the best one
# TODO ajouter une option qui garde les modèles à certaines époques (par exemple avant le changement de LR
# TODO ajouter une option qui garde les modèles à certaines époques (par exemple avant le changement de LR
...
...
Write
Preview
Supports
Markdown
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