本身录音,普通话或者粤语
注意:
与在其他设备上训练的模子相比,在mac上使用gpu训练的模子的质量明显较低,因此我们暂时使用cpu代替。
- Install Xcode command-line tools by running xcode-select --install.
- Install FFmpeg by running brew install ffmpeg.
- Install the program by running the following commands:
- conda create -n GPTSoVits python=3.9
- conda activate GPTSoVits
- pip install -r requirements.txt
复制代码 GitHub - RVC-Boss/GPT-SoVITS: 1 min voice data can also be used to train a good TTS model! (few shot voice cloning)
注意py的版本
激活环境:
在macos上训练本身的声音
激活环境:
第一踩坑点
启动下令:
之后,无法跳转,显示超时
- File "/opt/anaconda3/envs/GPTSoVits/lib/python3.9/site-packages/pydantic/_internal/_generate_schema.py", line 558, in _unknown_type_schema
- raise PydanticSchemaGenerationError(
- pydantic.errors.PydanticSchemaGenerationError
复制代码 办理方法:
- pip uninstall fastapi
- pip install fastapi==0.112.2
复制代码 乐成跑起:
第二个踩坑点
是在微调训练gpt报错
- RuntimeError: Index tensor must have the same number of dimensions as self tensor
复制代码- return torch.zeros_like(preds_oh, dtype=torch.int32).scatter_(-1, result.unsqueeze(1).unsqueeze(1), 1)
- RuntimeError: Index tensor must have the same number of dimensions as self tensor
- <img alt="" height="487" src="https://i-blog.csdnimg.cn/direct/3b45162662874d938358f3e2ee833da6.png" width="981" />
复制代码 办理方法:
- pip install torchmetrics==1.5
复制代码 末了乐成跑起
效果:
CondaError: Run 'conda init' before 'conda activate'
使用Mobaxterm连接长途服务器,在创建conda环境后报错。
输入conda init后返回No action taken.
办理方法
- 输入source activate,后发现前面多了(base)
- 输入conda activate xxx(此处为自定义的环境名称),后发现(base)变为(xxx)
参考:https://zhuanlan.zhihu.com/p/683118485
使用教程记载
语音切割,降噪,进行选择语音,就可以打标了
打标界面
之后可以进行训练了
微调模子
终端
免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!更多信息从访问主页:qidao123.com:ToB企服之家,中国第一个企服评测及商务社交产业平台。 |