1
0
This commit is contained in:
mrq 2023-02-24 16:23:30 +00:00
parent 2104dbdbc5
commit f31ea9d5bc
2 changed files with 4 additions and 3 deletions

View File

@ -42,7 +42,7 @@
"%cd ai-voice-cloning\n",
"\n",
"!git submodule init\n",
"!git submodule update\n",
"!git submodule update --remote\n",
"\n",
"# TODO: fix venvs working for subprocess.Popen calling a bash script\n",
"#!apt install python3.8-venv\n",
@ -107,7 +107,7 @@
"!mkdir /content/drive/MyDrive/ai-voice-cloning/\n",
"!mv /content/drive/MyDrive/{training,results,voices,config} /content/drive/MyDrive/ai-voice-cloning\n",
"!mkdir /content/drive/MyDrive/ai-voice-cloning/{training,results,voices,config}\n",
"!ln -s /content/drive/MyDrive/ai-voice-cloning/{training,results,voices,config} /content/drive/MyDrive/ai-voice-cloning/"
"!ln -s /content/drive/MyDrive/ai-voice-cloning/{training,results,voices,config} ./"
],
"metadata":{
"id":"SGt9gyvubveT"

View File

@ -205,7 +205,8 @@ def import_training_settings_proxy( epochs, learning_rate, learning_rate_schedul
outdir = f'./training/{voice}-finetune/'
in_config_path = f"{indir}/train.yaml"
out_configs = sorted([d[:-5] for d in os.listdir(outdir) if d[-5:] == ".yaml" ])
if os.path.isdir(outdir):
out_configs = sorted([d[:-5] for d in os.listdir(outdir) if d[-5:] == ".yaml" ])
if len(out_configs) > 0:
out_config_path = f'{outdir}/{out_configs[-1]}.yaml'