Skip to content

Commit 22b8ec6

Browse files
Cleanup default config (#2589)
CVS-159039
1 parent 6ae258f commit 22b8ec6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

notebooks/softvc-voice-conversion/softvc-voice-conversion.ipynb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@
122122
},
123123
"outputs": [],
124124
"source": [
125+
"import os\n",
126+
"\n",
125127
"from notebook_utils import download_file, device_widget\n",
126128
"\n",
127129
"\n",
@@ -138,6 +140,8 @@
138140
" \"kmeans_10000.pt\",\n",
139141
" directory=\"so-vits-svc/logs/44k/\",\n",
140142
")\n",
143+
"if os.stat(\"so-vits-svc/configs/config.json\").st_size == 0: # cleanup if it is default empty file\n",
144+
" os.remove(\"so-vits-svc/configs/config.json\")\n",
141145
"download_file(\n",
142146
" \"https://huggingface.co/therealvul/so-vits-svc-4.0/resolve/main/Rainbow%20Dash%20(singing)/config.json\",\n",
143147
" \"config.json\",\n",

0 commit comments

Comments
 (0)