Skip to content

Commit d3228df

Browse files
authored
fix(notebooks): improves inference (#286)
* fix(notebooks): improves and nb_clean * fix(notebooks): improves inference * fix(notebooks): improves inference * fix(notebooks): unix formatting
1 parent 3af223e commit d3228df

File tree

1 file changed

+6
-20
lines changed

1 file changed

+6
-20
lines changed

notebooks/so-vits-svc-fork-4.0.ipynb

Lines changed: 6 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
]
1313
},
1414
{
15-
"attachments": {},
1615
"cell_type": "markdown",
1716
"metadata": {},
1817
"source": [
@@ -73,15 +72,6 @@
7372
"outputs": [],
7473
"source": [
7574
"#@title Make dataset directory\n",
76-
"%cd ./content"
77-
]
78-
},
79-
{
80-
"cell_type": "code",
81-
"execution_count": null,
82-
"metadata": {},
83-
"outputs": [],
84-
"source": [
8575
"!mkdir -p \"dataset_raw\""
8676
]
8777
},
@@ -174,7 +164,6 @@
174164
]
175165
},
176166
{
177-
"attachments": {},
178167
"cell_type": "markdown",
179168
"metadata": {},
180169
"source": [
@@ -218,8 +207,11 @@
218207
"outputs": [],
219208
"source": [
220209
"#@title Use trained model\n",
221-
"!svc infer {NAME}.wav -m drive/MyDrive/so-vits-svc-fork/logs/44k/ -c drive/MyDrive/so-vits-svc-fork/logs/44k/config.json\n",
222-
"display(Audio(f\"{NAME}.out.wav\", autoplay=True))"
210+
"#@markdown **Put your .wav file in `so-vits-svc-fork/audio` directory**\n",
211+
"from IPython.display import Audio, display\n",
212+
"NAME = 'your audio file name' #@param {type: \"string\"}\n",
213+
"!svc infer drive/MyDrive/so-vits-svc-fork/audio/{NAME}.wav -m drive/MyDrive/so-vits-svc-fork/logs/44k/ -c drive/MyDrive/so-vits-svc-fork/logs/44k/config.json\n",
214+
"display(Audio(f\"drive/MyDrive/so-vits-svc-fork/audio/{NAME}.out.wav\", autoplay=True))"
223215
]
224216
},
225217
{
@@ -234,7 +226,6 @@
234226
]
235227
},
236228
{
237-
"attachments": {},
238229
"cell_type": "markdown",
239230
"metadata": {},
240231
"source": [
@@ -287,12 +278,7 @@
287278
"metadata": {
288279
"accelerator": "GPU",
289280
"colab": {
290-
"provenance": [
291-
{
292-
"file_id": "https://github.com/34j/so-vits-svc-fork/blob/feat%2Fmain-feat/so-vits-svc-fork-4.0.ipynb",
293-
"timestamp": 1678970434570
294-
}
295-
]
281+
"provenance": []
296282
},
297283
"gpuClass": "standard",
298284
"kernelspec": {

0 commit comments

Comments
 (0)