Instructions to use shacode/soprano_finetuned with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use shacode/soprano_finetuned with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-to-audio", model="shacode/soprano_finetuned")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForTextToSpectrogram processor = AutoProcessor.from_pretrained("shacode/soprano_finetuned") model = AutoModelForTextToSpectrogram.from_pretrained("shacode/soprano_finetuned", device_map="auto") - Notebooks
- Google Colab
- Kaggle
End of training
Browse files
README.md
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: transformers
|
| 3 |
+
license: mit
|
| 4 |
+
base_model: microsoft/speecht5_tts
|
| 5 |
+
tags:
|
| 6 |
+
- generated_from_trainer
|
| 7 |
+
model-index:
|
| 8 |
+
- name: soprano_finetuned
|
| 9 |
+
results: []
|
| 10 |
+
---
|
| 11 |
+
|
| 12 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 13 |
+
should probably proofread and complete it, then remove this comment. -->
|
| 14 |
+
|
| 15 |
+
# soprano_finetuned
|
| 16 |
+
|
| 17 |
+
This model is a fine-tuned version of [microsoft/speecht5_tts](https://huggingface.co/microsoft/speecht5_tts) on an unknown dataset.
|
| 18 |
+
|
| 19 |
+
## Model description
|
| 20 |
+
|
| 21 |
+
More information needed
|
| 22 |
+
|
| 23 |
+
## Intended uses & limitations
|
| 24 |
+
|
| 25 |
+
More information needed
|
| 26 |
+
|
| 27 |
+
## Training and evaluation data
|
| 28 |
+
|
| 29 |
+
More information needed
|
| 30 |
+
|
| 31 |
+
## Training procedure
|
| 32 |
+
|
| 33 |
+
### Training hyperparameters
|
| 34 |
+
|
| 35 |
+
The following hyperparameters were used during training:
|
| 36 |
+
- learning_rate: 0.0001
|
| 37 |
+
- train_batch_size: 8
|
| 38 |
+
- eval_batch_size: 4
|
| 39 |
+
- seed: 42
|
| 40 |
+
- gradient_accumulation_steps: 4
|
| 41 |
+
- total_train_batch_size: 32
|
| 42 |
+
- optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
| 43 |
+
- lr_scheduler_type: linear
|
| 44 |
+
- lr_scheduler_warmup_steps: 100
|
| 45 |
+
- training_steps: 500
|
| 46 |
+
- mixed_precision_training: Native AMP
|
| 47 |
+
|
| 48 |
+
### Framework versions
|
| 49 |
+
|
| 50 |
+
- Transformers 5.0.0
|
| 51 |
+
- Pytorch 2.9.0+cu126
|
| 52 |
+
- Datasets 3.6.0
|
| 53 |
+
- Tokenizers 0.22.2
|
config.json
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"activation_dropout": 0.1,
|
| 3 |
+
"apply_spec_augment": true,
|
| 4 |
+
"architectures": [
|
| 5 |
+
"SpeechT5ForTextToSpeech"
|
| 6 |
+
],
|
| 7 |
+
"attention_dropout": 0.1,
|
| 8 |
+
"bos_token_id": 0,
|
| 9 |
+
"conv_bias": false,
|
| 10 |
+
"conv_dim": [
|
| 11 |
+
512,
|
| 12 |
+
512,
|
| 13 |
+
512,
|
| 14 |
+
512,
|
| 15 |
+
512,
|
| 16 |
+
512,
|
| 17 |
+
512
|
| 18 |
+
],
|
| 19 |
+
"conv_kernel": [
|
| 20 |
+
10,
|
| 21 |
+
3,
|
| 22 |
+
3,
|
| 23 |
+
3,
|
| 24 |
+
3,
|
| 25 |
+
2,
|
| 26 |
+
2
|
| 27 |
+
],
|
| 28 |
+
"conv_stride": [
|
| 29 |
+
5,
|
| 30 |
+
2,
|
| 31 |
+
2,
|
| 32 |
+
2,
|
| 33 |
+
2,
|
| 34 |
+
2,
|
| 35 |
+
2
|
| 36 |
+
],
|
| 37 |
+
"decoder_attention_heads": 12,
|
| 38 |
+
"decoder_ffn_dim": 3072,
|
| 39 |
+
"decoder_layerdrop": 0.1,
|
| 40 |
+
"decoder_layers": 6,
|
| 41 |
+
"decoder_start_token_id": 2,
|
| 42 |
+
"dtype": "float32",
|
| 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_speech_positions": 1876,
|
| 68 |
+
"max_text_positions": 600,
|
| 69 |
+
"model_type": "speecht5",
|
| 70 |
+
"num_conv_pos_embedding_groups": 16,
|
| 71 |
+
"num_conv_pos_embeddings": 128,
|
| 72 |
+
"num_feat_extract_layers": 7,
|
| 73 |
+
"num_mel_bins": 80,
|
| 74 |
+
"pad_token_id": 1,
|
| 75 |
+
"positional_dropout": 0.1,
|
| 76 |
+
"reduction_factor": 2,
|
| 77 |
+
"scale_embedding": false,
|
| 78 |
+
"speaker_embedding_dim": 512,
|
| 79 |
+
"speech_decoder_postnet_dropout": 0.5,
|
| 80 |
+
"speech_decoder_postnet_kernel": 5,
|
| 81 |
+
"speech_decoder_postnet_layers": 5,
|
| 82 |
+
"speech_decoder_postnet_units": 256,
|
| 83 |
+
"speech_decoder_prenet_dropout": 0.5,
|
| 84 |
+
"speech_decoder_prenet_layers": 2,
|
| 85 |
+
"speech_decoder_prenet_units": 256,
|
| 86 |
+
"tie_word_embeddings": true,
|
| 87 |
+
"transformers_version": "5.0.0",
|
| 88 |
+
"use_cache": false,
|
| 89 |
+
"use_guided_attention_loss": true,
|
| 90 |
+
"vocab_size": 154
|
| 91 |
+
}
|
generation_config.json
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_from_model_config": true,
|
| 3 |
+
"bos_token_id": 0,
|
| 4 |
+
"decoder_start_token_id": 2,
|
| 5 |
+
"eos_token_id": 2,
|
| 6 |
+
"output_attentions": false,
|
| 7 |
+
"output_hidden_states": false,
|
| 8 |
+
"pad_token_id": 1,
|
| 9 |
+
"transformers_version": "5.0.0",
|
| 10 |
+
"use_cache": true
|
| 11 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:db488222c82cee064bddab9ba4401052ebf137154c553ff743f95e558c7caee3
|
| 3 |
+
size 578013576
|
runs/Feb08_11-28-10_b7cbb73c7862/events.out.tfevents.1770550090.b7cbb73c7862.1976.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2eec5339ebb2b587ed26294f459c811f3cb26f8b4529b69cb52018f71d8ae4e2
|
| 3 |
+
size 6746
|
runs/Feb08_11-33-35_b7cbb73c7862/events.out.tfevents.1770550415.b7cbb73c7862.1976.1
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9ad346d3d25daecf262788a990f880fc2bf28fc6cc0f959269a6cd69e65f9417
|
| 3 |
+
size 6751
|
training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b2c9dce78a21d118b69236be4f7d47cae618c92371d52f05fd15fa102096cea8
|
| 3 |
+
size 5201
|