mirror of
https://github.com/RVC-Boss/GPT-SoVITS.git
synced 2025-04-05 04:22:46 +08:00
* Update requirements.txt * Create constraints.txt * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md * pyopenjtalk and onnx fix * Update requirements.txt * Update requirements.txt * Update install.sh * update shell install.sh * update docs * Update Install.sh * fix bugs * Update .gitignore * Update .gitignore * Update install.sh * Update install.sh * Update extra-req.txt * Update requirements.txt
99 lines
3.4 KiB
Plaintext
99 lines
3.4 KiB
Plaintext
{
|
|
"cells": [
|
|
{
|
|
"cell_type": "markdown",
|
|
"metadata": {
|
|
"colab_type": "text",
|
|
"id": "view-in-github"
|
|
},
|
|
"source": [
|
|
"<a href=\"https://colab.research.google.com/github/RVC-Boss/GPT-SoVITS/blob/main/colab_webui.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "markdown",
|
|
"metadata": {
|
|
"id": "_o6a8GS2lWQM"
|
|
},
|
|
"source": [
|
|
"环境配置 environment"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": null,
|
|
"metadata": {
|
|
"id": "e9b7iFV3dm1f"
|
|
},
|
|
"outputs": [],
|
|
"source": [
|
|
"!pip install -q condacolab\n",
|
|
"# Setting up condacolab and installing packages\n",
|
|
"import condacolab\n",
|
|
"condacolab.install_from_url(\"https://repo.anaconda.com/miniconda/Miniconda3-py39_23.11.0-2-Linux-x86_64.sh\")\n",
|
|
"%cd -q /content\n",
|
|
"!git clone https://github.com/RVC-Boss/GPT-SoVITS\n",
|
|
"!conda install -y -q -c pytorch -c nvidia cudatoolkit\n",
|
|
"%cd -q /content/GPT-SoVITS\n",
|
|
"!conda install -y -q -c conda-forge gcc gxx ffmpeg cmake -c pytorch -c nvidia\n",
|
|
"!/usr/local/bin/pip install -r extra-req.txt --no-deps\n",
|
|
"!/usr/local/bin/pip install -r requirements.txt"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": null,
|
|
"metadata": {
|
|
"id": "0NgxXg5sjv7z"
|
|
},
|
|
"outputs": [],
|
|
"source": [
|
|
"# @title Download pretrained models 下载预训练模型\n",
|
|
"!mkdir -p /content/GPT-SoVITS/GPT_SoVITS/pretrained_models\n",
|
|
"!mkdir -p /content/GPT-SoVITS/tools/damo_asr/models\n",
|
|
"!mkdir -p /content/GPT-SoVITS/tools/uvr5\n",
|
|
"%cd /content/GPT-SoVITS/GPT_SoVITS/pretrained_models\n",
|
|
"!git clone https://huggingface.co/lj1995/GPT-SoVITS\n",
|
|
"%cd /content/GPT-SoVITS/tools/damo_asr/models\n",
|
|
"!git clone https://www.modelscope.cn/damo/speech_paraformer-large_asr_nat-zh-cn-16k-common-vocab8404-pytorch.git\n",
|
|
"!git clone https://www.modelscope.cn/damo/speech_fsmn_vad_zh-cn-16k-common-pytorch.git\n",
|
|
"!git clone https://www.modelscope.cn/damo/punc_ct-transformer_zh-cn-common-vocab272727-pytorch.git\n",
|
|
"# @title UVR5 pretrains 安装uvr5模型\n",
|
|
"%cd /content/GPT-SoVITS/tools/uvr5\n",
|
|
"%rm -r uvr5_weights\n",
|
|
"!git clone https://huggingface.co/Delik/uvr5_weights\n",
|
|
"!git config core.sparseCheckout true\n",
|
|
"!mv /content/GPT-SoVITS/GPT_SoVITS/pretrained_models/GPT-SoVITS/* /content/GPT-SoVITS/GPT_SoVITS/pretrained_models/"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": null,
|
|
"metadata": {
|
|
"id": "4oRGUzkrk8C7"
|
|
},
|
|
"outputs": [],
|
|
"source": [
|
|
"# @title launch WebUI 启动WebUI\n",
|
|
"!/usr/local/bin/pip install ipykernel\n",
|
|
"!sed -i '10s/False/True/' /content/GPT-SoVITS/config.py\n",
|
|
"%cd /content/GPT-SoVITS/\n",
|
|
"!/usr/local/bin/python webui.py"
|
|
]
|
|
}
|
|
],
|
|
"metadata": {
|
|
"accelerator": "GPU",
|
|
"colab": {
|
|
"include_colab_link": true,
|
|
"provenance": []
|
|
},
|
|
"kernelspec": {
|
|
"display_name": "Python 3",
|
|
"name": "python3"
|
|
}
|
|
},
|
|
"nbformat": 4,
|
|
"nbformat_minor": 0
|
|
}
|