Skip to content

Commit

Permalink
Close cell
Browse files Browse the repository at this point in the history
  • Loading branch information
Vidalnt committed Feb 16, 2024
1 parent 03b88b3 commit f56d6cd
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions RVC_CLI.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,10 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"cellView": "form",
"id": "hHJxA8WoBRlT"
},
"outputs": [],
"source": [
"#@title Pretraineds\n",
Expand Down Expand Up @@ -321,14 +324,14 @@
" last_backup_timestamp = last_backup_timestamps.get(filepath)\n",
" current_timestamp = os.path.getmtime(filepath)\n",
" if last_backup_timestamp is None or float(last_backup_timestamp) < current_timestamp:\n",
" shutil.copy2(filepath, backup_filepath) \n",
" last_backup_timestamps[filepath] = str(current_timestamp) \n",
" shutil.copy2(filepath, backup_filepath)\n",
" last_backup_timestamps[filepath] = str(current_timestamp)\n",
" if last_backup_timestamp is None:\n",
" print(f'Backed up file: {filename}')\n",
" else:\n",
" print(f'Updating backed up file: {filename}')\n",
" updated = True\n",
" fully_updated = False \n",
" fully_updated = False\n",
"\n",
" for filepath in list(last_backup_timestamps.keys()):\n",
" if not os.path.exists(filepath):\n",
Expand All @@ -338,11 +341,11 @@
" print(f'Deleted file: {filepath}')\n",
" del last_backup_timestamps[filepath]\n",
" updated = True\n",
" fully_updated = False \n",
" fully_updated = False\n",
"\n",
" if not updated and not fully_updated:\n",
" print(\"Files are up to date.\")\n",
" fully_updated = True \n",
" fully_updated = True\n",
" copy_weights_folder_to_drive()\n",
" sleep_time = 15\n",
" else:\n",
Expand All @@ -365,22 +368,22 @@
"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 \n",
"gpu = 0\n",
"sr = int(sample_rate.rstrip('k'))*1000\n",
"pitch_guidance = True #@param{type:\"boolean\"}\n",
"auto_backups = True #@param{type:\"boolean\"}\n",
"\n",
"if 'pretrained' not in globals():\n",
" pretrained = True \n",
" pretrained = True\n",
"\n",
"if 'custom_pretrained' not in globals():\n",
" custom_pretrained = False \n",
" custom_pretrained = False\n",
"\n",
"if 'g_pretrained_path' not in globals():\n",
" g_pretrained_path = 'Custom Path' \n",
" g_pretrained_path = 'Custom Path'\n",
"\n",
"if 'd_pretrained_path' not in globals():\n",
" d_pretrained_path = 'Custom Path' \n",
" d_pretrained_path = 'Custom Path'\n",
"\n",
"def start_train():\n",
" %load_ext tensorboard\n",
Expand Down Expand Up @@ -490,4 +493,4 @@
},
"nbformat": 4,
"nbformat_minor": 0
}
}

0 comments on commit f56d6cd

Please sign in to comment.