"### Please solve the authorization problem of the dataset on your own. You shall be solely responsible for any problems caused by the use of non-authorized datasets for training and all consequences thereof.The repository and its maintainer, svc develop team, have nothing to do with the consequences!\n",
"\n",
"1. This project is established for academic exchange purposes only and is intended for communication and learning purposes. It is not intended for production environments.\n",
"2. Any videos based on sovits that are published on video platforms must clearly indicate in the description that they are used for voice changing and specify the input source of the voice or audio, for example, using videos or audios published by others and separating the vocals as input source for conversion, which must provide clear original video or music links. If your own voice or other synthesized voices from other commercial vocal synthesis software are used as the input source for conversion, you must also explain it in the description.\n",
"3. You shall be solely responsible for any infringement problems caused by the input source. When using other commercial vocal synthesis software as input source, please ensure that you comply with the terms of use of the software. Note that many vocal synthesis engines clearly state in their terms of use that they cannot be used for input source conversion.\n",
"4. Continuing to use this project is deemed as agreeing to the relevant provisions stated in this repository README. This repository README has the obligation to persuade, and is not responsible for any subsequent problems that may arise.\n",
"5. If you distribute this repository's code or publish any results produced by this project publicly (including but not limited to video sharing platforms), please indicate the original author and code source (this repository).\n",
"6. If you use this project for any other plan, please contact and inform the author of this repository in advance. Thank you very much.\n"
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {
"id": "M_RcDbVPhivj"
},
"source": [
"## **Note:**\n",
"## **Make sure there is no a directory named `sovits4data` in your google drive at the first time you use this notebook.**\n",
"## **It will be created to store some necessary files.** \n",
"## **For sure you can change it to another directory by modifying `sovits_data_dir` variable.**"
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {
"id": "fHaw6hGEa_Nk"
},
"source": [
"# **Initialize environment**"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "0gQcIZ8RsOkn"
},
"outputs": [],
"source": [
"#@title Connect to colab runtime and check GPU\n",
"\n",
"#@markdown # Connect to colab runtime and check GPU\n",
"\n",
"#@markdown\n",
"\n",
"!nvidia-smi"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "0YUGpYrXhMck"
},
"outputs": [],
"source": [
"#@title Clone repository and install requirements\n",
"\n",
"#@markdown # Clone repository and install requirements\n",
"\n",
"#@markdown\n",
"\n",
"#@markdown ### After the execution is completed, the runtime will **automatically restart**\n",
"#@title Get pretrained model(Optional but strongly recommend).\n",
"\n",
"#@markdown # Get pretrained model(Optional but strongly recommend).\n",
"\n",
"#@markdown\n",
"\n",
"#@markdown - Pre-trained model files: `G_0.pth` `D_0.pth`\n",
"#@markdown - Place them under /sovits4data/logs/44k/ in your google drive manualy\n",
"\n",
"#@markdown Get them from svc-develop-team(TBD) or anywhere else.\n",
"\n",
"#@markdown Although the pretrained model generally does not cause any copyright problems, please pay attention to it. For example, ask the author in advance, or the author has indicated the feasible use in the description clearly.\n",
"\n",
"!pwd"
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {
"id": "k1qadJBFehMo"
},
"source": [
"# **Dataset preprocessing**"
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {
"id": "kBlju6Q3lSM6"
},
"source": [
"Pack and upload your raw dataset(dataset_raw/) to your google drive.\n",
"\n",
"Makesure the file structure in your zip file looks like this:\n",
"\n",
"```\n",
"YourZIPforSingleSpeakers.zip\n",
"└───speaker\n",
" ├───xxx1-xxx1.wav\n",
" ├───...\n",
" └───Lxx-0xx8.wav\n",
"```\n",
"\n",
"```\n",
"YourZIPforMultipleSpeakers.zip\n",
"├───speaker0\n",
"│ ├───xxx1-xxx1.wav\n",
"│ ├───...\n",
"│ └───Lxx-0xx8.wav\n",
"└───speaker1\n",
" ├───xx2-0xxx2.wav\n",
" ├───...\n",
" └───xxx7-xxx007.wav\n",
"```\n",
"\n",
"**Even if there is only one speaker, a folder named `{speaker_name}` is needed.**"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "U05CXlAipvJR"
},
"outputs": [],
"source": [
"#@title Get raw dataset from google drive\n",
"\n",
"#@markdown # Get raw dataset from google drive\n",
"\n",
"#@markdown\n",
"\n",
"#@markdown Directory where **your zip file** located in, dont miss the slash at the end👇.\n",
"#@markdown #### Details see [README.md#cluster-based-timbre-leakage-control](https://github.com/svc-develop-team/so-vits-svc#cluster-based-timbre-leakage-control)\n",
"\n",
"#@markdown\n",
"\n",
"%cd /content/so-vits-svc\n",
"!python cluster/train_cluster.py"
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
"# keep colab alive\n",
"Open the devtools and copy & paste to run the scrips.\n",