From ae2de6a454437790914ca3bfcf3b907d51e2981d Mon Sep 17 00:00:00 2001 From: 34j <55338215+34j@users.noreply.github.com> Date: Mon, 10 Apr 2023 20:58:14 +0900 Subject: [PATCH 1/2] docs(notebook): update notebook --- notebooks/so-vits-svc-fork-4.0.ipynb | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/notebooks/so-vits-svc-fork-4.0.ipynb b/notebooks/so-vits-svc-fork-4.0.ipynb index db487f53..a262db83 100644 --- a/notebooks/so-vits-svc-fork-4.0.ipynb +++ b/notebooks/so-vits-svc-fork-4.0.ipynb @@ -53,9 +53,13 @@ "\n", "#@markdown Branch (for development)\n", "BRANCH = \"none\" #@param {\"type\": \"string\"}\n", + "TPU = True #@param {\"type\": \"boolean\"}\n", + "if TPU:\n", + " %pip install cloud-tpu-client==0.10 torch==2.0.0 torchvision==0.15.1 https://storage.googleapis.com/tpu-pytorch/wheels/colab/torch_xla-2.0-cp39-cp39-linux_x86_64.whl\n", "if BRANCH == \"none\":\n", " %pip install -U so-vits-svc-fork\n", "else:\n", + " %pip uninstall -y so-vits-svc-fork\n", " %pip install -U git+https://github.com/34j/so-vits-svc-fork.git@{BRANCH}" ] }, @@ -66,16 +70,6 @@ "## Training" ] }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "#@title Make dataset directory\n", - "%cd ./content" - ] - }, { "cell_type": "code", "execution_count": null, From aa40578a381ddbd3296c2121a7f3c081d7281357 Mon Sep 17 00:00:00 2001 From: 34j <55338215+34j@users.noreply.github.com> Date: Wed, 12 Apr 2023 15:40:41 +0900 Subject: [PATCH 2/2] docs(notebook): update docs --- notebooks/so-vits-svc-fork-4.0.ipynb | 35 ++++++---------------------- 1 file changed, 7 insertions(+), 28 deletions(-) diff --git a/notebooks/so-vits-svc-fork-4.0.ipynb b/notebooks/so-vits-svc-fork-4.0.ipynb index fc73b667..91471c1b 100644 --- a/notebooks/so-vits-svc-fork-4.0.ipynb +++ b/notebooks/so-vits-svc-fork-4.0.ipynb @@ -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." ] }, { @@ -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, @@ -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/\"" ] }, { @@ -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\"" ] }, { @@ -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\"" ] }, { @@ -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\"" ] }, { @@ -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\"" ] }, {