|
|
@ -40,14 +40,17 @@
|
|
|
|
"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",
|
|
|
|
|
|
|
|
"\n",
|
|
|
|
"# TODO: fix venvs working for subprocess.Popen calling a bash script\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",
|
|
|
|
|
|
|
|
"\n",
|
|
|
|
"!git clone https://git.ecker.tech/mrq/DL-Art-School dlas\n",
|
|
|
|
"!git clone https://git.ecker.tech/mrq/DL-Art-School dlas\n",
|
|
|
|
"!python -m pip install --upgrade pip\n",
|
|
|
|
"!python -m pip install --upgrade pip\n",
|
|
|
|
"!pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu116\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"
|
|
|
|
"!python -m pip install -r ./requirements.txt"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -67,10 +70,13 @@
|
|
|
|
"%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 ../tortoise-tts/\n",
|
|
|
|
|
|
|
|
"!git reset --hard HEAD\n",
|
|
|
|
|
|
|
|
"!git pull\n",
|
|
|
|
|
|
|
|
"!cd ..\n",
|
|
|
|
"!git reset --hard HEAD\n",
|
|
|
|
"!git reset --hard HEAD\n",
|
|
|
|
"!git pull\n",
|
|
|
|
"!git pull\n",
|
|
|
|
"#exit()"
|
|
|
|
"# exit()"
|
|
|
|
],
|
|
|
|
],
|
|
|
|
"metadata":{
|
|
|
|
"metadata":{
|
|
|
|
"id":"3DktoOXSHmtw"
|
|
|
|
"id":"3DktoOXSHmtw"
|
|
|
@ -137,6 +143,7 @@
|
|
|
|
"\n",
|
|
|
|
"\n",
|
|
|
|
"sys.argv = [\"\"]\n",
|
|
|
|
"sys.argv = [\"\"]\n",
|
|
|
|
"sys.path.append('./src/')\n",
|
|
|
|
"sys.path.append('./src/')\n",
|
|
|
|
|
|
|
|
"sys.path.append('./tortoise-tts/')\n",
|
|
|
|
"\n",
|
|
|
|
"\n",
|
|
|
|
"if 'TORTOISE_MODELS_DIR' not in os.environ:\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",
|
|
|
|
"\tos.environ['TORTOISE_MODELS_DIR'] = os.path.realpath(os.path.join(os.getcwd(), './models/tortoise/'))\n",
|
|
|
|