RVC-Boss / GPT-SoVITS

1 min voice data can also be used to train a good TTS model! (few shot voice cloning)
MIT License
36.08k stars 4.12k forks source link

运行api_v2时报错了,没看懂是什么问题 #1810

Open pgz100 opened 15 hours ago

pgz100 commented 15 hours ago

raceback (most recent call last): File "/root/GPT-SoVITS/api_v2.py", line 143, in tts_pipeline = TTS(tts_config) File "/root/GPT-SoVITS/GPT_SoVITS/TTS_infer_pack/TTS.py", line 252, in init self._init_models() File "/root/GPT-SoVITS/GPT_SoVITS/TTS_infer_pack/TTS.py", line 280, in _init_models self.init_cnhuhbert_weights(self.configs.cnhuhbert_base_path) File "/root/GPT-SoVITS/GPT_SoVITS/TTS_infer_pack/TTS.py", line 287, in init_cnhuhbert_weights self.cnhuhbert_model = CNHubert(basepath) TypeError: __init_\() takes 1 positional argument but 2 were given

XXXXRT666 commented 4 hours ago

import的文件不对,建议使用importlib.util.find_spec看看import到底是啥