feat: update
Browse files
.gitignore
CHANGED
|
@@ -3,4 +3,4 @@ python39
|
|
| 3 |
heygem
|
| 4 |
.vscode
|
| 5 |
python39.tar.gz
|
| 6 |
-
examples
|
|
|
|
| 3 |
heygem
|
| 4 |
.vscode
|
| 5 |
python39.tar.gz
|
| 6 |
+
/examples
|
codes/wenet/examples/aishell/aidata/conf/train_conformer_multi_cn.yaml
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# network architecture
|
| 2 |
+
# encoder related
|
| 3 |
+
encoder: conformer
|
| 4 |
+
encoder_conf:
|
| 5 |
+
output_size: 256 # dimension of attention
|
| 6 |
+
attention_heads: 4
|
| 7 |
+
linear_units: 2048 # the number of units of position-wise feed forward
|
| 8 |
+
num_blocks: 12 # the number of encoder blocks
|
| 9 |
+
dropout_rate: 0.1
|
| 10 |
+
positional_dropout_rate: 0.1
|
| 11 |
+
attention_dropout_rate: 0.0
|
| 12 |
+
input_layer: conv2d # encoder input type, you can chose conv2d, conv2d6 and conv2d8
|
| 13 |
+
normalize_before: true
|
| 14 |
+
cnn_module_kernel: 15
|
| 15 |
+
use_cnn_module: True
|
| 16 |
+
activation_type: 'swish'
|
| 17 |
+
pos_enc_layer_type: 'rel_pos'
|
| 18 |
+
selfattention_layer_type: 'rel_selfattn'
|
| 19 |
+
|
| 20 |
+
# decoder related
|
| 21 |
+
decoder: transformer
|
| 22 |
+
decoder_conf:
|
| 23 |
+
attention_heads: 4
|
| 24 |
+
linear_units: 2048
|
| 25 |
+
num_blocks: 6
|
| 26 |
+
dropout_rate: 0.1
|
| 27 |
+
positional_dropout_rate: 0.1
|
| 28 |
+
self_attention_dropout_rate: 0.0
|
| 29 |
+
src_attention_dropout_rate: 0.0
|
| 30 |
+
|
| 31 |
+
# hybrid CTC/attention
|
| 32 |
+
model_conf:
|
| 33 |
+
ctc_weight: 0.3
|
| 34 |
+
lsm_weight: 0.1 # label smoothing option
|
| 35 |
+
length_normalized_loss: false
|
| 36 |
+
|
| 37 |
+
# use raw_wav or kaldi feature
|
| 38 |
+
raw_wav: false
|
| 39 |
+
|
| 40 |
+
# feature extraction
|
| 41 |
+
collate_conf:
|
| 42 |
+
# waveform level config
|
| 43 |
+
wav_distortion_conf:
|
| 44 |
+
wav_dither: 0.1
|
| 45 |
+
wav_distortion_rate: 0.0
|
| 46 |
+
distortion_methods: []
|
| 47 |
+
speed_perturb: true
|
| 48 |
+
feature_extraction_conf:
|
| 49 |
+
feature_type: 'fbank'
|
| 50 |
+
mel_bins: 80
|
| 51 |
+
frame_shift: 10
|
| 52 |
+
frame_length: 25
|
| 53 |
+
using_pitch: false
|
| 54 |
+
# spec level config
|
| 55 |
+
# spec_swap: false
|
| 56 |
+
feature_dither: 0.0 # add dither [-feature_dither,feature_dither] on fbank feature
|
| 57 |
+
spec_aug: true
|
| 58 |
+
spec_aug_conf:
|
| 59 |
+
warp_for_time: False
|
| 60 |
+
num_t_mask: 2
|
| 61 |
+
num_f_mask: 2
|
| 62 |
+
max_t: 50
|
| 63 |
+
max_f: 10
|
| 64 |
+
max_w: 80
|
| 65 |
+
|
| 66 |
+
|
| 67 |
+
# dataset related
|
| 68 |
+
dataset_conf:
|
| 69 |
+
max_length: 1300 #40960
|
| 70 |
+
min_length: 0
|
| 71 |
+
batch_type: 'static' # static or dynamic
|
| 72 |
+
batch_size: 40
|
| 73 |
+
sort: true
|
| 74 |
+
|
| 75 |
+
grad_clip: 5
|
| 76 |
+
accum_grad: 4
|
| 77 |
+
max_epoch: 240
|
| 78 |
+
log_interval: 100
|
| 79 |
+
|
| 80 |
+
optim: adam
|
| 81 |
+
optim_conf:
|
| 82 |
+
lr: 0.0025 #0.0025
|
| 83 |
+
scheduler: warmuplr # pytorch v1.1.0+ required
|
| 84 |
+
scheduler_conf:
|
| 85 |
+
warmup_steps: 100000
|
codes/wenet/examples/aishell/aidata/conf/train_conformer_multi_cn_linear.yaml
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# network architecture
|
| 2 |
+
# encoder related
|
| 3 |
+
encoder: conformer
|
| 4 |
+
encoder_conf:
|
| 5 |
+
output_size: 256 # dimension of attention
|
| 6 |
+
attention_heads: 4
|
| 7 |
+
linear_units: 1024 # the number of units of position-wise feed forward
|
| 8 |
+
num_blocks: 6 # the number of encoder blocks
|
| 9 |
+
dropout_rate: 0.1
|
| 10 |
+
positional_dropout_rate: 0.1
|
| 11 |
+
attention_dropout_rate: 0.0
|
| 12 |
+
input_layer: linear # encoder input type, you can chose linear,conv2d, conv2d6 and conv2d8
|
| 13 |
+
normalize_before: true
|
| 14 |
+
cnn_module_kernel: 15
|
| 15 |
+
use_cnn_module: True
|
| 16 |
+
activation_type: 'swish'
|
| 17 |
+
pos_enc_layer_type: 'rel_pos'
|
| 18 |
+
selfattention_layer_type: 'rel_selfattn'
|
| 19 |
+
|
| 20 |
+
# decoder related
|
| 21 |
+
decoder: transformer
|
| 22 |
+
decoder_conf:
|
| 23 |
+
attention_heads: 4
|
| 24 |
+
linear_units: 1024
|
| 25 |
+
num_blocks: 3
|
| 26 |
+
dropout_rate: 0.1
|
| 27 |
+
positional_dropout_rate: 0.1
|
| 28 |
+
self_attention_dropout_rate: 0.0
|
| 29 |
+
src_attention_dropout_rate: 0.0
|
| 30 |
+
|
| 31 |
+
# hybrid CTC/attention
|
| 32 |
+
model_conf:
|
| 33 |
+
ctc_weight: 0.3
|
| 34 |
+
lsm_weight: 0.1 # label smoothing option
|
| 35 |
+
length_normalized_loss: false
|
| 36 |
+
|
| 37 |
+
# use raw_wav or kaldi feature
|
| 38 |
+
raw_wav: false
|
| 39 |
+
|
| 40 |
+
# feature extraction
|
| 41 |
+
collate_conf:
|
| 42 |
+
# waveform level config
|
| 43 |
+
wav_distortion_conf:
|
| 44 |
+
wav_dither: 0.1
|
| 45 |
+
wav_distortion_rate: 0.0
|
| 46 |
+
distortion_methods: []
|
| 47 |
+
speed_perturb: true
|
| 48 |
+
feature_extraction_conf:
|
| 49 |
+
feature_type: 'fbank'
|
| 50 |
+
mel_bins: 80
|
| 51 |
+
frame_shift: 10
|
| 52 |
+
frame_length: 25
|
| 53 |
+
using_pitch: false
|
| 54 |
+
# spec level config
|
| 55 |
+
# spec_swap: false
|
| 56 |
+
feature_dither: 0.0 # add dither [-feature_dither,feature_dither] on fbank feature
|
| 57 |
+
spec_aug: true
|
| 58 |
+
spec_aug_conf:
|
| 59 |
+
warp_for_time: False
|
| 60 |
+
num_t_mask: 2
|
| 61 |
+
num_f_mask: 2
|
| 62 |
+
max_t: 50
|
| 63 |
+
max_f: 10
|
| 64 |
+
max_w: 80
|
| 65 |
+
|
| 66 |
+
|
| 67 |
+
# dataset related
|
| 68 |
+
dataset_conf:
|
| 69 |
+
max_length: 1300 #40960
|
| 70 |
+
min_length: 0
|
| 71 |
+
batch_type: 'static' # static or dynamic
|
| 72 |
+
batch_size: 40
|
| 73 |
+
sort: true
|
| 74 |
+
|
| 75 |
+
grad_clip: 5
|
| 76 |
+
accum_grad: 4
|
| 77 |
+
max_epoch: 240
|
| 78 |
+
log_interval: 100
|
| 79 |
+
|
| 80 |
+
optim: adam
|
| 81 |
+
optim_conf:
|
| 82 |
+
lr: 0.002
|
| 83 |
+
scheduler: warmuplr # pytorch v1.1.0+ required
|
| 84 |
+
scheduler_conf:
|
| 85 |
+
warmup_steps: 50000
|
data/log/dh.log
CHANGED
|
@@ -1 +1,7 @@
|
|
| 1 |
[2025-05-21 13:53:51,800] [cv_logging.py[line:27]] [INFO] [Use default multi mode: multi-thread, or you can set env 'CV_MULTI_MODE' to multi-process/torch-process]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
[2025-05-21 13:53:51,800] [cv_logging.py[line:27]] [INFO] [Use default multi mode: multi-thread, or you can set env 'CV_MULTI_MODE' to multi-process/torch-process]
|
| 2 |
+
[2025-05-21 14:10:15,702] [cv_logging.py[line:27]] [INFO] [Use default multi mode: multi-thread, or you can set env 'CV_MULTI_MODE' to multi-process/torch-process]
|
| 3 |
+
[2025-05-21 14:10:17,488] [__init__.py[line:533]] [WARNING] [mkdir -p failed for path /home/user/.cache/matplotlib: [Errno 13] Permission denied: '/home/user/.cache/matplotlib']
|
| 4 |
+
[2025-05-21 14:10:17,489] [__init__.py[line:550]] [WARNING] [Matplotlib created a temporary cache directory at /tmp/matplotlib-hz8kuiys because there was an issue with the default path (/home/user/.cache/matplotlib); it is highly recommended to set the MPLCONFIGDIR environment variable to a writable directory, in particular to speed up the import of Matplotlib and to better support multiprocessing.]
|
| 5 |
+
[2025-05-21 14:10:17,657] [font_manager.py[line:1584]] [INFO] [generated new fontManager]
|
| 6 |
+
[2025-05-21 14:10:17,823] [app_local.py[line:233]] [WARNING] [ -> 服务不进行注册]
|
| 7 |
+
[2025-05-21 14:10:17,823] [app_local.py[line:234]] [INFO] [TransDhTask init]
|