notebook tweaked, drive mounts and symlinks folders so I can stop having to wait a gorillion years to import voices

This commit is contained in:
mrq 2023-02-18 16:30:05 +00:00
parent 996e5217d2
commit 13d466baf5

View File

@ -3,7 +3,10 @@
"nbformat_minor":0, "nbformat_minor":0,
"metadata":{ "metadata":{
"colab":{ "colab":{
"private_outputs":true "private_outputs":true,
"provenance":[
]
}, },
"kernelspec":{ "kernelspec":{
"name":"python3", "name":"python3",
@ -37,6 +40,7 @@
"source":[ "source":[
"!git clone https://git.ecker.tech/mrq/ai-voice-cloning/\n", "!git clone https://git.ecker.tech/mrq/ai-voice-cloning/\n",
"%cd ai-voice-cloning\n", "%cd ai-voice-cloning\n",
"# TODO: fix venvs working for subprocess.Popen calling a bash script\n",
"#!apt install python3.8-venv\n", "#!apt install python3.8-venv\n",
"#!python -m venv venv\n", "#!python -m venv venv\n",
"#!source ./venv/bin/activate\n", "#!source ./venv/bin/activate\n",
@ -59,12 +63,14 @@
{ {
"cell_type":"code", "cell_type":"code",
"source":[ "source":[
"# for my debugging purposes\n",
"%cd /content/ai-voice-cloning/dlas\n", "%cd /content/ai-voice-cloning/dlas\n",
"!git reset --hard HEAD\n", "!git reset --hard HEAD\n",
"!git pull\n", "!git pull\n",
"%cd ..\n", "%cd ..\n",
"!git reset --hard HEAD\n", "!git reset --hard HEAD\n",
"!git pull\n" "!git pull\n",
"#exit()"
], ],
"metadata":{ "metadata":{
"id":"3DktoOXSHmtw" "id":"3DktoOXSHmtw"
@ -86,12 +92,22 @@
{ {
"cell_type":"code", "cell_type":"code",
"source":[ "source":[
"# only run once, this will save all userdata to your Drive\n",
"from google.colab import drive\n", "from google.colab import drive\n",
"drive.mount('/content/drive')\n", "drive.mount('/content/drive')\n",
"\n", "\n",
"%cd /content/ai-voice-cloning\n", "%cd /content/ai-voice-cloning\n",
"!rm -r ./training\n", "!rm -r ./training\n",
"!ln -s /content/drive/MyDrive/training/" "!rm -r ./results\n",
"!rm -r ./voices\n",
"\n",
"!mkdir /content/drive/MyDrive/training/\n",
"!mkdir /content/drive/MyDrive/results/\n",
"!mkdir /content/drive/MyDrive/voices/\n",
"\n",
"!ln -s /content/drive/MyDrive/training/\n",
"!ln -s /content/drive/MyDrive/results/\n",
"!ln -s /content/drive/MyDrive/voices/"
], ],
"metadata":{ "metadata":{
"id":"SGt9gyvubveT" "id":"SGt9gyvubveT"
@ -134,7 +150,10 @@
"args = setup_args()\n", "args = setup_args()\n",
"\n", "\n",
"webui = setup_gradio()\n", "webui = setup_gradio()\n",
"tts = setup_tortoise()\n", "# Be very, very sure to check \"Defer TTS Load\" in Settings, then restart, before you start training\n",
"# You'll crash the runtime if you don't\n",
"if not args.defer_tts_load:\n",
"\ttts = setup_tortoise()\n",
"webui.launch(share=True, prevent_thread_lock=True, height=1000)\n", "webui.launch(share=True, prevent_thread_lock=True, height=1000)\n",
"webui.block_thread()" "webui.block_thread()"
], ],