Skip to content

Commit

Permalink
docs(notebook): update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
34j committed Apr 12, 2023
1 parent bb8565c commit aa40578
Showing 1 changed file with 7 additions and 28 deletions.
35 changes: 7 additions & 28 deletions notebooks/so-vits-svc-fork-4.0.ipynb
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
{
"cells": [
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
"## Before training\n",
"\n",
"This program saves the last 3 generations of models to Google Drive. Since 1 generation of models is >1GB, you should have at least 3GB of free space in Google Drive. If you do not have such free space, it is recommended to create another Google Account.\n",
"\n",
"Training requires >10GB VRAM. (T4 should be enough) Inference does not require such a lot of VRAM."
"This program saves the last 3 generations of models to Google Drive. Since 1 generation of models is >1GB, you should have at least 3GB of free space in Google Drive. If you do not have such free space, it is recommended to create another Google Account."
]
},
{
Expand All @@ -18,16 +17,6 @@
"## Installation"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"#@title Check GPU\n",
"!nvidia-smi"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down Expand Up @@ -98,7 +87,7 @@
"#@title Copy your dataset\n",
"#@markdown **We assume that your dataset is in your Google Drive's `so-vits-svc-fork/dataset/(speaker_name)` directory.**\n",
"DATASET_NAME = \"kiritan\" #@param {type: \"string\"}\n",
"!cp -R /content/drive/MyDrive/so-vits-svc-fork/dataset/{DATASET_NAME}/ -t \"dataset_raw/\""
"!cp -R /content/drive/MyDrive/so-vits-svc-fork/dataset_raw_raw/{DATASET_NAME}/ -t \"dataset_raw/\""
]
},
{
Expand All @@ -123,16 +112,7 @@
"outputs": [],
"source": [
"#@title Automatic preprocessing\n",
"!svc pre-resample"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"!svc pre-config"
"!svc pre-resample -o \"drive/MyDrive/so-vits-svc-fork/dataset_raw\""
]
},
{
Expand All @@ -141,8 +121,7 @@
"metadata": {},
"outputs": [],
"source": [
"#@title Copy configs file\n",
"!cp configs/44k/config.json drive/MyDrive/so-vits-svc-fork"
"!svc pre-config -i \"drive/MyDrive/so-vits-svc-fork/dataset_raw\" -o \"drive/MyDrive/so-vits-svc-fork/configs/44k\""
]
},
{
Expand All @@ -152,7 +131,7 @@
"outputs": [],
"source": [
"F0_METHOD = \"dio\" #@param [\"crepe\", \"crepe-tiny\", \"parselmouth\", \"dio\", \"harvest\"]\n",
"!svc pre-hubert -fm {F0_METHOD}"
"!svc pre-hubert -fm {F0_METHOD} -i \"drive/MyDrive/so-vits-svc-fork/dataset\" -c \"drive/MyDrive/so-vits-svc-fork/configs/44k\""
]
},
{
Expand All @@ -164,7 +143,7 @@
"#@title Train\n",
"%load_ext tensorboard\n",
"%tensorboard --logdir drive/MyDrive/so-vits-svc-fork/logs/44k\n",
"!svc train --model-path drive/MyDrive/so-vits-svc-fork/logs/44k"
"!svc train -m \"drive/MyDrive/so-vits-svc-fork/logs/44k\" -c \"drive/MyDrive/so-vits-svc-fork/configs/44k\""
]
},
{
Expand Down

0 comments on commit aa40578

Please sign in to comment.