File size: 3,535 Bytes
e2b6b7d
1
{"nbformat":4,"nbformat_minor":0,"metadata":{"colab":{"private_outputs":true,"provenance":[{"file_id":"1TU-kkQWVf-PLO_hSa2QCMZS1XF5xVHqs","timestamp":1696412550940},{"file_id":"1fc09UzPha3n-q6e5WFwUhr6u5EwOWM9p","timestamp":1684765299701},{"file_id":"1iWOLYE9znqT6XE5Rw2iETE19ZlqpziLx","timestamp":1684167429804},{"file_id":"1BKP-JSMOHm5d4-1TmbgTqIR8TSgXKobk","timestamp":1683349174242},{"file_id":"1mrHh7uqWp43F5jJp6MOXPvumMho3Lj4X","timestamp":1683214917901},{"file_id":"1iHumZNFgvIHqX4VCJh4dcXkdzECPE8fO","timestamp":1682377764710},{"file_id":"1DunK_g2uq8dTA13MtA_RXF4uG4Ph_uqg","timestamp":1682320070478},{"file_id":"1jrsoiIQiJcbpgQPPFAHbbYo8-N88xIME","timestamp":1682284944875},{"file_id":"https://github.com/liujing04/Retrieval-based-Voice-Conversion-WebUI/blob/main/Retrieval_based_Voice_Conversion_WebUI.ipynb","timestamp":1682115412258}],"gpuType":"T4"},"kernelspec":{"name":"python3","display_name":"Python 3"},"language_info":{"name":"python"},"accelerator":"GPU"},"cells":[{"cell_type":"code","source":["#@title Check GPU\n","!nvidia-smi"],"metadata":{"id":"UYsjRYl6IGdY"},"execution_count":null,"outputs":[]},{"cell_type":"code","source":["#@title Mount Google Drive\n","from google.colab import drive\n","drive.mount('/content/drive')"],"metadata":{"id":"XDF6CLukIMBY"},"execution_count":null,"outputs":[]},{"cell_type":"code","source":["#@title Install dependencies\n","#@markdown pip may fail to resolve dependencies and raise ERROR, but it can be ignored.\n","!python -m pip install -U pip wheel\n","%pip install -U ipython\n","\n","#@markdown Branch (for development)\n","BRANCH = \"none\" #@param {\"type\": \"string\"}\n","if BRANCH == \"none\":\n","    %pip install -U so-vits-svc-fork\n","else:\n","    %pip install -U git+https://github.com/34j/so-vits-svc-fork.git@{BRANCH}"],"metadata":{"id":"i_nqeMhAITlQ"},"execution_count":null,"outputs":[]},{"cell_type":"code","source":["#@title Make dataset directory\n","!mkdir -p \"dataset_raw\""],"metadata":{"id":"A4mLrAx1IfXJ"},"execution_count":null,"outputs":[]},{"cell_type":"code","source":["#!rm -r \"dataset_raw\"\n","#!rm -r \"dataset/44k\""],"metadata":{"id":"XP7DwtUJIh-Q"},"execution_count":null,"outputs":[]},{"cell_type":"code","source":["#@title Copy your dataset\n","#@markdown Hãy tạo thư mục trên drive và upload các file âm thanh đã được split 10s\n","DATASET_NAME = \"hana-hoang\" #@param {type: \"string\"}\n","!cp -R /content/drive/MyDrive/TTS/{DATASET_NAME}/ -t \"dataset_raw/\""],"metadata":{"id":"XAgGNnLzIkpm"},"execution_count":null,"outputs":[]},{"cell_type":"code","source":["#@title Automatic preprocessing\n","!svc pre-resample"],"metadata":{"id":"qd_DTQkzIoPW"},"execution_count":null,"outputs":[]},{"cell_type":"code","source":["!svc pre-config"],"metadata":{"id":"wiySQuc_Ip4m"},"execution_count":null,"outputs":[]},{"cell_type":"code","source":["#@title Copy configs file\n","!cp configs/44k/config.json drive/MyDrive/TTS/hana-hoang"],"metadata":{"id":"YVseyFdTIs6e"},"execution_count":null,"outputs":[]},{"cell_type":"code","source":["F0_METHOD = \"dio\" #@param [\"crepe\", \"crepe-tiny\", \"parselmouth\", \"dio\", \"harvest\"]\n","!svc pre-hubert -fm {F0_METHOD}"],"metadata":{"id":"yHuKImneIuc_"},"execution_count":null,"outputs":[]},{"cell_type":"code","source":["#@title Train\n","# %load_ext tensorboard\n","# %tensorboard --logdir drive/MyDrive/TTS/hana-hoang/logs/44k\n","!svc train --model-path drive/MyDrive/TTS/hana-hoang/logs/44k"],"metadata":{"id":"HC1vG1GAIwUG"},"execution_count":null,"outputs":[]}]}