From a245dc43c0c04356c4c2da7c82ee0d17052ca3c4 Mon Sep 17 00:00:00 2001 From: mrq Date: Fri, 17 Feb 2023 20:18:57 +0000 Subject: [PATCH] small fixes --- notebook.ipynb | 52 ++++++++++++++++++++++++++++++++++++++++++++-- setup-training.sh | 3 ++- setup_training.bat | 3 ++- update.bat | 1 + update.sh | 1 + 5 files changed, 56 insertions(+), 4 deletions(-) diff --git a/notebook.ipynb b/notebook.ipynb index 3f501a5..2ca8b41 100755 --- a/notebook.ipynb +++ b/notebook.ipynb @@ -42,9 +42,20 @@ "%cd ai-voice-cloning\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 ./requirements.txt" + "!python -m pip install -r ./requirements.txt\n", + "!git clone https://git.ecker.tech/mrq/DL-Art-School dlas\n", + "!python -m pip install -r ./dlas/requirements.txt" ] }, + { + "cell_type":"markdown", + "source":[ + "# Restart Runtime Before Proceeding" + ], + "metadata":{ + "id":"TXFyLVLA48S5" + } + }, { "cell_type":"code", "source":[ @@ -59,6 +70,20 @@ ] }, + { + "cell_type":"code", + "source":[ + "from google.colab import drive\n", + "drive.mount('/content/drive')" + ], + "metadata":{ + "id":"SGt9gyvubveT" + }, + "execution_count":null, + "outputs":[ + + ] + }, { "cell_type":"markdown", "source":[ @@ -92,7 +117,7 @@ "\n", "webui = setup_gradio()\n", "tts = setup_tortoise()\n", - "webui.launch(share=True, prevent_thread_lock=True, height=1000)\n", + "webui.launch(share=True, prevent_thread_lock=True, debug=True, height=1000)\n", "webui.block_thread()" ], "metadata":{ @@ -103,6 +128,29 @@ ] }, + { + "cell_type":"markdown", + "source":[ + "# Fallback Training" + ], + "metadata":{ + "id":"ggLY9A9KA21D" + } + }, + { + "cell_type":"code", + "source":[ + "%cd /content/ai-voice-cloning\n", + "!python ./src/train.py -opt ./training/finetune.yml" + ], + "metadata":{ + "id":"-KayB8klA5tY" + }, + "execution_count":null, + "outputs":[ + + ] + }, { "cell_type":"markdown", "source":[ diff --git a/setup-training.sh b/setup-training.sh index d7a813c..76c48a3 100755 --- a/setup-training.sh +++ b/setup-training.sh @@ -1 +1,2 @@ -git clone https://git.ecker.tech/mrq/DL-Art-School dlas \ No newline at end of file +git clone https://git.ecker.tech/mrq/DL-Art-School dlas +python -m pip install -r ./dlas/requirements.txt \ No newline at end of file diff --git a/setup_training.bat b/setup_training.bat index d7a813c..ab6e8a7 100755 --- a/setup_training.bat +++ b/setup_training.bat @@ -1 +1,2 @@ -git clone https://git.ecker.tech/mrq/DL-Art-School dlas \ No newline at end of file +git clone https://git.ecker.tech/mrq/DL-Art-School dlas +!python -m pip install -r .\dlas\requirements.txt \ No newline at end of file diff --git a/update.bat b/update.bat index b9e430e..a856d8b 100755 --- a/update.bat +++ b/update.bat @@ -3,5 +3,6 @@ python -m venv venv call .\venv\Scripts\activate.bat python -m pip install --upgrade pip python -m pip install -r ./requirements.txt +python -m pip install -r ./dlas/requirements.txt deactivate pause \ No newline at end of file diff --git a/update.sh b/update.sh index a25642e..f861154 100755 --- a/update.sh +++ b/update.sh @@ -3,4 +3,5 @@ python -m venv venv source ./venv/bin/activate python -m pip install --upgrade pip python -m pip install -r ./requirements.txt +python -m pip install -r ./dlas/requirements.txt deactivate \ No newline at end of file