From 494fee14d3618b46c74cb319454c8bc27ba58816 Mon Sep 17 00:00:00 2001 From: blaisewf Date: Tue, 7 Jan 2025 00:40:25 +0100 Subject: [PATCH] remove old things from colab --- assets/Applio.ipynb | 37 ---------------------------- assets/Applio_Kaggle.ipynb | 50 -------------------------------------- 2 files changed, 87 deletions(-) diff --git a/assets/Applio.ipynb b/assets/Applio.ipynb index 4ac2c08f..c165fb3c 100644 --- a/assets/Applio.ipynb +++ b/assets/Applio.ipynb @@ -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, diff --git a/assets/Applio_Kaggle.ipynb b/assets/Applio_Kaggle.ipynb index 9df25832..9912919b 100644 --- a/assets/Applio_Kaggle.ipynb +++ b/assets/Applio_Kaggle.ipynb @@ -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": {