fix(colab): add feature retrieval
This commit is contained in:
parent
55dd869858
commit
cb4aeba1c1
|
@ -453,7 +453,25 @@
|
|||
"#@markdown\n",
|
||||
"\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",
|
||||
"const ping = () => {\n",
|
||||
" const btn = document.querySelector(\"colab-connect-button\");\n",
|
||||
" if (btn) {\n",
|
||||
" btn.click();\n",
|
||||
" const inner_btn = btn.shadowRoot.querySelector(\"#connect\");\n",
|
||||
" if (inner_btn) {\n",
|
||||
" inner_btn.click();\n",
|
||||
" console.log(\"Clicked on connect button\");\n",
|
||||
" } else {\n",
|
||||
" console.log(\"connect button not found\");\n",
|
||||
" }\n",
|
||||
"\n",
|
||||
" const nextTime = 5000 + Math.random() * 1000;\n",
|
||||
" const nextTime = 50000 + Math.random() * 10000;\n",
|
||||
"\n",
|
||||
" setTimeout(ping, nextTime);\n",
|
||||
"};\n",
|
||||
|
|
Loading…
Reference in New Issue