From 3891870b5dbc0b1044b8aa843475c7334628faeb Mon Sep 17 00:00:00 2001 From: mrq Date: Sun, 19 Feb 2023 07:22:22 +0000 Subject: [PATCH] Update notebook to follow the \'other\' way of installing mrq/tortoise-tts --- notebook.ipynb | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/notebook.ipynb b/notebook.ipynb index 441936f..f484d38 100755 --- a/notebook.ipynb +++ b/notebook.ipynb @@ -40,14 +40,17 @@ "source":[ "!git clone https://git.ecker.tech/mrq/ai-voice-cloning/\n", "%cd ai-voice-cloning\n", + "\n", "# TODO: fix venvs working for subprocess.Popen calling a bash script\n", "#!apt install python3.8-venv\n", "#!python -m venv venv\n", "#!source ./venv/bin/activate\n", + "\n", "!git clone https://git.ecker.tech/mrq/DL-Art-School dlas\n", "!python -m pip install --upgrade pip\n", "!pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu116\n", - "!python -m pip install -r ./dlas/requirements.txt\n", + "!./setup-tortoise.sh\n", + "!./setup-training.sh\n", "!python -m pip install -r ./requirements.txt" ] }, @@ -67,10 +70,13 @@ "%cd /content/ai-voice-cloning/dlas\n", "!git reset --hard HEAD\n", "!git pull\n", - "%cd ..\n", + "%cd ../tortoise-tts/\n", "!git reset --hard HEAD\n", "!git pull\n", - "#exit()" + "!cd ..\n", + "!git reset --hard HEAD\n", + "!git pull\n", + "# exit()" ], "metadata":{ "id":"3DktoOXSHmtw" @@ -137,6 +143,7 @@ "\n", "sys.argv = [\"\"]\n", "sys.path.append('./src/')\n", + "sys.path.append('./tortoise-tts/')\n", "\n", "if 'TORTOISE_MODELS_DIR' not in os.environ:\n", "\tos.environ['TORTOISE_MODELS_DIR'] = os.path.realpath(os.path.join(os.getcwd(), './models/tortoise/'))\n",