mac部署GPT-SoVITS,生成粤语踩坑点及使用记录

自己录音,普通话或者粤语

注意:

与在其他设备上训练的模型相比,在mac上使用gpu训练的模型的质量明显较低,因此我们暂时使用cpu代替。

  1. Install Xcode command-line tools by running xcode-select --install.
  2. Install FFmpeg by running brew install ffmpeg.
  3. 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的版本

激活环境:

复制代码
conda activate GPTSoVits 

在macos上训练自己的声音

激活环境:

复制代码
conda activate GPTSoVits 

第一踩坑点

启动命令:

复制代码
python3 webui.py

之后,无法跳转,显示超时

复制代码
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
​

解决方法:

复制代码
pip install torchmetrics==1.5

最后成功跑起

效果:

CondaError: Run 'conda init' before 'conda activate'

利用Mobaxterm连接远程服务器,在创建conda环境后报错。

输入conda init后返回No action taken.

解决方法

  1. 输入source activate,后发现前面多了(base)

  2. 输入conda activate xxx(此处为自定义的环境名称),后发现(base)变为(xxx)

参考:https://zhuanlan.zhihu.com/p/683118485

使用教程记录

语音切割,降噪,进行选择语音,就可以打标了

打标界面

之后可以进行训练了

微调模型

终端

相关推荐
清风一徐6 小时前
禅道从18.3升级到21.7.6版本
笔记
Jack___Xue6 小时前
LangChain实战快速入门笔记(六)--LangChain使用之Agent
笔记·langchain·unix
零度@6 小时前
SQL 调优全解:从 20 秒到 200 ms 的 6 步实战笔记(附脚本)
数据库·笔记·sql
im_AMBER7 小时前
Leetcode 78 识别数组中的最大异常值 | 镜像对之间最小绝对距离
笔记·学习·算法·leetcode
其美杰布-富贵-李8 小时前
HDF5文件学习笔记
数据结构·笔记·学习
d111111111d9 小时前
在STM32函数指针是什么,怎么使用还有典型应用场景。
笔记·stm32·单片机·嵌入式硬件·学习·算法
静小谢9 小时前
前后台一起部署,vite配置笔记base\build
前端·javascript·笔记
ask_baidu10 小时前
Doris笔记
android·笔记
IMPYLH11 小时前
Lua 的 IO (输入/输出)模块
开发语言·笔记·后端·lua
2301_7833601311 小时前
【学习笔记】关于RNA_seq和Ribo_seq技术的对比和BAM生成
笔记·学习