mac摆设GPT-SoVITS,生成粤语踩坑点及使用记载

十念  论坛元老 | 2025-3-15 18:15:04 | 显示全部楼层 | 阅读模式
打印 上一主题 下一主题

主题 1002|帖子 1002|积分 3006

本身录音,普通话或者粤语
注意:

与在其他设备上训练的模子相比,在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:
  1. conda create -n GPTSoVits python=3.9
  2. conda activate GPTSoVits
  3. 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的版本
激活环境:
  1. conda activate GPTSoVits
复制代码
在macos上训练本身的声音

激活环境:
  1. conda activate GPTSoVits
复制代码

第一踩坑点

启动下令:
  1. python3 webui.py
复制代码
之后,无法跳转,显示超时
  1. File "/opt/anaconda3/envs/GPTSoVits/lib/python3.9/site-packages/pydantic/_internal/_generate_schema.py", line 558, in _unknown_type_schema
  2.    raise PydanticSchemaGenerationError(
  3. pydantic.errors.PydanticSchemaGenerationError
复制代码
办理方法:
  1. pip uninstall fastapi
  2. pip install fastapi==0.112.2
复制代码
乐成跑起:

第二个踩坑点

是在微调训练gpt报错
  1. RuntimeError: Index tensor must have the same number of dimensions as self tensor
复制代码
  1. return torch.zeros_like(preds_oh, dtype=torch.int32).scatter_(-1, result.unsqueeze(1).unsqueeze(1), 1)
  2. RuntimeError: Index tensor must have the same number of dimensions as self tensor
  3. ​<img alt="" height="487" src="https://i-blog.csdnimg.cn/direct/3b45162662874d938358f3e2ee833da6.png" width="981" />
复制代码
办理方法:
  1. 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企服之家,中国第一个企服评测及商务社交产业平台。
回复

使用道具 举报

0 个回复

倒序浏览

快速回复

您需要登录后才可以回帖 登录 or 立即注册

本版积分规则

十念

论坛元老
这个人很懒什么都没写!
快速回复 返回顶部 返回列表