forked from mrq/ai-voice-cloning
actually cleaned the notebook
This commit is contained in:
parent
1fd88afcca
commit
7d1936adad
|
@ -54,7 +54,9 @@
|
||||||
"!python -m pip install -r ./dlas/requirements.txt\n",
|
"!python -m pip install -r ./dlas/requirements.txt\n",
|
||||||
"!python -m pip install -r ./tortoise-tts/requirements.txt\n",
|
"!python -m pip install -r ./tortoise-tts/requirements.txt\n",
|
||||||
"!python -m pip install -r ./requirements.txt\n",
|
"!python -m pip install -r ./requirements.txt\n",
|
||||||
"!python -m pip install -e ./tortoise-tts/"
|
"!python -m pip install -e ./tortoise-tts/\n",
|
||||||
|
"\n",
|
||||||
|
"!rm ./tortoise-tts/{main,webui}.py"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -71,8 +73,7 @@
|
||||||
"source":[
|
"source":[
|
||||||
"# for my debugging purposes\n",
|
"# for my debugging purposes\n",
|
||||||
"%cd /content/ai-voice-cloning/\n",
|
"%cd /content/ai-voice-cloning/\n",
|
||||||
"!./update.sh\n",
|
"!./update.sh"
|
||||||
"# exit()"
|
|
||||||
],
|
],
|
||||||
"metadata":{
|
"metadata":{
|
||||||
"id":"3DktoOXSHmtw"
|
"id":"3DktoOXSHmtw"
|
||||||
|
@ -122,7 +123,7 @@
|
||||||
{
|
{
|
||||||
"cell_type":"markdown",
|
"cell_type":"markdown",
|
||||||
"source":[
|
"source":[
|
||||||
"## Running"
|
"## Running (Inlined)"
|
||||||
],
|
],
|
||||||
"metadata":{
|
"metadata":{
|
||||||
"id":"o1gkfw3B3JSk"
|
"id":"o1gkfw3B3JSk"
|
||||||
|
@ -138,8 +139,10 @@
|
||||||
"import sys\n",
|
"import sys\n",
|
||||||
"\n",
|
"\n",
|
||||||
"sys.argv = [\"\"]\n",
|
"sys.argv = [\"\"]\n",
|
||||||
"sys.path.append('./src/')\n",
|
"if './src/' not in sys.path:\n",
|
||||||
"sys.path.append('./tortoise-tts/')\n",
|
"\tsys.path.append('./src/')\n",
|
||||||
|
"if './tortoise-tts/' not in sys.path:\n",
|
||||||
|
"\tsys.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",
|
||||||
|
@ -147,18 +150,18 @@
|
||||||
"if 'TRANSFORMERS_CACHE' not in os.environ:\n",
|
"if 'TRANSFORMERS_CACHE' not in os.environ:\n",
|
||||||
"\tos.environ['TRANSFORMERS_CACHE'] = os.path.realpath(os.path.join(os.getcwd(), './models/transformers/'))\n",
|
"\tos.environ['TRANSFORMERS_CACHE'] = os.path.realpath(os.path.join(os.getcwd(), './models/transformers/'))\n",
|
||||||
"\n",
|
"\n",
|
||||||
"from utils import *\n",
|
"import utils\n",
|
||||||
"from webui import *\n",
|
"import webui\n",
|
||||||
"\n",
|
"\n",
|
||||||
"args = setup_args()\n",
|
"args = utils.setup_args()\n",
|
||||||
"\n",
|
"ui = webui.setup_gradio()\n",
|
||||||
"webui = setup_gradio()\n",
|
|
||||||
"# Be very, very sure to check \"Defer TTS Load\" in Settings, then restart, before you start training\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",
|
"# You'll crash the runtime if you don't\n",
|
||||||
"if not args.defer_tts_load:\n",
|
"if not args.defer_tts_load:\n",
|
||||||
"\ttts = setup_tortoise()\n",
|
"\tutils.setup_tortoise()\n",
|
||||||
"webui.launch(share=True, prevent_thread_lock=True, height=1000)\n",
|
"\n",
|
||||||
"webui.block_thread()"
|
"ui.launch(share=True, prevent_thread_lock=True, height=1000)\n",
|
||||||
|
"ui.block_thread()"
|
||||||
],
|
],
|
||||||
"metadata":{
|
"metadata":{
|
||||||
"id":"c_EQZLTA19c7"
|
"id":"c_EQZLTA19c7"
|
||||||
|
@ -168,6 +171,52 @@
|
||||||
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"cell_type":"markdown",
|
||||||
|
"source":[
|
||||||
|
"## Running (non-inlined)"
|
||||||
|
],
|
||||||
|
"metadata":{
|
||||||
|
"id":"EM3iNqgJF6Be"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cell_type":"code",
|
||||||
|
"source":[
|
||||||
|
"%cd /content/ai-voice-cloning/\n",
|
||||||
|
"!./start.sh"
|
||||||
|
],
|
||||||
|
"metadata":{
|
||||||
|
"id":"QRA8jF3cF-YJ"
|
||||||
|
},
|
||||||
|
"execution_count":null,
|
||||||
|
"outputs":[
|
||||||
|
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cell_type":"markdown",
|
||||||
|
"source":[
|
||||||
|
"# Restart Runtime"
|
||||||
|
],
|
||||||
|
"metadata":{
|
||||||
|
"id":"vH9KU7SMGDxb"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cell_type":"code",
|
||||||
|
"source":[
|
||||||
|
"!rm ./tortoise-tts/{main,webui}.py\n",
|
||||||
|
"exit()"
|
||||||
|
],
|
||||||
|
"metadata":{
|
||||||
|
"id":"EWeyUPvgGDX5"
|
||||||
|
},
|
||||||
|
"execution_count":null,
|
||||||
|
"outputs":[
|
||||||
|
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"cell_type":"markdown",
|
"cell_type":"markdown",
|
||||||
"source":[
|
"source":[
|
||||||
|
|
Loading…
Reference in New Issue
Block a user