Skip to content

Commit 35e7554

Browse files
authored
修复了一些bug (#994)
1 parent 29f2211 commit 35e7554

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

GPT_SoVITS/TTS_infer_pack/TTS.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -749,7 +749,7 @@ def make_batch(batch_texts):
749749
if no_prompt_text :
750750
prompt = None
751751
else:
752-
prompt = self.prompt_cache["prompt_semantic"].expand(all_phoneme_ids.shape[0], -1).to(self.configs.device)
752+
prompt = self.prompt_cache["prompt_semantic"].expand(len(all_phoneme_ids), -1).to(self.configs.device)
753753

754754

755755
pred_semantic_list, idx_list = self.t2s_model.model.infer_panel(

colab_webui.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
"!git clone https://www.modelscope.cn/damo/punc_ct-transformer_zh-cn-common-vocab272727-pytorch.git\n",
6868
"# @title UVR5 pretrains 安装uvr5模型\n",
6969
"%cd /content/GPT-SoVITS/tools/uvr5\n",
70-
"%rm -r uvr5_weights\n"
70+
"%rm -r uvr5_weights\n",
7171
"!git clone https://huggingface.co/Delik/uvr5_weights\n",
7272
"!git config core.sparseCheckout true\n",
7373
"!mv /content/GPT-SoVITS/GPT_SoVITS/pretrained_models/GPT-SoVITS/* /content/GPT-SoVITS/GPT_SoVITS/pretrained_models/"

0 commit comments

Comments
 (0)