Skip to content

Commit

Permalink
Update Colab Format
Browse files Browse the repository at this point in the history
  • Loading branch information
Vidalnt committed Feb 16, 2024
1 parent 10ec49e commit 03b88b3
Showing 1 changed file with 29 additions and 6 deletions.
35 changes: 29 additions & 6 deletions RVC_CLI.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,10 @@
"f0up_key = 0 #@param {type:\"slider\", min:-24, max:24, step:0}\n",
"filter_radius = 0 #@param {type:\"slider\", min:0, max:10, step:0}\n",
"index_rate = 0.0 #@param {type:\"slider\", min:0.0, max:1.0, step:0.1}\n",
"hop_length = 1 # @param {type:\"slider\", min:1, max:512, step:0}\n",
"hop_length = 64 #@param {type:\"integer\"}\n",
"split_audio = False #@param{type:\"boolean\"}\n",
"autotune = False #@param{type:\"boolean\"}\n",
"\n",
"!python main.py infer {f0up_key} {filter_radius} {index_rate} {hop_length} {f0method} \"{input_path}\" \"{output_path}\" \"{pth_file}\" \"{index_file}\" {split_audio} {autotune}\n",
"\n",
"from IPython.display import Audio, display, clear_output\n",
Expand Down Expand Up @@ -196,6 +197,19 @@
"!python main.py extract {model_name} {rvc_version} {f0method} {hop_length} {sr}"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"#@title Pretraineds\n",
"pretrained = True #@param{type:\"boolean\"}\n",
"custom_pretrained = True #@param{type:\"boolean\"}\n",
"g_pretrained_path = 'Custom Path' # @param {type:\"string\"}\n",
"d_pretrained_path = 'Custom Path' # @param {type:\"string\"}"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down Expand Up @@ -351,14 +365,23 @@
"total_epoch = 800 #@param {type:\"slider\", min:1, max:10000, step:0}\n",
"sample_rate = \"40k\" #@param [\"32k\", \"40k\", \"48k\"] {allow-input: false}\n",
"batch_size = 15 #@param {type:\"slider\", min:1, max:25, step:0}\n",
"gpu = 0 # @param {type:\"number\"}\n",
"gpu = 0 \n",
"sr = int(sample_rate.rstrip('k'))*1000\n",
"pitch_guidance = True #@param{type:\"boolean\"}\n",
"pretrained = True #@param{type:\"boolean\"}\n",
"custom_pretrained = False #@param{type:\"boolean\"}\n",
"g_pretrained_path = 'Custom Path' # @param {type:\"string\"}\n",
"d_pretrained_path = 'Custom Path' # @param {type:\"string\"}\n",
"auto_backups = True #@param{type:\"boolean\"}\n",
"\n",
"if 'pretrained' not in globals():\n",
" pretrained = True \n",
"\n",
"if 'custom_pretrained' not in globals():\n",
" custom_pretrained = False \n",
"\n",
"if 'g_pretrained_path' not in globals():\n",
" g_pretrained_path = 'Custom Path' \n",
"\n",
"if 'd_pretrained_path' not in globals():\n",
" d_pretrained_path = 'Custom Path' \n",
"\n",
"def start_train():\n",
" %load_ext tensorboard\n",
" %tensorboard --logdir /content/RVC_CLI/logs/\n",
Expand Down

0 comments on commit 03b88b3

Please sign in to comment.