Upload 12 files
Browse files- README.md +117 -0
- added_tokens.json +4 -0
- config.json +92 -0
- gitattributes +35 -0
- gitignore +1 -0
- model.safetensors +3 -0
- preprocessor_config.json +19 -0
- pytorch_model.bin +3 -0
- special_tokens_map.json +13 -0
- spm_char.model +3 -0
- tokenizer_config.json +11 -0
- training_args.bin +3 -0
README.md
ADDED
@@ -0,0 +1,117 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
language:
|
3 |
+
- it
|
4 |
+
license: mit
|
5 |
+
tags:
|
6 |
+
- generated_from_trainer
|
7 |
+
datasets:
|
8 |
+
- facebook/voxpopuli
|
9 |
+
pipeline_tag: text-to-speech
|
10 |
+
base_model: microsoft/speecht5_tts
|
11 |
+
model-index:
|
12 |
+
- name: SpeechT5-it
|
13 |
+
results:
|
14 |
+
- task:
|
15 |
+
type: text-to-speech
|
16 |
+
name: Text to Speech
|
17 |
+
dataset:
|
18 |
+
name: VOXPOPULI
|
19 |
+
type: facebook/voxpopuli
|
20 |
+
config: it
|
21 |
+
split: validation
|
22 |
+
args: it
|
23 |
+
metrics:
|
24 |
+
- type: loss
|
25 |
+
value: 0.46
|
26 |
+
name: Loss
|
27 |
+
---
|
28 |
+
|
29 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
30 |
+
should probably proofread and complete it, then remove this comment. -->
|
31 |
+
|
32 |
+
# SpeechT5-it
|
33 |
+
|
34 |
+
This model is a fine-tuned version of [microsoft/speecht5_tts](https://huggingface.co/microsoft/speecht5_tts) on the VOXPOPULI dataset.
|
35 |
+
It achieves the following results on the evaluation set:
|
36 |
+
- Loss: 0.4600
|
37 |
+
|
38 |
+
## Model description
|
39 |
+
|
40 |
+
More information needed
|
41 |
+
|
42 |
+
## Intended uses & limitations
|
43 |
+
|
44 |
+
More information needed
|
45 |
+
|
46 |
+
## Training and evaluation data
|
47 |
+
|
48 |
+
More information needed
|
49 |
+
|
50 |
+
## Training procedure
|
51 |
+
|
52 |
+
### Training hyperparameters
|
53 |
+
|
54 |
+
The following hyperparameters were used during training:
|
55 |
+
- learning_rate: 1e-05
|
56 |
+
- train_batch_size: 4
|
57 |
+
- eval_batch_size: 8
|
58 |
+
- seed: 42
|
59 |
+
- gradient_accumulation_steps: 4
|
60 |
+
- total_train_batch_size: 16
|
61 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
62 |
+
- lr_scheduler_type: linear
|
63 |
+
- lr_scheduler_warmup_steps: 100
|
64 |
+
- num_epochs: 40
|
65 |
+
|
66 |
+
### Training results
|
67 |
+
|
68 |
+
| Training Loss | Epoch | Step | Validation Loss |
|
69 |
+
|:-------------:|:-----:|:-----:|:---------------:|
|
70 |
+
| 0.5641 | 1.0 | 712 | 0.5090 |
|
71 |
+
| 0.5394 | 2.0 | 1424 | 0.4915 |
|
72 |
+
| 0.5277 | 3.0 | 2136 | 0.4819 |
|
73 |
+
| 0.5136 | 4.0 | 2848 | 0.4798 |
|
74 |
+
| 0.5109 | 5.0 | 3560 | 0.4733 |
|
75 |
+
| 0.5078 | 6.0 | 4272 | 0.4731 |
|
76 |
+
| 0.5033 | 7.0 | 4984 | 0.4692 |
|
77 |
+
| 0.5021 | 8.0 | 5696 | 0.4691 |
|
78 |
+
| 0.4984 | 9.0 | 6408 | 0.4670 |
|
79 |
+
| 0.488 | 10.0 | 7120 | 0.4641 |
|
80 |
+
| 0.491 | 11.0 | 7832 | 0.4641 |
|
81 |
+
| 0.4918 | 12.0 | 8544 | 0.4647 |
|
82 |
+
| 0.4933 | 13.0 | 9256 | 0.4622 |
|
83 |
+
| 0.499 | 14.0 | 9968 | 0.4619 |
|
84 |
+
| 0.4906 | 15.0 | 10680 | 0.4608 |
|
85 |
+
| 0.4884 | 16.0 | 11392 | 0.4622 |
|
86 |
+
| 0.4847 | 17.0 | 12104 | 0.4616 |
|
87 |
+
| 0.4916 | 18.0 | 12816 | 0.4592 |
|
88 |
+
| 0.4845 | 19.0 | 13528 | 0.4600 |
|
89 |
+
| 0.4788 | 20.0 | 14240 | 0.4594 |
|
90 |
+
| 0.4746 | 21.0 | 14952 | 0.4607 |
|
91 |
+
| 0.4875 | 22.0 | 15664 | 0.4615 |
|
92 |
+
| 0.4831 | 23.0 | 16376 | 0.4597 |
|
93 |
+
| 0.4798 | 24.0 | 17088 | 0.4595 |
|
94 |
+
| 0.4727 | 25.0 | 17800 | 0.4592 |
|
95 |
+
| 0.4736 | 26.0 | 18512 | 0.4598 |
|
96 |
+
| 0.4746 | 27.0 | 19224 | 0.4608 |
|
97 |
+
| 0.4728 | 28.0 | 19936 | 0.4589 |
|
98 |
+
| 0.4771 | 29.0 | 20648 | 0.4593 |
|
99 |
+
| 0.4743 | 30.0 | 21360 | 0.4588 |
|
100 |
+
| 0.4785 | 31.0 | 22072 | 0.4601 |
|
101 |
+
| 0.4757 | 32.0 | 22784 | 0.4597 |
|
102 |
+
| 0.4731 | 33.0 | 23496 | 0.4598 |
|
103 |
+
| 0.4746 | 34.0 | 24208 | 0.4593 |
|
104 |
+
| 0.4715 | 35.0 | 24920 | 0.4599 |
|
105 |
+
| 0.4769 | 36.0 | 25632 | 0.4622 |
|
106 |
+
| 0.4778 | 37.0 | 26344 | 0.4605 |
|
107 |
+
| 0.4798 | 38.0 | 27056 | 0.4594 |
|
108 |
+
| 0.4694 | 39.0 | 27768 | 0.4607 |
|
109 |
+
| 0.468 | 40.0 | 28480 | 0.4600 |
|
110 |
+
|
111 |
+
|
112 |
+
### Framework versions
|
113 |
+
|
114 |
+
- Transformers 4.30.0.dev0
|
115 |
+
- Pytorch 2.0.1+cu117
|
116 |
+
- Datasets 2.13.1
|
117 |
+
- Tokenizers 0.13.3
|
added_tokens.json
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"<ctc_blank>": 80,
|
3 |
+
"<mask>": 79
|
4 |
+
}
|
config.json
ADDED
@@ -0,0 +1,92 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "microsoft/speecht5_tts",
|
3 |
+
"activation_dropout": 0.1,
|
4 |
+
"apply_spec_augment": true,
|
5 |
+
"architectures": [
|
6 |
+
"SpeechT5ForTextToSpeech"
|
7 |
+
],
|
8 |
+
"attention_dropout": 0.1,
|
9 |
+
"bos_token_id": 0,
|
10 |
+
"conv_bias": false,
|
11 |
+
"conv_dim": [
|
12 |
+
512,
|
13 |
+
512,
|
14 |
+
512,
|
15 |
+
512,
|
16 |
+
512,
|
17 |
+
512,
|
18 |
+
512
|
19 |
+
],
|
20 |
+
"conv_kernel": [
|
21 |
+
10,
|
22 |
+
3,
|
23 |
+
3,
|
24 |
+
3,
|
25 |
+
3,
|
26 |
+
2,
|
27 |
+
2
|
28 |
+
],
|
29 |
+
"conv_stride": [
|
30 |
+
5,
|
31 |
+
2,
|
32 |
+
2,
|
33 |
+
2,
|
34 |
+
2,
|
35 |
+
2,
|
36 |
+
2
|
37 |
+
],
|
38 |
+
"decoder_attention_heads": 12,
|
39 |
+
"decoder_ffn_dim": 3072,
|
40 |
+
"decoder_layerdrop": 0.1,
|
41 |
+
"decoder_layers": 6,
|
42 |
+
"decoder_start_token_id": 2,
|
43 |
+
"encoder_attention_heads": 12,
|
44 |
+
"encoder_ffn_dim": 3072,
|
45 |
+
"encoder_layerdrop": 0.1,
|
46 |
+
"encoder_layers": 12,
|
47 |
+
"encoder_max_relative_position": 160,
|
48 |
+
"eos_token_id": 2,
|
49 |
+
"feat_extract_activation": "gelu",
|
50 |
+
"feat_extract_norm": "group",
|
51 |
+
"feat_proj_dropout": 0.0,
|
52 |
+
"guided_attention_loss_num_heads": 2,
|
53 |
+
"guided_attention_loss_scale": 10.0,
|
54 |
+
"guided_attention_loss_sigma": 0.4,
|
55 |
+
"hidden_act": "gelu",
|
56 |
+
"hidden_dropout": 0.1,
|
57 |
+
"hidden_size": 768,
|
58 |
+
"initializer_range": 0.02,
|
59 |
+
"is_encoder_decoder": true,
|
60 |
+
"layer_norm_eps": 1e-05,
|
61 |
+
"mask_feature_length": 10,
|
62 |
+
"mask_feature_min_masks": 0,
|
63 |
+
"mask_feature_prob": 0.0,
|
64 |
+
"mask_time_length": 10,
|
65 |
+
"mask_time_min_masks": 2,
|
66 |
+
"mask_time_prob": 0.05,
|
67 |
+
"max_length": 1876,
|
68 |
+
"max_speech_positions": 1876,
|
69 |
+
"max_text_positions": 600,
|
70 |
+
"model_type": "speecht5",
|
71 |
+
"num_conv_pos_embedding_groups": 16,
|
72 |
+
"num_conv_pos_embeddings": 128,
|
73 |
+
"num_feat_extract_layers": 7,
|
74 |
+
"num_mel_bins": 80,
|
75 |
+
"pad_token_id": 1,
|
76 |
+
"positional_dropout": 0.1,
|
77 |
+
"reduction_factor": 2,
|
78 |
+
"scale_embedding": false,
|
79 |
+
"speaker_embedding_dim": 512,
|
80 |
+
"speech_decoder_postnet_dropout": 0.5,
|
81 |
+
"speech_decoder_postnet_kernel": 5,
|
82 |
+
"speech_decoder_postnet_layers": 5,
|
83 |
+
"speech_decoder_postnet_units": 256,
|
84 |
+
"speech_decoder_prenet_dropout": 0.5,
|
85 |
+
"speech_decoder_prenet_layers": 2,
|
86 |
+
"speech_decoder_prenet_units": 256,
|
87 |
+
"torch_dtype": "float32",
|
88 |
+
"transformers_version": "4.30.0.dev0",
|
89 |
+
"use_cache": false,
|
90 |
+
"use_guided_attention_loss": true,
|
91 |
+
"vocab_size": 81
|
92 |
+
}
|
gitattributes
ADDED
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
*.7z filter=lfs diff=lfs merge=lfs -text
|
2 |
+
*.arrow filter=lfs diff=lfs merge=lfs -text
|
3 |
+
*.bin filter=lfs diff=lfs merge=lfs -text
|
4 |
+
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
5 |
+
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
6 |
+
*.ftz filter=lfs diff=lfs merge=lfs -text
|
7 |
+
*.gz filter=lfs diff=lfs merge=lfs -text
|
8 |
+
*.h5 filter=lfs diff=lfs merge=lfs -text
|
9 |
+
*.joblib filter=lfs diff=lfs merge=lfs -text
|
10 |
+
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
11 |
+
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
12 |
+
*.model filter=lfs diff=lfs merge=lfs -text
|
13 |
+
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
14 |
+
*.npy filter=lfs diff=lfs merge=lfs -text
|
15 |
+
*.npz filter=lfs diff=lfs merge=lfs -text
|
16 |
+
*.onnx filter=lfs diff=lfs merge=lfs -text
|
17 |
+
*.ot filter=lfs diff=lfs merge=lfs -text
|
18 |
+
*.parquet filter=lfs diff=lfs merge=lfs -text
|
19 |
+
*.pb filter=lfs diff=lfs merge=lfs -text
|
20 |
+
*.pickle filter=lfs diff=lfs merge=lfs -text
|
21 |
+
*.pkl filter=lfs diff=lfs merge=lfs -text
|
22 |
+
*.pt filter=lfs diff=lfs merge=lfs -text
|
23 |
+
*.pth filter=lfs diff=lfs merge=lfs -text
|
24 |
+
*.rar filter=lfs diff=lfs merge=lfs -text
|
25 |
+
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
26 |
+
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
27 |
+
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
28 |
+
*.tar filter=lfs diff=lfs merge=lfs -text
|
29 |
+
*.tflite filter=lfs diff=lfs merge=lfs -text
|
30 |
+
*.tgz filter=lfs diff=lfs merge=lfs -text
|
31 |
+
*.wasm filter=lfs diff=lfs merge=lfs -text
|
32 |
+
*.xz filter=lfs diff=lfs merge=lfs -text
|
33 |
+
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
+
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
+
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
gitignore
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
checkpoint-*/
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:fcdab9df8579635a7d9718f8514d30d3052640352d948b84f3222b908ca54679
|
3 |
+
size 585395848
|
preprocessor_config.json
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"do_normalize": false,
|
3 |
+
"feature_extractor_type": "SpeechT5FeatureExtractor",
|
4 |
+
"feature_size": 1,
|
5 |
+
"fmax": 7600,
|
6 |
+
"fmin": 80,
|
7 |
+
"frame_signal_scale": 1.0,
|
8 |
+
"hop_length": 16,
|
9 |
+
"mel_floor": 1e-10,
|
10 |
+
"num_mel_bins": 80,
|
11 |
+
"padding_side": "right",
|
12 |
+
"padding_value": 0.0,
|
13 |
+
"processor_class": "SpeechT5Processor",
|
14 |
+
"reduction_factor": 2,
|
15 |
+
"return_attention_mask": true,
|
16 |
+
"sampling_rate": 16000,
|
17 |
+
"win_function": "hann_window",
|
18 |
+
"win_length": 64
|
19 |
+
}
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1a12e345a40f2977b27cc65a242df2f1a59ba2ef9bfe120b51c8ea5fba61fec7
|
3 |
+
size 585485317
|
special_tokens_map.json
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token": "<s>",
|
3 |
+
"eos_token": "</s>",
|
4 |
+
"mask_token": {
|
5 |
+
"content": "<mask>",
|
6 |
+
"lstrip": true,
|
7 |
+
"normalized": true,
|
8 |
+
"rstrip": false,
|
9 |
+
"single_word": false
|
10 |
+
},
|
11 |
+
"pad_token": "<pad>",
|
12 |
+
"unk_token": "<unk>"
|
13 |
+
}
|
spm_char.model
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7fcc48f3e225f627b1641db410ceb0c8649bd2b0c982e150b03f8be3728ab560
|
3 |
+
size 238473
|
tokenizer_config.json
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token": "<s>",
|
3 |
+
"clean_up_tokenization_spaces": true,
|
4 |
+
"eos_token": "</s>",
|
5 |
+
"model_max_length": 600,
|
6 |
+
"pad_token": "<pad>",
|
7 |
+
"processor_class": "SpeechT5Processor",
|
8 |
+
"sp_model_kwargs": {},
|
9 |
+
"tokenizer_class": "SpeechT5Tokenizer",
|
10 |
+
"unk_token": "<unk>"
|
11 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:808df4ce9ebf467851b32d7b9e8e6e950bd306c5b98668bcff1845caec220e6b
|
3 |
+
size 4155
|