一个基于VITS的简单易用的变声框架
Go to file
yxlllc 3dec36568c optimize real-time vc 2023-12-26 00:23:36 +08:00
.github Update PULL_REQUEST_TEMPLATE.md (#1417) 2023-10-13 00:08:58 +09:00
assets chore(sync): merge dev into main (#1379) 2023-10-06 17:14:33 +08:00
configs optimize real-time vc 2023-12-26 00:23:36 +08:00
docs chore(sync): merge dev into main (#1381) 2023-10-06 21:35:22 +08:00
i18n chore(i18n): sync locale on dev (#1585) 2023-11-30 20:34:39 +09:00
infer optimize real-time vc 2023-12-26 00:23:36 +08:00
logs/mute Add files via upload 2023-05-14 16:08:37 +08:00
tools optimize real-time vc 2023-12-26 00:23:36 +08:00
.env fix: index_root searching 2023-09-01 14:11:55 +08:00
.gitignore chore: Add back important `.gitignore` entries (#1125) 2023-08-31 22:06:59 +08:00
Dockerfile fix: typo for rmvpe location in Dockerfile (#1261) 2023-09-17 07:29:17 +09:00
LICENSE Update LICENSE (#1137) 2023-08-30 20:45:15 +08:00
MIT协议暨相关引用库协议 Create MIT协议暨相关引用库协议 2023-07-12 11:25:18 +08:00
README.md Update README.md 2023-10-29 12:36:00 +08:00
Retrieval_based_Voice_Conversion_WebUI.ipynb update colab notebooks (#1023) 2023-08-16 14:08:22 +08:00
Retrieval_based_Voice_Conversion_WebUI_v2.ipynb update colab notebooks (#1023) 2023-08-16 14:08:22 +08:00
docker-compose.yml Added NVIDIA GPU support to Docker (#1231) 2023-09-13 00:18:04 +09:00
environment_dml.yaml Add directML support to RVC for AMD & Intel GPU supported (#707) 2023-07-09 10:07:02 +00:00
go-realtime-gui-dml.bat Add files via upload 2023-08-30 20:31:56 +08:00
go-realtime-gui.bat Add files via upload 2023-07-11 14:45:34 +08:00
go-web-dml.bat Add files via upload 2023-08-30 20:31:56 +08:00
go-web.bat Add files via upload 2023-04-27 23:34:03 +08:00
gui_v1.py optimize real-time vc 2023-12-26 00:23:36 +08:00
infer-web.py feat: add en_US translations and missing i18n in web client (#1576) 2023-11-30 20:32:24 +09:00
poetry.lock chore: sync dev to mian (#1404) 2023-10-09 15:23:11 +09:00
pyproject.toml deps: add av lib (#1391) 2023-10-08 18:31:39 +08:00
requirements-amd.txt ROCm support for AMD GPUs on Linux (#1248) 2023-09-15 10:41:38 +09:00
requirements-dml.txt optimize(ffmpeg): replace cmdline ffmpeg to pyav 2023-09-03 15:19:19 +08:00
requirements-ipex.txt chore(sync): merge dev into main (#1379) 2023-10-06 17:14:33 +08:00
requirements-win-for-realtime_vc_gui-dml.txt Add files via upload 2023-08-13 11:53:46 +08:00
requirements-win-for-realtime_vc_gui.txt Fix GUI i18n (#38) 2023-04-12 14:28:28 +08:00
requirements.txt add fcpe for realtime 2023-12-14 21:09:41 +08:00
run.sh optimize: no json config writeback 2023-09-02 13:53:56 +08:00
venv.sh bugfix: fix .venv file version to 3.8 (#946) 2023-08-26 23:54:44 +08:00

README.md

Retrieval-based-Voice-Conversion-WebUI

一个基于VITS的简单易用的变声框架

madewithlove


Open In Colab Licence Huggingface

Discord

更新日志 | 常见问题解答 | AutoDL·5毛钱训练AI歌手 | 对照实验记录 | 在线演示


English | 中文简体 | 日本語 | 한국어 (韓國語) | Français| Türkçe

点此查看我们的演示视频 !

训练推理界面go-web.bat

image

实时变声界面go-realtime-gui.bat

image

底模使用接近50小时的开源高质量VCTK训练集训练无版权方面的顾虑请大家放心使用

请期待RVCv3的底模参数更大数据更大效果更好基本持平的推理速度需要训练数据量更少。

简介

本仓库具有以下特点

  • 使用top1检索替换输入源特征为训练集特征来杜绝音色泄漏
  • 即便在相对较差的显卡上也能快速训练
  • 使用少量数据进行训练也能得到较好结果(推荐至少收集10分钟低底噪语音数据)
  • 可以通过模型融合来改变音色(借助ckpt处理选项卡中的ckpt-merge)
  • 简单易用的网页界面
  • 可调用UVR5模型来快速分离人声和伴奏
  • 使用最先进的人声音高提取算法InterSpeech2023-RMVPE根绝哑音问题。效果最好显著地但比crepe_full更快、资源占用更小
  • A卡I卡加速支持

环境配置

以下指令需在 Python 版本大于3.8的环境中执行。

(Windows/Linux)
首先通过 pip 安装主要依赖:

# 安装Pytorch及其核心依赖若已安装则跳过
# 参考自: https://pytorch.org/get-started/locally/
pip install torch torchvision torchaudio

#如果是win系统+Nvidia Ampere架构(RTX30xx),根据 #21 的经验需要指定pytorch对应的cuda版本
#pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu117

可以使用 poetry 来安装依赖:

# 安装 Poetry 依赖管理工具, 若已安装则跳过
# 参考自: https://python-poetry.org/docs/#installation
curl -sSL https://install.python-poetry.org | python3 -

# 通过poetry安装依赖
poetry install

你也可以通过 pip 来安装依赖:

N卡
  pip install -r requirements.txt

A卡/I卡
  pip install -r requirements-dml.txt

A卡RocmLinux
  pip install -r requirements-amd.txt

I卡IPEXLinux
  pip install -r requirements-ipex.txt

Mac 用户可以通过 run.sh 来安装依赖:

sh ./run.sh

其他预模型准备

RVC需要其他一些预模型来推理和训练。

你可以从我们的Hugging Face space下载到这些模型。

以下是一份清单包括了所有RVC所需的预模型和其他文件的名称:

./assets/hubert/hubert_base.pt

./assets/pretrained 

./assets/uvr5_weights

想测试v2版本模型的话需要额外下载

./assets/pretrained_v2

如果你正在使用Windows则你可能需要这个文件若ffmpeg和ffprobe已安装则跳过; ubuntu/debian 用户可以通过apt install ffmpeg来安装这2个库, Mac 用户则可以通过brew install ffmpeg来安装 (需要预先安装brew)

./ffmpeg

https://huggingface.co/lj1995/VoiceConversionWebUI/blob/main/ffmpeg.exe

./ffprobe

https://huggingface.co/lj1995/VoiceConversionWebUI/blob/main/ffprobe.exe

如果你想使用最新的RMVPE人声音高提取算法则你需要下载音高提取模型参数并放置于RVC根目录

https://huggingface.co/lj1995/VoiceConversionWebUI/blob/main/rmvpe.pt

    A卡I卡用户需要的dml环境要请下载

    https://huggingface.co/lj1995/VoiceConversionWebUI/blob/main/rmvpe.onnx

之后使用以下指令来启动WebUI:

python infer-web.py

如果你正在使用Windows 或 macOS你可以直接下载并解压RVC-beta.7z,前者可以运行go-web.bat以启动WebUI后者则运行命令sh ./run.sh以启动WebUI。

对于需要使用IPEX技术的I卡用户请先在终端执行source /opt/intel/oneapi/setvars.sh仅Linux

仓库内还有一份小白简易教程.doc以供参考。

AMD显卡Rocm相关仅Linux

如果你想基于AMD的Rocm技术在Linux系统上运行RVC请先在这里安装所需的驱动。

若你使用的是Arch Linux可以使用pacman来安装所需驱动

pacman -S rocm-hip-sdk rocm-opencl-sdk

对于某些型号的显卡你可能需要额外配置如下的环境变量RX6700XT

export ROCM_PATH=/opt/rocm
export HSA_OVERRIDE_GFX_VERSION=10.3.0

同时确保你的当前用户处于rendervideo用户组内:

sudo usermod -aG render $USERNAME
sudo usermod -aG video $USERNAME

之后运行WebUI

python infer-web.py

参考项目

感谢所有贡献者作出的努力