forked from espnet/espnet
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request espnet#5414 from Emrys365/espnet2_enh
Update the Enh framework to support training with variable numbers of speakers
- Loading branch information
Showing
17 changed files
with
661 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
# This is a debug config for CI | ||
encoder: conv | ||
encoder_conf: | ||
channel: 2 | ||
kernel_size: 2 | ||
stride: 8 | ||
|
||
decoder: conv | ||
decoder_conf: | ||
channel: 2 | ||
kernel_size: 2 | ||
stride: 8 | ||
|
||
extractor: td_speakerbeam | ||
extractor_conf: | ||
layer: 2 | ||
stack: 2 | ||
bottleneck_dim: 2 | ||
hidden_dim: 2 | ||
skip_dim: 2 | ||
kernel: 3 | ||
causal: false | ||
norm_type: gLN | ||
nonlinear: relu | ||
# enrollment related | ||
i_adapt_layer: 1 | ||
adapt_layer_type: mul | ||
adapt_enroll_dim: 2 | ||
|
||
criterions: | ||
# The first criterion | ||
- name: snr | ||
conf: | ||
eps: 1.0e-7 | ||
wrapper: fixed_order | ||
wrapper_conf: | ||
weight: 1.0 | ||
|
||
optim: adam | ||
|
||
iterator_type: chunk | ||
|
||
chunk_length: 5000 | ||
# exclude keys "enroll_ref", "enroll_ref1", "enroll_ref2", ... | ||
# from the length consistency check in ChunkIterFactory | ||
chunk_excluded_key_prefixes: | ||
- "enroll_ref" | ||
|
||
model_conf: | ||
num_spk: 3 # the maximum possible number of speakers in the model | ||
flexible_numspk: true | ||
share_encoder: true | ||
|
||
preprocessor: enh | ||
preprocessor_conf: | ||
num_spk: 3 # the maximum possible number of speakers in the preprocessor | ||
train_spk2enroll: null | ||
enroll_segment: 5000 | ||
load_spk_embedding: false | ||
load_all_speakers: true | ||
flexible_numspk: true | ||
categories: | ||
- 1spk | ||
- 2spk | ||
- 3spk | ||
|
||
max_epoch: 1 | ||
num_iters_per_epoch: 1 |
68 changes: 68 additions & 0 deletions
68
egs2/mini_an4/tse1/conf/train_variable_nspk_random_enrollment_debug.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
# This is a debug config for CI | ||
encoder: conv | ||
encoder_conf: | ||
channel: 2 | ||
kernel_size: 2 | ||
stride: 8 | ||
|
||
decoder: conv | ||
decoder_conf: | ||
channel: 2 | ||
kernel_size: 2 | ||
stride: 8 | ||
|
||
extractor: td_speakerbeam | ||
extractor_conf: | ||
layer: 2 | ||
stack: 2 | ||
bottleneck_dim: 2 | ||
hidden_dim: 2 | ||
skip_dim: 2 | ||
kernel: 3 | ||
causal: false | ||
norm_type: gLN | ||
nonlinear: relu | ||
# enrollment related | ||
i_adapt_layer: 1 | ||
adapt_layer_type: mul | ||
adapt_enroll_dim: 2 | ||
|
||
criterions: | ||
# The first criterion | ||
- name: snr | ||
conf: | ||
eps: 1.0e-7 | ||
wrapper: fixed_order | ||
wrapper_conf: | ||
weight: 1.0 | ||
|
||
optim: adam | ||
|
||
iterator_type: chunk | ||
|
||
chunk_length: 5000 | ||
# exclude keys "enroll_ref", "enroll_ref1", "enroll_ref2", ... | ||
# from the length consistency check in ChunkIterFactory | ||
chunk_excluded_key_prefixes: | ||
- "enroll_ref" | ||
|
||
model_conf: | ||
num_spk: 3 # the maximum possible number of speakers in the model | ||
flexible_numspk: true | ||
share_encoder: true | ||
|
||
preprocessor: enh | ||
preprocessor_conf: | ||
num_spk: 3 # the maximum possible number of speakers in the preprocessor | ||
train_spk2enroll: data/train_nodev/spk2enroll.json | ||
enroll_segment: 5000 | ||
load_spk_embedding: false | ||
load_all_speakers: true | ||
flexible_numspk: true | ||
categories: | ||
- 1spk | ||
- 2spk | ||
- 3spk | ||
|
||
max_epoch: 1 | ||
num_iters_per_epoch: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.