-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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 #4770 from espnet/master
Update uasr
- Loading branch information
Showing
74 changed files
with
2,988 additions
and
24 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
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,27 @@ | ||
optim: adam | ||
max_epoch: 30 | ||
batch_type: folded | ||
batch_size: 1024 # 300 for word LMs | ||
lm: transformer | ||
lm_conf: | ||
pos_enc: null | ||
embed_unit: 128 | ||
att_unit: 512 | ||
head: 8 | ||
unit: 2048 | ||
layer: 16 | ||
dropout_rate: 0.1 | ||
val_scheduler_criterion: | ||
- - valid | ||
- loss | ||
early_stopping_criterion: | ||
- - valid | ||
- loss | ||
- min | ||
best_model_criterion: | ||
- - valid | ||
- loss | ||
- min | ||
keep_nbest_models: 10 | ||
grad_clip: 5.0 | ||
grad_clip_type: 2.0 |
94 changes: 94 additions & 0 deletions
94
egs2/chime4/asr1/conf/tuning/train_asr_conformer_wavlm2.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,94 @@ | ||
# minibatch related | ||
batch_type: numel | ||
batch_bins: 4000000 | ||
accum_grad: 1 | ||
grad_clip: 5 | ||
max_epoch: 100 | ||
patience: none | ||
# The initialization method for model parameters | ||
init: xavier_uniform | ||
val_scheduler_criterion: | ||
- valid | ||
- loss | ||
best_model_criterion: | ||
- - valid | ||
- acc | ||
- max | ||
keep_nbest_models: 10 | ||
unused_parameters: true | ||
freeze_param: [ | ||
"frontend.upstream" | ||
] | ||
|
||
# network architecture | ||
frontend: s3prl | ||
frontend_conf: | ||
frontend_conf: | ||
upstream: wavlm_large # Note: If the upstream is changed, please change the input_size in the preencoder. | ||
download_dir: ./hub | ||
multilayer_feature: True | ||
|
||
preencoder: linear | ||
preencoder_conf: | ||
input_size: 1024 # Note: If the upstream is changed, please change this value accordingly. | ||
output_size: 80 | ||
|
||
# encoder related | ||
encoder: conformer | ||
encoder_conf: | ||
output_size: 256 | ||
attention_heads: 4 | ||
linear_units: 2048 | ||
num_blocks: 12 | ||
dropout_rate: 0.1 | ||
positional_dropout_rate: 0.1 | ||
attention_dropout_rate: 0.0 | ||
input_layer: conv2d2 | ||
normalize_before: true | ||
macaron_style: true | ||
pos_enc_layer_type: "rel_pos" | ||
selfattention_layer_type: "rel_selfattn" | ||
activation_type: "swish" | ||
use_cnn_module: true | ||
cnn_module_kernel: 15 | ||
|
||
# decoder related | ||
decoder: transformer | ||
decoder_conf: | ||
input_layer: embed | ||
attention_heads: 4 | ||
linear_units: 2048 | ||
num_blocks: 6 | ||
dropout_rate: 0.1 | ||
positional_dropout_rate: 0.1 | ||
self_attention_dropout_rate: 0.0 | ||
src_attention_dropout_rate: 0.0 | ||
|
||
model_conf: | ||
ctc_weight: 0.3 | ||
lsm_weight: 0.1 | ||
length_normalized_loss: false | ||
extract_feats_in_collect_stats: false | ||
|
||
optim: adam | ||
optim_conf: | ||
lr: 0.001 | ||
scheduler: warmuplr | ||
scheduler_conf: | ||
warmup_steps: 20000 | ||
|
||
specaug: specaug | ||
specaug_conf: | ||
apply_time_warp: true | ||
time_warp_window: 5 | ||
time_warp_mode: bicubic | ||
apply_freq_mask: true | ||
freq_mask_width_range: | ||
- 0 | ||
- 100 | ||
num_freq_mask: 4 | ||
apply_time_mask: true | ||
time_mask_width_range: | ||
- 0 | ||
- 40 | ||
num_time_mask: 2 |
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
74 changes: 74 additions & 0 deletions
74
egs2/chime4/enh1/conf/tuning/train_enh_beamformer_wpd_ci_sdr_shorttap.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,74 @@ | ||
optim: adam | ||
init: xavier_uniform | ||
max_epoch: 50 | ||
batch_type: folded | ||
batch_size: 8 | ||
num_workers: 0 | ||
optim_conf: | ||
lr: 4.0e-4 | ||
eps: 1.0e-08 | ||
weight_decay: 0 | ||
patience: 5 | ||
val_scheduler_criterion: | ||
- valid | ||
- loss | ||
best_model_criterion: | ||
- - valid | ||
- ci_sdr | ||
- max | ||
- - valid | ||
- loss | ||
- min | ||
keep_nbest_models: 1 | ||
scheduler: reducelronplateau | ||
scheduler_conf: | ||
mode: min | ||
factor: 0.5 | ||
patience: 1 | ||
encoder: stft | ||
encoder_conf: | ||
n_fft: 512 | ||
win_length: 400 | ||
hop_length: 128 | ||
use_builtin_complex: False | ||
decoder: stft | ||
decoder_conf: | ||
n_fft: 512 | ||
win_length: 400 | ||
hop_length: 128 | ||
separator: wpe_beamformer | ||
separator_conf: | ||
num_spk: 1 | ||
loss_type: spectrum | ||
use_wpe: False | ||
wnet_type: blstmp | ||
wlayers: 3 | ||
wunits: 512 | ||
wprojs: 512 | ||
wdropout_rate: 0.1 | ||
taps: 3 | ||
delay: 3 | ||
use_dnn_mask_for_wpe: True | ||
use_beamformer: True | ||
bnet_type: blstmp | ||
blayers: 3 | ||
bunits: 512 | ||
bprojs: 512 | ||
badim: 320 | ||
ref_channel: 4 | ||
use_noise_mask: True | ||
beamformer_type: wpd_souden | ||
bdropout_rate: 0.1 | ||
rtf_iterations: 5 | ||
|
||
|
||
criterions: | ||
# The first criterion | ||
- name: ci_sdr | ||
conf: | ||
filter_length: 512 | ||
# the wrapper for the current criterion | ||
# for single-talker case, we simplely use fixed_order wrapper | ||
wrapper: fixed_order | ||
wrapper_conf: | ||
weight: 1.0 |
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
7 changes: 7 additions & 0 deletions
7
egs2/chime4/enh_asr1/conf/decode_asr_transformer_largelm.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,7 @@ | ||
batch_size: 0 | ||
beam_size: 10 | ||
penalty: 0.0 | ||
maxlenratio: 0.0 | ||
minlenratio: 0.0 | ||
ctc_weight: 0.3 | ||
lm_weight: 1.2 |
Oops, something went wrong.