Spaces:
Running
Running
Update GPT_SoVITS/app_vc.py
Browse files- GPT_SoVITS/app_vc.py +6 -10
GPT_SoVITS/app_vc.py
CHANGED
|
@@ -56,15 +56,11 @@ def get_pretrain_model_path(env_name, log_file, def_path):
|
|
| 56 |
# device = "cuda" if torch.cuda.is_available() else "cpu"
|
| 57 |
device = 'cpu'
|
| 58 |
|
| 59 |
-
|
| 60 |
-
|
| 61 |
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
gpt_path = "GPT_SoVITS/pretrained_models/gsv-v2final-pretrained/s1bert25hz-5kh-longer-epoch=12-step=369668.ckpt"
|
| 66 |
-
|
| 67 |
-
sovits_path = "GPT_SoVITS/pretrained_models/s2G488k.pth"
|
| 68 |
|
| 69 |
cnhubert_base_path = get_pretrain_model_path("cnhubert_base_path", '', "GPT_SoVITS/pretrained_models/chinese-hubert-base")
|
| 70 |
|
|
@@ -305,8 +301,8 @@ def change_choices():
|
|
| 305 |
|
| 306 |
pretrained_sovits_name = "GPT_SoVITS/pretrained_models/gsv-v2final-pretrained/s2G2333k.pth"
|
| 307 |
pretrained_gpt_name = "GPT_SoVITS/pretrained_models/gsv-v2final-pretrained/s1bert25hz-5kh-longer-epoch=12-step=369668.ckpt"
|
| 308 |
-
SoVITS_weight_root = "
|
| 309 |
-
GPT_weight_root = "
|
| 310 |
os.makedirs(SoVITS_weight_root, exist_ok=True)
|
| 311 |
os.makedirs(GPT_weight_root, exist_ok=True)
|
| 312 |
|
|
|
|
| 56 |
# device = "cuda" if torch.cuda.is_available() else "cpu"
|
| 57 |
device = 'cpu'
|
| 58 |
|
| 59 |
+
gpt_path = get_pretrain_model_path('gpt_path', "./gweight.txt",
|
| 60 |
+
"GPT_SoVITS/pretrained_models/s1bert25hz-2kh-longer-epoch=68e-step=50232.ckpt")
|
| 61 |
|
| 62 |
+
sovits_path = get_pretrain_model_path('sovits_path', "./sweight.txt",
|
| 63 |
+
"GPT_SoVITS/pretrained_models/s2G488k.pth")
|
|
|
|
|
|
|
|
|
|
|
|
|
| 64 |
|
| 65 |
cnhubert_base_path = get_pretrain_model_path("cnhubert_base_path", '', "GPT_SoVITS/pretrained_models/chinese-hubert-base")
|
| 66 |
|
|
|
|
| 301 |
|
| 302 |
pretrained_sovits_name = "GPT_SoVITS/pretrained_models/gsv-v2final-pretrained/s2G2333k.pth"
|
| 303 |
pretrained_gpt_name = "GPT_SoVITS/pretrained_models/gsv-v2final-pretrained/s1bert25hz-5kh-longer-epoch=12-step=369668.ckpt"
|
| 304 |
+
SoVITS_weight_root = "SoVITS_weights_v2"
|
| 305 |
+
GPT_weight_root = "GPT_weights_v2"
|
| 306 |
os.makedirs(SoVITS_weight_root, exist_ok=True)
|
| 307 |
os.makedirs(GPT_weight_root, exist_ok=True)
|
| 308 |
|