Fix Non-functional Project: Add Multi-source Pretrained Model and UVR5 Download, Enable , Colab Compatibility, and FastAPI Optimization (#2300)

* Replace the outdated link and pin dependencies

* Update Colab

* Add Docs

* .

* Update Install.sh, Support multi download source

* .

* modified path

* Add source

* Update URL

* fix bugs

* fix bug

* fix bugs

* Fix colab

* update colab

* Update Docs

* update links
This commit is contained in:
XXXXRT666
2025-04-19 17:56:42 +01:00
committed by GitHub
parent c0b46314ca
commit b43ae64a1e
8 changed files with 208 additions and 111 deletions

View File

@@ -16,42 +16,66 @@
"id": "_o6a8GS2lWQM"
},
"source": [
"环境配置 environment"
"# Env Setup (Run Once Only)\n",
"# 环境配置, 只需运行一次"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## 1."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "e9b7iFV3dm1f"
},
"metadata": {},
"outputs": [],
"source": [
"!pip install -q condacolab\n",
"# Setting up condacolab and installing packages\n",
"%%writefile /content/setup.sh\n",
"set -e\n",
"cd /content\n",
"rm -rf GPT-SoVITS\n",
"git clone https://github.com/RVC-Boss/GPT-SoVITS.git\n",
"cd GPT-SoVITS\n",
"\n",
"if conda env list | awk '{print $1}' | grep -Fxq \"GPTSoVITS\"; then\n",
" :\n",
"else\n",
" conda create -n GPTSoVITS python=3.10 -y\n",
"fi\n",
"\n",
"source activate GPTSoVITS\n",
"\n",
"bash install.sh --source HF --download-uvr5"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## 2."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"%pip install -q condacolab\n",
"import condacolab\n",
"condacolab.install_from_url(\"https://repo.anaconda.com/archive/Anaconda3-2024.10-1-Linux-x86_64.sh\")\n",
"\n",
"%cd -q /content\n",
"!git clone https://github.com/RVC-Boss/GPT-SoVITS\n",
"%cd -q GPT-SoVITS\n",
"!bash install.sh"
"!cd /content && bash setup.sh"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "0NgxXg5sjv7z"
},
"outputs": [],
"cell_type": "markdown",
"metadata": {},
"source": [
"# @title UVR5 Pretrained Models\n",
"!wget https://www.modelscope.cn/models/XXXXRT/UVR5Weights4GSV/resolve/master/uvr5_weights.zip\n",
"!unzip uvr5_weights.zip\n",
"!rm -rf uvr5_weights.zip\n",
"!mv uvr5_weights/* tools/uvr5/uvr5_weights\n",
"!rm -rf uvr5_weights"
"# Launch WebUI\n",
"# 启动 WebUI"
]
},
{
@@ -62,11 +86,7 @@
},
"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"
"!cd /content/GPT-SoVITS && source activate GPTSoVITS && export is_share=True && python webui.py"
]
}
],