Skip to content

Commit

Permalink
Colaboratory を使用して作成しました
Browse files Browse the repository at this point in the history
  • Loading branch information
w-okada committed Jan 14, 2023
1 parent 0680da9 commit eac7586
Showing 1 changed file with 50 additions and 47 deletions.
97 changes: 50 additions & 47 deletions VoiceChangerDemo.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"colab": {
"name": "VoiceChangerDemo",
"provenance": [],
"authorship_tag": "ABX9TyNLt+Tfa4/4CVhJBwv4JieA",
"authorship_tag": "ABX9TyOc15otxqkeLfxiyox8JliU",
"include_colab_link": true
},
"kernelspec": {
Expand Down Expand Up @@ -74,15 +74,15 @@
"base_uri": "https://localhost:8080/"
},
"id": "vV1t7PBRm-o6",
"outputId": "dd745d3a-5b96-488a-ae51-39c47ec47b34"
"outputId": "0ca1a6a2-95c1-429f-bb6a-adbf71bcda02"
},
"execution_count": null,
"execution_count": 1,
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"text": [
"Thu Jan 12 14:15:31 2023 \n",
"Sat Jan 14 10:57:42 2023 \n",
"+-----------------------------------------------------------------------------+\n",
"| NVIDIA-SMI 460.32.03 Driver Version: 460.32.03 CUDA Version: 11.2 |\n",
"|-------------------------------+----------------------+----------------------+\n",
Expand All @@ -91,7 +91,7 @@
"| | | MIG M. |\n",
"|===============================+======================+======================|\n",
"| 0 Tesla T4 Off | 00000000:00:04.0 Off | 0 |\n",
"| N/A 65C P8 13W / 70W | 0MiB / 15109MiB | 0% Default |\n",
"| N/A 63C P8 11W / 70W | 0MiB / 15109MiB | 0% Default |\n",
"| | | N/A |\n",
"+-------------------------------+----------------------+----------------------+\n",
" \n",
Expand Down Expand Up @@ -135,18 +135,18 @@
"metadata": {
"id": "nSXATMWYb4Ik"
},
"execution_count": 1,
"execution_count": 2,
"outputs": []
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": 3,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "2wxD-gRSMU5R",
"outputId": "691379e5-de2d-483d-bb0f-35df0ea589a6"
"outputId": "0cca0ac1-4a3b-42da-a3c3-057d550e379f"
},
"outputs": [
{
Expand Down Expand Up @@ -177,7 +177,7 @@
"cell_type": "code",
"source": [
"# (3) リポジトリのクローン\n",
"!git clone --depth 1 https://github.com/w-okada/voice-changer.git -b v.1.3.4\n",
"!git clone --depth 1 https://github.com/w-okada/voice-changer.git -b v.1.3.5\n",
"%cd voice-changer/server\n",
"!git clone https://github.com/isletennos/MMVC_Client.git\n",
"!cd MMVC_Client && git checkout 04f3fec4fd82dea6657026ec4e1cd80fb29a415c && cd -"
Expand All @@ -187,29 +187,40 @@
"base_uri": "https://localhost:8080/"
},
"id": "86wTFmqsNMnD",
"outputId": "ce9469b2-c327-440f-bba0-43285e6ec813"
"outputId": "a249b913-3ffc-4b82-f62d-a856012f3562"
},
"execution_count": 3,
"execution_count": 4,
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"text": [
"Cloning into 'voice-changer'...\n",
"remote: Enumerating objects: 144, done.\u001b[K\n",
"remote: Counting objects: 100% (144/144), done.\u001b[K\n",
"remote: Compressing objects: 100% (129/129), done.\u001b[K\n",
"remote: Total 144 (delta 20), reused 62 (delta 5), pack-reused 0\u001b[K\n",
"Receiving objects: 100% (144/144), 1.52 MiB | 3.76 MiB/s, done.\n",
"remote: Enumerating objects: 149, done.\u001b[K\n",
"remote: Counting objects: 100% (149/149), done.\u001b[K\n",
"remote: Compressing objects: 100% (134/134), done.\u001b[K\n",
"remote: Total 149 (delta 20), reused 64 (delta 5), pack-reused 0\u001b[K\n",
"Receiving objects: 100% (149/149), 1.56 MiB | 4.35 MiB/s, done.\n",
"Resolving deltas: 100% (20/20), done.\n",
"Note: checking out '4c6f7c00fa68d91e1ccdb07b7c35ce603b6b0ab2'.\n",
"\n",
"You are in 'detached HEAD' state. You can look around, make experimental\n",
"changes and commit them, and you can discard any commits you make in this\n",
"state without impacting any branches by performing another checkout.\n",
"\n",
"If you want to create a new branch to retain commits you create, you may\n",
"do so (now or later) by using -b with the checkout command again. Example:\n",
"\n",
" git checkout -b <new-branch-name>\n",
"\n",
"/content/voice-changer/server\n",
"Cloning into 'MMVC_Client'...\n",
"remote: Enumerating objects: 594, done.\u001b[K\n",
"remote: Counting objects: 100% (322/322), done.\u001b[K\n",
"remote: Counting objects: 100% (320/320), done.\u001b[K\n",
"remote: Compressing objects: 100% (114/114), done.\u001b[K\n",
"remote: Total 594 (delta 231), reused 263 (delta 205), pack-reused 272\u001b[K\n",
"Receiving objects: 100% (594/594), 776.40 KiB | 13.62 MiB/s, done.\n",
"Resolving deltas: 100% (352/352), done.\n",
"remote: Total 594 (delta 229), reused 261 (delta 203), pack-reused 274\u001b[K\n",
"Receiving objects: 100% (594/594), 738.87 KiB | 18.02 MiB/s, done.\n",
"Resolving deltas: 100% (351/351), done.\n",
"Note: checking out '04f3fec4fd82dea6657026ec4e1cd80fb29a415c'.\n",
"\n",
"You are in 'detached HEAD' state. You can look around, make experimental\n",
Expand Down Expand Up @@ -254,7 +265,7 @@
"metadata": {
"id": "LwZAAuqxX7yY"
},
"execution_count": 4,
"execution_count": 5,
"outputs": []
},
{
Expand All @@ -271,18 +282,16 @@
"アクセスできるようになるまで、1~2分かかるようです。コーヒーでも飲みに行きましょう。\n",
"\n",
"下記のようなテキストが表示されたら起動完了です。\n",
"\n",
"**`INFO:root:Loaded checkpoint ...`**\n",
"\n",
"(warningは無視して問題ありません。)\n",
"```\n",
"/usr/local/lib/python3.8/dist-packages/onnxruntime/capi/onnxruntime_inference_collection.py:54: UserWarning: Specified provider 'OpenVINOExecutionProvider' is not in available provider names.Available providers: 'TensorrtExecutionProvider, CUDAExecutionProvider, CPUExecutionProvider'\n",
" warnings.warn(\n",
"/usr/local/lib/python3.8/dist-packages/onnxruntime/capi/onnxruntime_inference_collection.py:54: UserWarning: Specified provider 'DmlExecutionProvider' is not in available provider names.Available providers: 'TensorrtExecutionProvider, CUDAExecutionProvider, CPUExecutionProvider'\n",
" warnings.warn(\n",
" Phase name:__main__\n",
" PHASE3:__main__\n",
"VoiceChanger Initialized (GPU_NUM:1, mps_enabled:False)\n",
" PHASE1:__main__\n",
"Start MMVC SocketIO Server\n",
" CONFIG:/content/drive/MyDrive/VoiceChanger/config.json, MODEL:None ONNX_MODEL:/content/drive/MyDrive/VoiceChanger/G_326000.onnx\n",
"```\n",
" Voice Changerを起動しています。\n",
" -- 設定 -- \n",
" CONFIG:/content/drive/MyDrive/VoiceChanger/config.json, MODEL:None ONNX_MODEL:/content/drive/MyDrive/VoiceChanger/G_326000.onnx```\n",
"\n"
],
"metadata": {
Expand All @@ -306,13 +315,13 @@
"else:\n",
" model_param = f\"\"\n",
"\n",
"get_ipython().system_raw(f'python3 MMVCServerSIO.py -t MMVC -p {PORT} -c {CONFIG} {model_param} --colab True >{LOG_FILE} 2>&1 &')\n",
"get_ipython().system_raw(f'python3 MMVCServerSIO.py -t MMVC -p {PORT} -c {CONFIG} {model_param} --https False --colab True >{LOG_FILE} 2>&1 &')\n",
"#print(f\"PORT:{PORT}, LOG_FILE:{LOG_FILE}\")"
],
"metadata": {
"id": "iNOAB7zISI6J"
},
"execution_count": 5,
"execution_count": 6,
"outputs": []
},
{
Expand All @@ -326,28 +335,22 @@
"base_uri": "https://localhost:8080/"
},
"id": "chu06KpAjEK6",
"outputId": "294388a0-d072-4790-e106-5d980c1f9c5a"
"outputId": "dab82a85-6d85-4a6c-ecee-82f458269862"
},
"execution_count": 7,
"execution_count": 13,
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"text": [
"\u001b[32m Phase name:__main__\u001b[0m\n",
"\u001b[32m PHASE3:__main__\u001b[0m\n",
"VoiceChanger Initialized (GPU_NUM:1, mps_enabled:False)\n",
"INFO:root:Loaded checkpoint '/content/drive/MyDrive/VoiceChanger/G_326000.pth' (iteration 1136)\n",
"/usr/local/lib/python3.8/dist-packages/onnxruntime/capi/onnxruntime_inference_collection.py:54: UserWarning: Specified provider 'OpenVINOExecutionProvider' is not in available provider names.Available providers: 'TensorrtExecutionProvider, CUDAExecutionProvider, CPUExecutionProvider'\n",
" warnings.warn(\n",
"/usr/local/lib/python3.8/dist-packages/onnxruntime/capi/onnxruntime_inference_collection.py:54: UserWarning: Specified provider 'DmlExecutionProvider' is not in available provider names.Available providers: 'TensorrtExecutionProvider, CUDAExecutionProvider, CPUExecutionProvider'\n",
" warnings.warn(\n",
"\u001b[32m PHASE1:__main__\u001b[0m\n",
"\u001b[17mStart MMVC SocketIO Server\u001b[0m\n",
"\u001b[34m CONFIG:/content/drive/MyDrive/VoiceChanger/config.json, MODEL:/content/drive/MyDrive/VoiceChanger/G_326000.pth ONNX_MODEL:/content/drive/MyDrive/VoiceChanger/G_326000.onnx\u001b[0m\n",
"\u001b[32m Phase name:MMVCServerSIO\u001b[0m\n",
"\u001b[32m PHASE3:MMVCServerSIO\u001b[0m\n",
"INFO:root:Loaded checkpoint '/content/drive/MyDrive/VoiceChanger/G_326000.pth' (iteration 1136)\n"
"VoiceChanger Initialized (GPU_NUM:1, mps_enabled:False)\n",
"\u001b[32m Voice Changerを起動しています。\u001b[0m\n",
"\u001b[34m -- 設定 -- \u001b[0m\n",
"\u001b[34m CONFIG:/content/drive/MyDrive/VoiceChanger/config.json, MODEL:None ONNX_MODEL:/content/drive/MyDrive/VoiceChanger/G_326000.onnx\u001b[0m\n"
]
}
]
Expand Down Expand Up @@ -380,15 +383,15 @@
"base_uri": "https://localhost:8080/",
"height": 34
},
"outputId": "88aed9a7-8189-4b2a-d362-2129a8202e20"
"outputId": "67b0f1f9-6c29-4a7c-b51a-09b0d6fa73ce"
},
"execution_count": 8,
"execution_count": 14,
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"text": [
"https://nc8xeapxkxg-496ff2e9c6d22116-10128-colab.googleusercontent.com/front/?colab=true\n"
"https://bw798xestd8-496ff2e9c6d22116-13755-colab.googleusercontent.com/front/?colab=true\n"
]
}
]
Expand Down

0 comments on commit eac7586

Please sign in to comment.