忽略ffmpeg .gitignore
使t2s模型支持批量推理: GPT_SoVITS/AR/models/t2s_model.py
修复batch bug GPT_SoVITS/AR/models/utils.py
重构的tts infer GPT_SoVITS/TTS_infer_pack/TTS.py
文本预处理模块 GPT_SoVITS/TTS_infer_pack/TextPreprocessor.py
new file GPT_SoVITS/TTS_infer_pack/__init__.py
文本拆分方法模块 GPT_SoVITS/TTS_infer_pack/text_segmentation_method.py
tts infer配置文件 GPT_SoVITS/configs/tts_infer.yaml
modified GPT_SoVITS/feature_extractor/cnhubert.py
modified GPT_SoVITS/inference_gui.py
重构的webui GPT_SoVITS/inference_webui.py
new file GPT_SoVITS/inference_webui_old.py
This commit is contained in:
@@ -20,13 +20,16 @@ cnhubert_base_path = None
|
||||
|
||||
|
||||
class CNHubert(nn.Module):
|
||||
def __init__(self):
|
||||
def __init__(self, base_path:str=None):
|
||||
super().__init__()
|
||||
self.model = HubertModel.from_pretrained(cnhubert_base_path)
|
||||
if base_path is None:
|
||||
base_path = cnhubert_base_path
|
||||
self.model = HubertModel.from_pretrained(base_path)
|
||||
self.feature_extractor = Wav2Vec2FeatureExtractor.from_pretrained(
|
||||
cnhubert_base_path
|
||||
base_path
|
||||
)
|
||||
|
||||
|
||||
def forward(self, x):
|
||||
input_values = self.feature_extractor(
|
||||
x, return_tensors="pt", sampling_rate=16000
|
||||
|
||||
Reference in New Issue
Block a user