Spaces:
Running
Running
Upload 4 files
Browse files- Data/Messi/config.json +108 -0
- Data/Messi/models/G_1800.pth +3 -0
- app.py +3 -4
- config.yml +3 -3
Data/Messi/config.json
ADDED
@@ -0,0 +1,108 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"train": {
|
3 |
+
"log_interval": 50,
|
4 |
+
"eval_interval": 50,
|
5 |
+
"seed": 42,
|
6 |
+
"epochs": 1000,
|
7 |
+
"learning_rate": 0.0002,
|
8 |
+
"betas": [
|
9 |
+
0.8,
|
10 |
+
0.99
|
11 |
+
],
|
12 |
+
"eps": 1e-09,
|
13 |
+
"batch_size": 12,
|
14 |
+
"bf16_run": false,
|
15 |
+
"lr_decay": 0.99995,
|
16 |
+
"segment_size": 16384,
|
17 |
+
"init_lr_ratio": 1,
|
18 |
+
"warmup_epochs": 0,
|
19 |
+
"c_mel": 45,
|
20 |
+
"c_kl": 1.0,
|
21 |
+
"c_commit": 100,
|
22 |
+
"skip_optimizer": true,
|
23 |
+
"freeze_ZH_bert": false,
|
24 |
+
"freeze_JP_bert": false,
|
25 |
+
"freeze_EN_bert": false,
|
26 |
+
"freeze_emo": false
|
27 |
+
},
|
28 |
+
"data": {
|
29 |
+
"training_files": "Data/Messi/filelists/train.list",
|
30 |
+
"validation_files": "Data/Messi/filelists/val.list",
|
31 |
+
"max_wav_value": 32768.0,
|
32 |
+
"sampling_rate": 44100,
|
33 |
+
"filter_length": 2048,
|
34 |
+
"hop_length": 512,
|
35 |
+
"win_length": 2048,
|
36 |
+
"n_mel_channels": 128,
|
37 |
+
"mel_fmin": 0.0,
|
38 |
+
"mel_fmax": null,
|
39 |
+
"add_blank": true,
|
40 |
+
"n_speakers": 1,
|
41 |
+
"cleaned_text": true,
|
42 |
+
"spk2id": {
|
43 |
+
"Messi": 0
|
44 |
+
}
|
45 |
+
},
|
46 |
+
"model": {
|
47 |
+
"use_spk_conditioned_encoder": true,
|
48 |
+
"use_noise_scaled_mas": true,
|
49 |
+
"use_mel_posterior_encoder": false,
|
50 |
+
"use_duration_discriminator": true,
|
51 |
+
"inter_channels": 192,
|
52 |
+
"hidden_channels": 192,
|
53 |
+
"filter_channels": 768,
|
54 |
+
"n_heads": 2,
|
55 |
+
"n_layers": 6,
|
56 |
+
"kernel_size": 3,
|
57 |
+
"p_dropout": 0.1,
|
58 |
+
"resblock": "1",
|
59 |
+
"resblock_kernel_sizes": [
|
60 |
+
3,
|
61 |
+
7,
|
62 |
+
11
|
63 |
+
],
|
64 |
+
"resblock_dilation_sizes": [
|
65 |
+
[
|
66 |
+
1,
|
67 |
+
3,
|
68 |
+
5
|
69 |
+
],
|
70 |
+
[
|
71 |
+
1,
|
72 |
+
3,
|
73 |
+
5
|
74 |
+
],
|
75 |
+
[
|
76 |
+
1,
|
77 |
+
3,
|
78 |
+
5
|
79 |
+
]
|
80 |
+
],
|
81 |
+
"upsample_rates": [
|
82 |
+
8,
|
83 |
+
8,
|
84 |
+
2,
|
85 |
+
2,
|
86 |
+
2
|
87 |
+
],
|
88 |
+
"upsample_initial_channel": 512,
|
89 |
+
"upsample_kernel_sizes": [
|
90 |
+
16,
|
91 |
+
16,
|
92 |
+
8,
|
93 |
+
2,
|
94 |
+
2
|
95 |
+
],
|
96 |
+
"n_layers_q": 3,
|
97 |
+
"use_spectral_norm": false,
|
98 |
+
"gin_channels": 512,
|
99 |
+
"slm": {
|
100 |
+
"model": "./slm/wavlm-base-plus",
|
101 |
+
"sr": 16000,
|
102 |
+
"hidden": 768,
|
103 |
+
"nlayers": 13,
|
104 |
+
"initial_channel": 64
|
105 |
+
}
|
106 |
+
},
|
107 |
+
"version": "2.3"
|
108 |
+
}
|
Data/Messi/models/G_1800.pth
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a812c363cd2e091a5126c33a2c8572fe06ce4b1840270d5c093e8ab7eba1b0ff
|
3 |
+
size 728370270
|
app.py
CHANGED
@@ -392,15 +392,14 @@ if __name__ == "__main__":
|
|
392 |
with gr.Row():
|
393 |
with gr.Column():
|
394 |
gr.Markdown(value="""
|
395 |
-
【AI
|
396 |
作者:Xz乔希 https://space.bilibili.com/5859321\n
|
397 |
-
|
398 |
【AI合集】https://www.modelscope.cn/studios/xzjosh/Bert-VITS2\n
|
399 |
Bert-VITS2项目:https://github.com/Stardust-minus/Bert-VITS2\n
|
400 |
使用本模型请严格遵守法律法规!\n
|
401 |
发布二创作品请标注本项目作者及链接、作品使用Bert-VITS2 AI生成!\n
|
402 |
-
|
403 |
-
手机端容易误触调节,请刷新恢复默认!每次生成的结果都不一样,效果不好请尝试多次生成与调节,选择最佳结果!\n
|
404 |
""")
|
405 |
text = gr.TextArea(
|
406 |
label="输入文本内容",
|
|
|
392 |
with gr.Row():
|
393 |
with gr.Column():
|
394 |
gr.Markdown(value="""
|
395 |
+
【AI梅西】在线语音合成(Bert-Vits2 2.3中日英)\n
|
396 |
作者:Xz乔希 https://space.bilibili.com/5859321\n
|
397 |
+
声音归属:Lionel Messi\n
|
398 |
【AI合集】https://www.modelscope.cn/studios/xzjosh/Bert-VITS2\n
|
399 |
Bert-VITS2项目:https://github.com/Stardust-minus/Bert-VITS2\n
|
400 |
使用本模型请严格遵守法律法规!\n
|
401 |
发布二创作品请标注本项目作者及链接、作品使用Bert-VITS2 AI生成!\n
|
402 |
+
【提示】手机端容易误触调节,请刷新恢复默认!每次生成的结果都不一样,效果不好请尝试多次生成与调节,选择最佳结果!\n
|
|
|
403 |
""")
|
404 |
text = gr.TextArea(
|
405 |
label="输入文本内容",
|
config.yml
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
# 拟提供通用路径配置,统一存放数据,避免数据放得很乱
|
5 |
# 每个数据集与其对应的模型存放至统一路径下,后续所有的路径配置均为相对于datasetPath的路径
|
6 |
# 不填或者填空则路径为相对于项目根目录的路径
|
7 |
-
dataset_path: "Data/
|
8 |
|
9 |
# 模型镜像源,默认huggingface,使用openi镜像源需指定openi_token
|
10 |
mirror: ""
|
@@ -26,7 +26,7 @@ resample:
|
|
26 |
# 注意, “:” 后需要加空格
|
27 |
preprocess_text:
|
28 |
# 原始文本文件路径,文本格式应为{wav_path}|{speaker_name}|{language}|{text}。
|
29 |
-
transcription_path: "filelists
|
30 |
# 数据清洗后文本路径,可以不填。不填则将在原始文本目录生成
|
31 |
cleaned_path: ""
|
32 |
# 训练集路径
|
@@ -102,7 +102,7 @@ webui:
|
|
102 |
# 推理设备
|
103 |
device: "cpu"
|
104 |
# 模型路径
|
105 |
-
model: "models/
|
106 |
# 配置文件路径
|
107 |
config_path: "config.json"
|
108 |
# 端口号
|
|
|
4 |
# 拟提供通用路径配置,统一存放数据,避免数据放得很乱
|
5 |
# 每个数据集与其对应的模型存放至统一路径下,后续所有的路径配置均为相对于datasetPath的路径
|
6 |
# 不填或者填空则路径为相对于项目根目录的路径
|
7 |
+
dataset_path: "Data/Messi"
|
8 |
|
9 |
# 模型镜像源,默认huggingface,使用openi镜像源需指定openi_token
|
10 |
mirror: ""
|
|
|
26 |
# 注意, “:” 后需要加空格
|
27 |
preprocess_text:
|
28 |
# 原始文本文件路径,文本格式应为{wav_path}|{speaker_name}|{language}|{text}。
|
29 |
+
transcription_path: "filelists/Messi.list"
|
30 |
# 数据清洗后文本路径,可以不填。不填则将在原始文本目录生成
|
31 |
cleaned_path: ""
|
32 |
# 训练集路径
|
|
|
102 |
# 推理设备
|
103 |
device: "cpu"
|
104 |
# 模型路径
|
105 |
+
model: "models/G_1800.pth"
|
106 |
# 配置文件路径
|
107 |
config_path: "config.json"
|
108 |
# 端口号
|