fix(colab): add feature retrieval
This commit is contained in:
parent
19cda62077
commit
6136f4062a
|
@ -453,7 +453,25 @@
|
||||||
"#@markdown\n",
|
"#@markdown\n",
|
||||||
"\n",
|
"\n",
|
||||||
"%cd /content/so-vits-svc\n",
|
"%cd /content/so-vits-svc\n",
|
||||||
"!python cluster/train_cluster.py"
|
"!python cluster/train_cluster.py --gpu"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cell_type": "code",
|
||||||
|
"execution_count": null,
|
||||||
|
"metadata": {},
|
||||||
|
"outputs": [],
|
||||||
|
"source": [
|
||||||
|
"#@title Train index model (Optional)\n",
|
||||||
|
"\n",
|
||||||
|
"#@markdown # Train index model (Optional)\n",
|
||||||
|
"\n",
|
||||||
|
"#@markdown #### Details see [README.md#feature-retrieval](https://github.com/svc-develop-team/so-vits-svc#feature-retrieval)\n",
|
||||||
|
"\n",
|
||||||
|
"#@markdown\n",
|
||||||
|
"\n",
|
||||||
|
"%cd /content/so-vits-svc\n",
|
||||||
|
"!python train_index.py -c configs/config.json"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -501,14 +519,15 @@
|
||||||
"```JavaScript\n",
|
"```JavaScript\n",
|
||||||
"const ping = () => {\n",
|
"const ping = () => {\n",
|
||||||
" const btn = document.querySelector(\"colab-connect-button\");\n",
|
" const btn = document.querySelector(\"colab-connect-button\");\n",
|
||||||
" if (btn) {\n",
|
" const inner_btn = btn.shadowRoot.querySelector(\"#connect\");\n",
|
||||||
" btn.click();\n",
|
" if (inner_btn) {\n",
|
||||||
|
" inner_btn.click();\n",
|
||||||
" console.log(\"Clicked on connect button\");\n",
|
" console.log(\"Clicked on connect button\");\n",
|
||||||
" } else {\n",
|
" } else {\n",
|
||||||
" console.log(\"connect button not found\");\n",
|
" console.log(\"connect button not found\");\n",
|
||||||
" }\n",
|
" }\n",
|
||||||
"\n",
|
"\n",
|
||||||
" const nextTime = 5000 + Math.random() * 1000;\n",
|
" const nextTime = 50000 + Math.random() * 10000;\n",
|
||||||
"\n",
|
"\n",
|
||||||
" setTimeout(ping, nextTime);\n",
|
" setTimeout(ping, nextTime);\n",
|
||||||
"};\n",
|
"};\n",
|
||||||
|
|
Loading…
Reference in New Issue