Skip to content

Commit

Permalink
remove old things from colab
Browse files Browse the repository at this point in the history
  • Loading branch information
blaisewf committed Jan 6, 2025
1 parent 149b3d7 commit 494fee1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 87 deletions.
37 changes: 0 additions & 37 deletions assets/Applio.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -306,43 +306,6 @@
" print(\"Autobackup Enabled\")"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"cellView": "form",
"id": "-vIzj7pye8Z0"
},
"outputs": [],
"source": [
"# @title Setup new logs folder format\n",
"# @markdown Put the exact name you put as your Model Name in Applio.\n",
"modelname = \"My-Project\" # @param {type:\"string\"}\n",
"logs_folder = f\"/content/program_ml/logs/{modelname}/\"\n",
"\n",
"import os\n",
"\n",
"folder_renames = {\n",
" \"0_gt_wavs\": \"sliced_audios\",\n",
" \"1_16k_wavs\": \"sliced_audios_16k\",\n",
" \"2a_f0\": \"f0\",\n",
" \"2b-f0nsf\": \"f0_voiced\",\n",
" \"3_feature768\": \"v2_extracted\"\n",
"}\n",
"\n",
"def rename_folders(base_path, rename_dict):\n",
" for old_name, new_name in rename_dict.items():\n",
" old_path = os.path.join(base_path, old_name)\n",
" new_path = os.path.join(base_path, new_name)\n",
" if os.path.exists(old_path):\n",
" os.rename(old_path, new_path)\n",
" print(f\"Renamed {old_path} to {new_path}\")\n",
" else:\n",
" print(f\"Folder {old_path} does not exist\")\n",
"\n",
"rename_folders(logs_folder, folder_renames)\n"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down
50 changes: 0 additions & 50 deletions assets/Applio_Kaggle.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -154,56 +154,6 @@
"\n",
"!source /kaggle/tmp/.venv/bin/activate; python app.py"
]
},
{
"cell_type": "markdown",
"metadata": {
"_kg_hide-input": false
},
"source": [
"## Extra"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Setup new logs folder format\n",
"- Put the exact name you put as your Model Name in Applio."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"\n",
"modelname = \"Test\"\n",
"logs_folder = f\"/kaggle/working/program_ml/logs/\" + modelname\n",
"\n",
"import os\n",
"\n",
"folder_renames = {\n",
" \"0_gt_wavs\": \"sliced_audios\",\n",
" \"1_16k_wavs\": \"sliced_audios_16k\",\n",
" \"2a_f0\": \"f0\",\n",
" \"2b-f0nsf\": \"f0_voiced\",\n",
" \"3_feature768\": \"v2_extracted\"\n",
"}\n",
"\n",
"def rename_folders(base_path, rename_dict):\n",
" for old_name, new_name in rename_dict.items():\n",
" old_path = os.path.join(base_path, old_name)\n",
" new_path = os.path.join(base_path, new_name)\n",
" if os.path.exists(old_path):\n",
" os.rename(old_path, new_path)\n",
" print(f\"Renamed {old_path} to {new_path}\")\n",
" else:\n",
" print(f\"Folder {old_path} does not exist\")\n",
"\n",
"rename_folders(logs_folder, folder_renames)\n"
]
}
],
"metadata": {
Expand Down

0 comments on commit 494fee1

Please sign in to comment.