add tensorboard by @KakaruHayate

This commit is contained in:
源文雨 2023-04-09 00:36:56 +08:00
parent 1ff2e87d80
commit ffef3678cb

View File

@ -129,7 +129,7 @@
"#@title 从谷歌云盘加载打包好的数据集到/content/dataset\n", "#@title 从谷歌云盘加载打包好的数据集到/content/dataset\n",
"\n", "\n",
"#@markdown 数据集位置\n", "#@markdown 数据集位置\n",
"DATASET = \"/content/drive/MyDrive/dataset/lulu20230327_32k.zip\" #@param {type:\"string\"}\n", "DATASET = \"/content/drive/MyDrive/dataset/lulucall_48k.zip\" #@param {type:\"string\"}\n",
"\n", "\n",
"!mkdir -p /content/dataset\n", "!mkdir -p /content/dataset\n",
"!unzip -d /content/dataset {DATASET}" "!unzip -d /content/dataset {DATASET}"
@ -145,6 +145,8 @@
"source": [ "source": [
"#@title 启动web\n", "#@title 启动web\n",
"%cd /content/Retrieval-based-Voice-Conversion-WebUI\n", "%cd /content/Retrieval-based-Voice-Conversion-WebUI\n",
"%load_ext tensorboard\n",
"%tensorboard --logdir /content/Retrieval-based-Voice-Conversion-WebUI/logs\n",
"!python3 infer-web.py --colab --pycmd python3" "!python3 infer-web.py --colab --pycmd python3"
], ],
"metadata": { "metadata": {
@ -162,7 +164,7 @@
"#@markdown 模型名\n", "#@markdown 模型名\n",
"MODELNAME = \"lulu\" #@param {type:\"string\"}\n", "MODELNAME = \"lulu\" #@param {type:\"string\"}\n",
"#@markdown 模型epoch\n", "#@markdown 模型epoch\n",
"MODELEPOCH = 7700 #@param {type:\"integer\"}\n", "MODELEPOCH = 7500 #@param {type:\"integer\"}\n",
"\n", "\n",
"!cp /content/Retrieval-based-Voice-Conversion-WebUI/logs/{MODELNAME}/G_{MODELEPOCH}.pth /content/drive/MyDrive/{MODELNAME}_D_{MODELEPOCH}.pth\n", "!cp /content/Retrieval-based-Voice-Conversion-WebUI/logs/{MODELNAME}/G_{MODELEPOCH}.pth /content/drive/MyDrive/{MODELNAME}_D_{MODELEPOCH}.pth\n",
"!cp /content/Retrieval-based-Voice-Conversion-WebUI/logs/{MODELNAME}/D_{MODELEPOCH}.pth /content/drive/MyDrive/{MODELNAME}_G_{MODELEPOCH}.pth\n", "!cp /content/Retrieval-based-Voice-Conversion-WebUI/logs/{MODELNAME}/D_{MODELEPOCH}.pth /content/drive/MyDrive/{MODELNAME}_G_{MODELEPOCH}.pth\n",
@ -186,7 +188,7 @@
"#@markdown 模型名\n", "#@markdown 模型名\n",
"MODELNAME = \"lulu\" #@param {type:\"string\"}\n", "MODELNAME = \"lulu\" #@param {type:\"string\"}\n",
"#@markdown 模型epoch\n", "#@markdown 模型epoch\n",
"MODELEPOCH = 7700 #@param {type:\"integer\"}\n", "MODELEPOCH = 6000 #@param {type:\"integer\"}\n",
"\n", "\n",
"!mkdir -p /content/Retrieval-based-Voice-Conversion-WebUI/logs/{MODELNAME}\n", "!mkdir -p /content/Retrieval-based-Voice-Conversion-WebUI/logs/{MODELNAME}\n",
"\n", "\n",
@ -239,9 +241,9 @@
"#@markdown 模型名\n", "#@markdown 模型名\n",
"MODELNAME = \"lulu\" #@param {type:\"string\"}\n", "MODELNAME = \"lulu\" #@param {type:\"string\"}\n",
"#@markdown 停止的epoch\n", "#@markdown 停止的epoch\n",
"MODELEPOCH = 800 #@param {type:\"integer\"}\n", "MODELEPOCH = 2500 #@param {type:\"integer\"}\n",
"#@markdown 保存epoch间隔\n", "#@markdown 保存epoch间隔\n",
"EPOCHSAVE = 20 #@param {type:\"integer\"}\n", "EPOCHSAVE = 100 #@param {type:\"integer\"}\n",
"#@markdown 采样率\n", "#@markdown 采样率\n",
"MODELSAMPLE = \"48k\" #@param {type:\"string\"}\n", "MODELSAMPLE = \"48k\" #@param {type:\"string\"}\n",
"\n", "\n",