mirror of
https://github.com/w-okada/voice-changer.git
synced 2025-01-23 13:35:12 +03:00
commit
cd5b6c9385
@ -6,7 +6,7 @@
|
|||||||
"name": "VoiceChangerDemo",
|
"name": "VoiceChangerDemo",
|
||||||
"provenance": [],
|
"provenance": [],
|
||||||
"collapsed_sections": [],
|
"collapsed_sections": [],
|
||||||
"authorship_tag": "ABX9TyN61W+ggltXSTbKbQl0Nhqq",
|
"authorship_tag": "ABX9TyMnmljx6Vcud0r/IwjCrzBW",
|
||||||
"include_colab_link": true
|
"include_colab_link": true
|
||||||
},
|
},
|
||||||
"kernelspec": {
|
"kernelspec": {
|
||||||
@ -75,7 +75,7 @@
|
|||||||
"base_uri": "https://localhost:8080/"
|
"base_uri": "https://localhost:8080/"
|
||||||
},
|
},
|
||||||
"id": "vV1t7PBRm-o6",
|
"id": "vV1t7PBRm-o6",
|
||||||
"outputId": "5530154a-ec7d-456c-cb18-46622c2d44fe"
|
"outputId": "033cdd79-1aa3-436c-a99d-a01ca35d8757"
|
||||||
},
|
},
|
||||||
"execution_count": 1,
|
"execution_count": 1,
|
||||||
"outputs": [
|
"outputs": [
|
||||||
@ -83,7 +83,7 @@
|
|||||||
"output_type": "stream",
|
"output_type": "stream",
|
||||||
"name": "stdout",
|
"name": "stdout",
|
||||||
"text": [
|
"text": [
|
||||||
"Sun Sep 18 20:59:42 2022 \n",
|
"Sun Sep 18 21:11:39 2022 \n",
|
||||||
"+-----------------------------------------------------------------------------+\n",
|
"+-----------------------------------------------------------------------------+\n",
|
||||||
"| NVIDIA-SMI 460.32.03 Driver Version: 460.32.03 CUDA Version: 11.2 |\n",
|
"| NVIDIA-SMI 460.32.03 Driver Version: 460.32.03 CUDA Version: 11.2 |\n",
|
||||||
"|-------------------------------+----------------------+----------------------+\n",
|
"|-------------------------------+----------------------+----------------------+\n",
|
||||||
@ -92,7 +92,7 @@
|
|||||||
"| | | MIG M. |\n",
|
"| | | MIG M. |\n",
|
||||||
"|===============================+======================+======================|\n",
|
"|===============================+======================+======================|\n",
|
||||||
"| 0 Tesla T4 Off | 00000000:00:04.0 Off | 0 |\n",
|
"| 0 Tesla T4 Off | 00000000:00:04.0 Off | 0 |\n",
|
||||||
"| N/A 59C P8 12W / 70W | 0MiB / 15109MiB | 0% Default |\n",
|
"| N/A 42C P8 9W / 70W | 0MiB / 15109MiB | 0% Default |\n",
|
||||||
"| | | N/A |\n",
|
"| | | N/A |\n",
|
||||||
"+-------------------------------+----------------------+----------------------+\n",
|
"+-------------------------------+----------------------+----------------------+\n",
|
||||||
" \n",
|
" \n",
|
||||||
@ -141,7 +141,7 @@
|
|||||||
"base_uri": "https://localhost:8080/"
|
"base_uri": "https://localhost:8080/"
|
||||||
},
|
},
|
||||||
"id": "2wxD-gRSMU5R",
|
"id": "2wxD-gRSMU5R",
|
||||||
"outputId": "f0428546-9e08-46d4-941c-70825b6a897c"
|
"outputId": "d0f2beee-9d62-4832-d2a5-565b38718731"
|
||||||
},
|
},
|
||||||
"outputs": [
|
"outputs": [
|
||||||
{
|
{
|
||||||
@ -172,7 +172,7 @@
|
|||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"source": [
|
"source": [
|
||||||
"# (3) リポジトリのクローン\n",
|
"# (3) リポジトリのクローン\n",
|
||||||
"!git clone https://github.com/w-okada/voice-changer.git\n",
|
"!git clone --depth 1 https://github.com/w-okada/voice-changer.git\n",
|
||||||
"%cd voice-changer/demo/\n"
|
"%cd voice-changer/demo/\n"
|
||||||
],
|
],
|
||||||
"metadata": {
|
"metadata": {
|
||||||
@ -180,7 +180,7 @@
|
|||||||
"base_uri": "https://localhost:8080/"
|
"base_uri": "https://localhost:8080/"
|
||||||
},
|
},
|
||||||
"id": "86wTFmqsNMnD",
|
"id": "86wTFmqsNMnD",
|
||||||
"outputId": "6931d814-4238-416a-d001-8d45b3db5cec"
|
"outputId": "22a1773c-6642-4412-e292-f753c5000bc2"
|
||||||
},
|
},
|
||||||
"execution_count": 4,
|
"execution_count": 4,
|
||||||
"outputs": [
|
"outputs": [
|
||||||
@ -189,12 +189,12 @@
|
|||||||
"name": "stdout",
|
"name": "stdout",
|
||||||
"text": [
|
"text": [
|
||||||
"Cloning into 'voice-changer'...\n",
|
"Cloning into 'voice-changer'...\n",
|
||||||
"remote: Enumerating objects: 581, done.\u001b[K\n",
|
"remote: Enumerating objects: 591, done.\u001b[K\n",
|
||||||
"remote: Counting objects: 100% (165/165), done.\u001b[K\n",
|
"remote: Counting objects: 100% (175/175), done.\u001b[K\n",
|
||||||
"remote: Compressing objects: 100% (131/131), done.\u001b[K\n",
|
"remote: Compressing objects: 100% (138/138), done.\u001b[K\n",
|
||||||
"remote: Total 581 (delta 63), reused 66 (delta 32), pack-reused 416\u001b[K\n",
|
"remote: Total 591 (delta 70), reused 71 (delta 35), pack-reused 416\u001b[K\n",
|
||||||
"Receiving objects: 100% (581/581), 23.57 MiB | 28.90 MiB/s, done.\n",
|
"Receiving objects: 100% (591/591), 23.57 MiB | 9.38 MiB/s, done.\n",
|
||||||
"Resolving deltas: 100% (290/290), done.\n",
|
"Resolving deltas: 100% (297/297), done.\n",
|
||||||
"/content/voice-changer/demo\n"
|
"/content/voice-changer/demo\n"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@ -219,7 +219,7 @@
|
|||||||
"metadata": {
|
"metadata": {
|
||||||
"id": "Bn4kV8TgXp8i"
|
"id": "Bn4kV8TgXp8i"
|
||||||
},
|
},
|
||||||
"execution_count": 6,
|
"execution_count": 5,
|
||||||
"outputs": []
|
"outputs": []
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -233,9 +233,9 @@
|
|||||||
"base_uri": "https://localhost:8080/"
|
"base_uri": "https://localhost:8080/"
|
||||||
},
|
},
|
||||||
"id": "pjxPsOOaXXTj",
|
"id": "pjxPsOOaXXTj",
|
||||||
"outputId": "4d89e777-f413-493b-d15e-eac4f5e2abc4"
|
"outputId": "62d019ab-921d-4c1c-f6dd-2e7c354bb453"
|
||||||
},
|
},
|
||||||
"execution_count": 7,
|
"execution_count": 6,
|
||||||
"outputs": [
|
"outputs": [
|
||||||
{
|
{
|
||||||
"output_type": "stream",
|
"output_type": "stream",
|
||||||
@ -310,9 +310,9 @@
|
|||||||
"base_uri": "https://localhost:8080/"
|
"base_uri": "https://localhost:8080/"
|
||||||
},
|
},
|
||||||
"id": "LwZAAuqxX7yY",
|
"id": "LwZAAuqxX7yY",
|
||||||
"outputId": "42437bdf-d619-4384-fba7-7948f26b272a"
|
"outputId": "5a4091f0-7301-4ad4-e6da-5e16fdcaf67a"
|
||||||
},
|
},
|
||||||
"execution_count": 8,
|
"execution_count": 7,
|
||||||
"outputs": [
|
"outputs": [
|
||||||
{
|
{
|
||||||
"output_type": "stream",
|
"output_type": "stream",
|
||||||
@ -337,7 +337,7 @@
|
|||||||
"Get:3 http://archive.ubuntu.com/ubuntu bionic/universe amd64 espeak-data amd64 1.48.04+dfsg-5 [934 kB]\n",
|
"Get:3 http://archive.ubuntu.com/ubuntu bionic/universe amd64 espeak-data amd64 1.48.04+dfsg-5 [934 kB]\n",
|
||||||
"Get:4 http://archive.ubuntu.com/ubuntu bionic/universe amd64 libespeak1 amd64 1.48.04+dfsg-5 [145 kB]\n",
|
"Get:4 http://archive.ubuntu.com/ubuntu bionic/universe amd64 libespeak1 amd64 1.48.04+dfsg-5 [145 kB]\n",
|
||||||
"Get:5 http://archive.ubuntu.com/ubuntu bionic/universe amd64 espeak amd64 1.48.04+dfsg-5 [61.6 kB]\n",
|
"Get:5 http://archive.ubuntu.com/ubuntu bionic/universe amd64 espeak amd64 1.48.04+dfsg-5 [61.6 kB]\n",
|
||||||
"Fetched 1,219 kB in 1s (2,360 kB/s)\n",
|
"Fetched 1,219 kB in 2s (696 kB/s)\n",
|
||||||
"Selecting previously unselected package libportaudio2:amd64.\n",
|
"Selecting previously unselected package libportaudio2:amd64.\n",
|
||||||
"(Reading database ... 155569 files and directories currently installed.)\n",
|
"(Reading database ... 155569 files and directories currently installed.)\n",
|
||||||
"Preparing to unpack .../libportaudio2_19.6.0-1_amd64.deb ...\n",
|
"Preparing to unpack .../libportaudio2_19.6.0-1_amd64.deb ...\n",
|
||||||
@ -362,91 +362,62 @@
|
|||||||
"Processing triggers for man-db (2.8.3-2ubuntu0.1) ...\n",
|
"Processing triggers for man-db (2.8.3-2ubuntu0.1) ...\n",
|
||||||
"Processing triggers for libc-bin (2.27-3ubuntu1.5) ...\n",
|
"Processing triggers for libc-bin (2.27-3ubuntu1.5) ...\n",
|
||||||
"Looking in indexes: https://pypi.org/simple, https://us-python.pkg.dev/colab-wheels/public/simple/\n",
|
"Looking in indexes: https://pypi.org/simple, https://us-python.pkg.dev/colab-wheels/public/simple/\n",
|
||||||
"Requirement already satisfied: flask in /usr/local/lib/python3.7/dist-packages (1.1.4)\n",
|
|
||||||
"Requirement already satisfied: Jinja2<3.0,>=2.10.1 in /usr/local/lib/python3.7/dist-packages (from flask) (2.11.3)\n",
|
|
||||||
"Requirement already satisfied: click<8.0,>=5.1 in /usr/local/lib/python3.7/dist-packages (from flask) (7.1.2)\n",
|
|
||||||
"Requirement already satisfied: Werkzeug<2.0,>=0.15 in /usr/local/lib/python3.7/dist-packages (from flask) (1.0.1)\n",
|
|
||||||
"Requirement already satisfied: itsdangerous<2.0,>=0.24 in /usr/local/lib/python3.7/dist-packages (from flask) (1.1.0)\n",
|
|
||||||
"Requirement already satisfied: MarkupSafe>=0.23 in /usr/local/lib/python3.7/dist-packages (from Jinja2<3.0,>=2.10.1->flask) (2.0.1)\n",
|
|
||||||
"Looking in indexes: https://pypi.org/simple, https://us-python.pkg.dev/colab-wheels/public/simple/\n",
|
|
||||||
"Collecting python-socketio\n",
|
|
||||||
" Downloading python_socketio-5.7.1-py3-none-any.whl (56 kB)\n",
|
|
||||||
"\u001b[K |████████████████████████████████| 56 kB 2.7 MB/s \n",
|
|
||||||
"\u001b[?25hCollecting bidict>=0.21.0\n",
|
|
||||||
" Downloading bidict-0.22.0-py3-none-any.whl (36 kB)\n",
|
|
||||||
"Collecting python-engineio>=4.3.0\n",
|
|
||||||
" Downloading python_engineio-4.3.4-py3-none-any.whl (52 kB)\n",
|
|
||||||
"\u001b[K |████████████████████████████████| 52 kB 1.8 MB/s \n",
|
|
||||||
"\u001b[?25hInstalling collected packages: python-engineio, bidict, python-socketio\n",
|
|
||||||
"Successfully installed bidict-0.22.0 python-engineio-4.3.4 python-socketio-5.7.1\n",
|
|
||||||
"Looking in indexes: https://pypi.org/simple, https://us-python.pkg.dev/colab-wheels/public/simple/\n",
|
|
||||||
"Collecting eventlet\n",
|
|
||||||
" Downloading eventlet-0.33.1-py2.py3-none-any.whl (226 kB)\n",
|
|
||||||
"\u001b[K |████████████████████████████████| 226 kB 4.7 MB/s \n",
|
|
||||||
"\u001b[?25hRequirement already satisfied: greenlet>=0.3 in /usr/local/lib/python3.7/dist-packages (from eventlet) (1.1.3)\n",
|
|
||||||
"Requirement already satisfied: six>=1.10.0 in /usr/local/lib/python3.7/dist-packages (from eventlet) (1.15.0)\n",
|
|
||||||
"Collecting dnspython>=1.15.0\n",
|
|
||||||
" Downloading dnspython-2.2.1-py3-none-any.whl (269 kB)\n",
|
|
||||||
"\u001b[K |████████████████████████████████| 269 kB 61.5 MB/s \n",
|
|
||||||
"\u001b[?25hInstalling collected packages: dnspython, eventlet\n",
|
|
||||||
"Successfully installed dnspython-2.2.1 eventlet-0.33.1\n",
|
|
||||||
"Looking in indexes: https://pypi.org/simple, https://us-python.pkg.dev/colab-wheels/public/simple/\n",
|
|
||||||
"Collecting unidecode\n",
|
"Collecting unidecode\n",
|
||||||
" Downloading Unidecode-1.3.4-py3-none-any.whl (235 kB)\n",
|
" Downloading Unidecode-1.3.4-py3-none-any.whl (235 kB)\n",
|
||||||
"\u001b[K |████████████████████████████████| 235 kB 4.9 MB/s \n",
|
"\u001b[K |████████████████████████████████| 235 kB 29.4 MB/s \n",
|
||||||
"\u001b[?25hInstalling collected packages: unidecode\n",
|
"\u001b[?25hInstalling collected packages: unidecode\n",
|
||||||
"Successfully installed unidecode-1.3.4\n",
|
"Successfully installed unidecode-1.3.4\n",
|
||||||
"Looking in indexes: https://pypi.org/simple, https://us-python.pkg.dev/colab-wheels/public/simple/\n",
|
"Looking in indexes: https://pypi.org/simple, https://us-python.pkg.dev/colab-wheels/public/simple/\n",
|
||||||
"Collecting phonemizer\n",
|
"Collecting phonemizer\n",
|
||||||
" Downloading phonemizer-3.2.1-py3-none-any.whl (90 kB)\n",
|
" Downloading phonemizer-3.2.1-py3-none-any.whl (90 kB)\n",
|
||||||
"\u001b[K |████████████████████████████████| 90 kB 4.0 MB/s \n",
|
"\u001b[K |████████████████████████████████| 90 kB 8.6 MB/s \n",
|
||||||
"\u001b[?25hRequirement already satisfied: joblib in /usr/local/lib/python3.7/dist-packages (from phonemizer) (1.1.0)\n",
|
"\u001b[?25hRequirement already satisfied: typing-extensions in /usr/local/lib/python3.7/dist-packages (from phonemizer) (4.1.1)\n",
|
||||||
"Collecting dlinfo\n",
|
"Requirement already satisfied: attrs>=18.1 in /usr/local/lib/python3.7/dist-packages (from phonemizer) (22.1.0)\n",
|
||||||
" Downloading dlinfo-1.2.1-py3-none-any.whl (3.6 kB)\n",
|
|
||||||
"Collecting segments\n",
|
"Collecting segments\n",
|
||||||
" Downloading segments-2.2.1-py2.py3-none-any.whl (15 kB)\n",
|
" Downloading segments-2.2.1-py2.py3-none-any.whl (15 kB)\n",
|
||||||
"Requirement already satisfied: attrs>=18.1 in /usr/local/lib/python3.7/dist-packages (from phonemizer) (22.1.0)\n",
|
"Requirement already satisfied: joblib in /usr/local/lib/python3.7/dist-packages (from phonemizer) (1.1.0)\n",
|
||||||
"Requirement already satisfied: typing-extensions in /usr/local/lib/python3.7/dist-packages (from phonemizer) (4.1.1)\n",
|
"Collecting dlinfo\n",
|
||||||
|
" Downloading dlinfo-1.2.1-py3-none-any.whl (3.6 kB)\n",
|
||||||
"Collecting clldutils>=1.7.3\n",
|
"Collecting clldutils>=1.7.3\n",
|
||||||
" Downloading clldutils-3.12.0-py2.py3-none-any.whl (197 kB)\n",
|
" Downloading clldutils-3.12.0-py2.py3-none-any.whl (197 kB)\n",
|
||||||
"\u001b[K |████████████████████████████████| 197 kB 29.6 MB/s \n",
|
"\u001b[K |████████████████████████████████| 197 kB 64.1 MB/s \n",
|
||||||
"\u001b[?25hRequirement already satisfied: regex in /usr/local/lib/python3.7/dist-packages (from segments->phonemizer) (2022.6.2)\n",
|
"\u001b[?25hRequirement already satisfied: regex in /usr/local/lib/python3.7/dist-packages (from segments->phonemizer) (2022.6.2)\n",
|
||||||
"Collecting csvw>=1.5.6\n",
|
"Collecting csvw>=1.5.6\n",
|
||||||
" Downloading csvw-3.1.1-py2.py3-none-any.whl (56 kB)\n",
|
" Downloading csvw-3.1.1-py2.py3-none-any.whl (56 kB)\n",
|
||||||
"\u001b[K |████████████████████████████████| 56 kB 5.3 MB/s \n",
|
"\u001b[K |████████████████████████████████| 56 kB 4.7 MB/s \n",
|
||||||
"\u001b[?25hRequirement already satisfied: tabulate>=0.7.7 in /usr/local/lib/python3.7/dist-packages (from clldutils>=1.7.3->segments->phonemizer) (0.8.10)\n",
|
"\u001b[?25hRequirement already satisfied: tabulate>=0.7.7 in /usr/local/lib/python3.7/dist-packages (from clldutils>=1.7.3->segments->phonemizer) (0.8.10)\n",
|
||||||
"Requirement already satisfied: python-dateutil in /usr/local/lib/python3.7/dist-packages (from clldutils>=1.7.3->segments->phonemizer) (2.8.2)\n",
|
"Requirement already satisfied: python-dateutil in /usr/local/lib/python3.7/dist-packages (from clldutils>=1.7.3->segments->phonemizer) (2.8.2)\n",
|
||||||
"Collecting colorlog\n",
|
"Collecting colorlog\n",
|
||||||
" Downloading colorlog-6.7.0-py2.py3-none-any.whl (11 kB)\n",
|
" Downloading colorlog-6.7.0-py2.py3-none-any.whl (11 kB)\n",
|
||||||
"Collecting isodate\n",
|
|
||||||
" Downloading isodate-0.6.1-py2.py3-none-any.whl (41 kB)\n",
|
|
||||||
"\u001b[K |████████████████████████████████| 41 kB 641 kB/s \n",
|
|
||||||
"\u001b[?25hRequirement already satisfied: uritemplate>=3.0.0 in /usr/local/lib/python3.7/dist-packages (from csvw>=1.5.6->segments->phonemizer) (3.0.1)\n",
|
|
||||||
"Requirement already satisfied: babel in /usr/local/lib/python3.7/dist-packages (from csvw>=1.5.6->segments->phonemizer) (2.10.3)\n",
|
|
||||||
"Collecting colorama\n",
|
"Collecting colorama\n",
|
||||||
" Downloading colorama-0.4.5-py2.py3-none-any.whl (16 kB)\n",
|
" Downloading colorama-0.4.5-py2.py3-none-any.whl (16 kB)\n",
|
||||||
|
"Collecting rdflib\n",
|
||||||
|
" Downloading rdflib-6.2.0-py3-none-any.whl (500 kB)\n",
|
||||||
|
"\u001b[K |████████████████████████████████| 500 kB 62.0 MB/s \n",
|
||||||
|
"\u001b[?25hRequirement already satisfied: babel in /usr/local/lib/python3.7/dist-packages (from csvw>=1.5.6->segments->phonemizer) (2.10.3)\n",
|
||||||
|
"Requirement already satisfied: uritemplate>=3.0.0 in /usr/local/lib/python3.7/dist-packages (from csvw>=1.5.6->segments->phonemizer) (3.0.1)\n",
|
||||||
"Collecting language-tags\n",
|
"Collecting language-tags\n",
|
||||||
" Downloading language_tags-1.1.0-py2.py3-none-any.whl (210 kB)\n",
|
" Downloading language_tags-1.1.0-py2.py3-none-any.whl (210 kB)\n",
|
||||||
"\u001b[K |████████████████████████████████| 210 kB 57.8 MB/s \n",
|
"\u001b[K |████████████████████████████████| 210 kB 71.3 MB/s \n",
|
||||||
|
"\u001b[?25hCollecting isodate\n",
|
||||||
|
" Downloading isodate-0.6.1-py2.py3-none-any.whl (41 kB)\n",
|
||||||
|
"\u001b[K |████████████████████████████████| 41 kB 682 kB/s \n",
|
||||||
"\u001b[?25hRequirement already satisfied: requests in /usr/local/lib/python3.7/dist-packages (from csvw>=1.5.6->segments->phonemizer) (2.23.0)\n",
|
"\u001b[?25hRequirement already satisfied: requests in /usr/local/lib/python3.7/dist-packages (from csvw>=1.5.6->segments->phonemizer) (2.23.0)\n",
|
||||||
"Collecting rfc3986<2\n",
|
"Collecting rfc3986<2\n",
|
||||||
" Downloading rfc3986-1.5.0-py2.py3-none-any.whl (31 kB)\n",
|
" Downloading rfc3986-1.5.0-py2.py3-none-any.whl (31 kB)\n",
|
||||||
"Collecting rdflib\n",
|
"Requirement already satisfied: jsonschema in /usr/local/lib/python3.7/dist-packages (from csvw>=1.5.6->segments->phonemizer) (4.3.3)\n",
|
||||||
" Downloading rdflib-6.2.0-py3-none-any.whl (500 kB)\n",
|
|
||||||
"\u001b[K |████████████████████████████████| 500 kB 48.6 MB/s \n",
|
|
||||||
"\u001b[?25hRequirement already satisfied: jsonschema in /usr/local/lib/python3.7/dist-packages (from csvw>=1.5.6->segments->phonemizer) (4.3.3)\n",
|
|
||||||
"Requirement already satisfied: pytz>=2015.7 in /usr/local/lib/python3.7/dist-packages (from babel->csvw>=1.5.6->segments->phonemizer) (2022.2.1)\n",
|
"Requirement already satisfied: pytz>=2015.7 in /usr/local/lib/python3.7/dist-packages (from babel->csvw>=1.5.6->segments->phonemizer) (2022.2.1)\n",
|
||||||
"Requirement already satisfied: six in /usr/local/lib/python3.7/dist-packages (from isodate->csvw>=1.5.6->segments->phonemizer) (1.15.0)\n",
|
"Requirement already satisfied: six in /usr/local/lib/python3.7/dist-packages (from isodate->csvw>=1.5.6->segments->phonemizer) (1.15.0)\n",
|
||||||
"Requirement already satisfied: importlib-resources>=1.4.0 in /usr/local/lib/python3.7/dist-packages (from jsonschema->csvw>=1.5.6->segments->phonemizer) (5.9.0)\n",
|
|
||||||
"Requirement already satisfied: importlib-metadata in /usr/local/lib/python3.7/dist-packages (from jsonschema->csvw>=1.5.6->segments->phonemizer) (4.12.0)\n",
|
|
||||||
"Requirement already satisfied: pyrsistent!=0.17.0,!=0.17.1,!=0.17.2,>=0.14.0 in /usr/local/lib/python3.7/dist-packages (from jsonschema->csvw>=1.5.6->segments->phonemizer) (0.18.1)\n",
|
"Requirement already satisfied: pyrsistent!=0.17.0,!=0.17.1,!=0.17.2,>=0.14.0 in /usr/local/lib/python3.7/dist-packages (from jsonschema->csvw>=1.5.6->segments->phonemizer) (0.18.1)\n",
|
||||||
|
"Requirement already satisfied: importlib-metadata in /usr/local/lib/python3.7/dist-packages (from jsonschema->csvw>=1.5.6->segments->phonemizer) (4.12.0)\n",
|
||||||
|
"Requirement already satisfied: importlib-resources>=1.4.0 in /usr/local/lib/python3.7/dist-packages (from jsonschema->csvw>=1.5.6->segments->phonemizer) (5.9.0)\n",
|
||||||
"Requirement already satisfied: zipp>=3.1.0 in /usr/local/lib/python3.7/dist-packages (from importlib-resources>=1.4.0->jsonschema->csvw>=1.5.6->segments->phonemizer) (3.8.1)\n",
|
"Requirement already satisfied: zipp>=3.1.0 in /usr/local/lib/python3.7/dist-packages (from importlib-resources>=1.4.0->jsonschema->csvw>=1.5.6->segments->phonemizer) (3.8.1)\n",
|
||||||
"Requirement already satisfied: setuptools in /usr/local/lib/python3.7/dist-packages (from rdflib->csvw>=1.5.6->segments->phonemizer) (57.4.0)\n",
|
"Requirement already satisfied: setuptools in /usr/local/lib/python3.7/dist-packages (from rdflib->csvw>=1.5.6->segments->phonemizer) (57.4.0)\n",
|
||||||
"Requirement already satisfied: pyparsing in /usr/local/lib/python3.7/dist-packages (from rdflib->csvw>=1.5.6->segments->phonemizer) (3.0.9)\n",
|
"Requirement already satisfied: pyparsing in /usr/local/lib/python3.7/dist-packages (from rdflib->csvw>=1.5.6->segments->phonemizer) (3.0.9)\n",
|
||||||
"Requirement already satisfied: idna<3,>=2.5 in /usr/local/lib/python3.7/dist-packages (from requests->csvw>=1.5.6->segments->phonemizer) (2.10)\n",
|
"Requirement already satisfied: idna<3,>=2.5 in /usr/local/lib/python3.7/dist-packages (from requests->csvw>=1.5.6->segments->phonemizer) (2.10)\n",
|
||||||
"Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.7/dist-packages (from requests->csvw>=1.5.6->segments->phonemizer) (2022.6.15)\n",
|
"Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.7/dist-packages (from requests->csvw>=1.5.6->segments->phonemizer) (2022.6.15)\n",
|
||||||
"Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in /usr/local/lib/python3.7/dist-packages (from requests->csvw>=1.5.6->segments->phonemizer) (1.24.3)\n",
|
|
||||||
"Requirement already satisfied: chardet<4,>=3.0.2 in /usr/local/lib/python3.7/dist-packages (from requests->csvw>=1.5.6->segments->phonemizer) (3.0.4)\n",
|
"Requirement already satisfied: chardet<4,>=3.0.2 in /usr/local/lib/python3.7/dist-packages (from requests->csvw>=1.5.6->segments->phonemizer) (3.0.4)\n",
|
||||||
|
"Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in /usr/local/lib/python3.7/dist-packages (from requests->csvw>=1.5.6->segments->phonemizer) (1.24.3)\n",
|
||||||
"Installing collected packages: isodate, rfc3986, rdflib, language-tags, colorama, csvw, colorlog, clldutils, segments, dlinfo, phonemizer\n",
|
"Installing collected packages: isodate, rfc3986, rdflib, language-tags, colorama, csvw, colorlog, clldutils, segments, dlinfo, phonemizer\n",
|
||||||
"Successfully installed clldutils-3.12.0 colorama-0.4.5 colorlog-6.7.0 csvw-3.1.1 dlinfo-1.2.1 isodate-0.6.1 language-tags-1.1.0 phonemizer-3.2.1 rdflib-6.2.0 rfc3986-1.5.0 segments-2.2.1\n",
|
"Successfully installed clldutils-3.12.0 colorama-0.4.5 colorlog-6.7.0 csvw-3.1.1 dlinfo-1.2.1 isodate-0.6.1 language-tags-1.1.0 phonemizer-3.2.1 rdflib-6.2.0 rfc3986-1.5.0 segments-2.2.1\n",
|
||||||
"Looking in indexes: https://pypi.org/simple, https://us-python.pkg.dev/colab-wheels/public/simple/\n",
|
"Looking in indexes: https://pypi.org/simple, https://us-python.pkg.dev/colab-wheels/public/simple/\n",
|
||||||
@ -457,24 +428,33 @@
|
|||||||
"Installing collected packages: retry\n",
|
"Installing collected packages: retry\n",
|
||||||
"Successfully installed retry-0.9.2\n",
|
"Successfully installed retry-0.9.2\n",
|
||||||
"Looking in indexes: https://pypi.org/simple, https://us-python.pkg.dev/colab-wheels/public/simple/\n",
|
"Looking in indexes: https://pypi.org/simple, https://us-python.pkg.dev/colab-wheels/public/simple/\n",
|
||||||
"Requirement already satisfied: flask in /usr/local/lib/python3.7/dist-packages (1.1.4)\n",
|
"Collecting fastapi\n",
|
||||||
"Requirement already satisfied: click<8.0,>=5.1 in /usr/local/lib/python3.7/dist-packages (from flask) (7.1.2)\n",
|
" Downloading fastapi-0.85.0-py3-none-any.whl (55 kB)\n",
|
||||||
"Requirement already satisfied: Jinja2<3.0,>=2.10.1 in /usr/local/lib/python3.7/dist-packages (from flask) (2.11.3)\n",
|
"\u001b[K |████████████████████████████████| 55 kB 3.8 MB/s \n",
|
||||||
"Requirement already satisfied: itsdangerous<2.0,>=0.24 in /usr/local/lib/python3.7/dist-packages (from flask) (1.1.0)\n",
|
"\u001b[?25hCollecting starlette==0.20.4\n",
|
||||||
"Requirement already satisfied: Werkzeug<2.0,>=0.15 in /usr/local/lib/python3.7/dist-packages (from flask) (1.0.1)\n",
|
" Downloading starlette-0.20.4-py3-none-any.whl (63 kB)\n",
|
||||||
"Requirement already satisfied: MarkupSafe>=0.23 in /usr/local/lib/python3.7/dist-packages (from Jinja2<3.0,>=2.10.1->flask) (2.0.1)\n",
|
"\u001b[K |████████████████████████████████| 63 kB 2.5 MB/s \n",
|
||||||
|
"\u001b[?25hRequirement already satisfied: pydantic!=1.7,!=1.7.1,!=1.7.2,!=1.7.3,!=1.8,!=1.8.1,<2.0.0,>=1.6.2 in /usr/local/lib/python3.7/dist-packages (from fastapi) (1.9.2)\n",
|
||||||
|
"Requirement already satisfied: typing-extensions>=3.10.0 in /usr/local/lib/python3.7/dist-packages (from starlette==0.20.4->fastapi) (4.1.1)\n",
|
||||||
|
"Collecting anyio<5,>=3.4.0\n",
|
||||||
|
" Downloading anyio-3.6.1-py3-none-any.whl (80 kB)\n",
|
||||||
|
"\u001b[K |████████████████████████████████| 80 kB 11.3 MB/s \n",
|
||||||
|
"\u001b[?25hRequirement already satisfied: idna>=2.8 in /usr/local/lib/python3.7/dist-packages (from anyio<5,>=3.4.0->starlette==0.20.4->fastapi) (2.10)\n",
|
||||||
|
"Collecting sniffio>=1.1\n",
|
||||||
|
" Downloading sniffio-1.3.0-py3-none-any.whl (10 kB)\n",
|
||||||
|
"Installing collected packages: sniffio, anyio, starlette, fastapi\n",
|
||||||
|
"Successfully installed anyio-3.6.1 fastapi-0.85.0 sniffio-1.3.0 starlette-0.20.4\n",
|
||||||
"Looking in indexes: https://pypi.org/simple, https://us-python.pkg.dev/colab-wheels/public/simple/\n",
|
"Looking in indexes: https://pypi.org/simple, https://us-python.pkg.dev/colab-wheels/public/simple/\n",
|
||||||
"Collecting flask_cors\n",
|
"Collecting uvicorn\n",
|
||||||
" Downloading Flask_Cors-3.0.10-py2.py3-none-any.whl (14 kB)\n",
|
" Downloading uvicorn-0.18.3-py3-none-any.whl (57 kB)\n",
|
||||||
"Requirement already satisfied: Six in /usr/local/lib/python3.7/dist-packages (from flask_cors) (1.15.0)\n",
|
"\u001b[K |████████████████████████████████| 57 kB 5.4 MB/s \n",
|
||||||
"Requirement already satisfied: Flask>=0.9 in /usr/local/lib/python3.7/dist-packages (from flask_cors) (1.1.4)\n",
|
"\u001b[?25hCollecting h11>=0.8\n",
|
||||||
"Requirement already satisfied: click<8.0,>=5.1 in /usr/local/lib/python3.7/dist-packages (from Flask>=0.9->flask_cors) (7.1.2)\n",
|
" Downloading h11-0.13.0-py3-none-any.whl (58 kB)\n",
|
||||||
"Requirement already satisfied: Werkzeug<2.0,>=0.15 in /usr/local/lib/python3.7/dist-packages (from Flask>=0.9->flask_cors) (1.0.1)\n",
|
"\u001b[K |████████████████████████████████| 58 kB 6.6 MB/s \n",
|
||||||
"Requirement already satisfied: itsdangerous<2.0,>=0.24 in /usr/local/lib/python3.7/dist-packages (from Flask>=0.9->flask_cors) (1.1.0)\n",
|
"\u001b[?25hRequirement already satisfied: typing-extensions in /usr/local/lib/python3.7/dist-packages (from uvicorn) (4.1.1)\n",
|
||||||
"Requirement already satisfied: Jinja2<3.0,>=2.10.1 in /usr/local/lib/python3.7/dist-packages (from Flask>=0.9->flask_cors) (2.11.3)\n",
|
"Requirement already satisfied: click>=7.0 in /usr/local/lib/python3.7/dist-packages (from uvicorn) (7.1.2)\n",
|
||||||
"Requirement already satisfied: MarkupSafe>=0.23 in /usr/local/lib/python3.7/dist-packages (from Jinja2<3.0,>=2.10.1->Flask>=0.9->flask_cors) (2.0.1)\n",
|
"Installing collected packages: h11, uvicorn\n",
|
||||||
"Installing collected packages: flask-cors\n",
|
"Successfully installed h11-0.13.0 uvicorn-0.18.3\n"
|
||||||
"Successfully installed flask-cors-3.0.10\n"
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@ -523,12 +503,12 @@
|
|||||||
"source": [
|
"source": [
|
||||||
"# (6-1) サーバの起動\n",
|
"# (6-1) サーバの起動\n",
|
||||||
"PORT=8088\n",
|
"PORT=8088\n",
|
||||||
"get_ipython().system_raw(f'python3 serverFlask.py {PORT} {CONFIG} {MODEL} >foo 2>&1 &')"
|
"get_ipython().system_raw(f'python3 serverFastAPI.py {PORT} {CONFIG} {MODEL} >foo 2>&1 &')"
|
||||||
],
|
],
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"id": "iNOAB7zISI6J"
|
"id": "iNOAB7zISI6J"
|
||||||
},
|
},
|
||||||
"execution_count": null,
|
"execution_count": 10,
|
||||||
"outputs": []
|
"outputs": []
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -542,30 +522,38 @@
|
|||||||
"base_uri": "https://localhost:8080/"
|
"base_uri": "https://localhost:8080/"
|
||||||
},
|
},
|
||||||
"id": "chu06KpAjEK6",
|
"id": "chu06KpAjEK6",
|
||||||
"outputId": "58a7c911-9fff-489e-c5a7-221b89d4039a"
|
"outputId": "ed8791b6-d2fa-42c5-bb3b-177973b8b835"
|
||||||
},
|
},
|
||||||
"execution_count": null,
|
"execution_count": 19,
|
||||||
"outputs": [
|
"outputs": [
|
||||||
{
|
{
|
||||||
"output_type": "stream",
|
"output_type": "stream",
|
||||||
"name": "stdout",
|
"name": "stdout",
|
||||||
"text": [
|
"text": [
|
||||||
"[2022-09-05 18:21:16,341] INFO in serverFlask: INITIALIZE MODEL\n",
|
"INFO:uvicorn:INITIALIZE MODEL\n",
|
||||||
"[2022-09-05 18:21:24,466] INFO in utils: Loaded checkpoint '/content/drive/MyDrive/VoiceChanger/G_326000.pth' (iteration 1136)\n",
|
|
||||||
"[2022-09-05 18:21:34,857] INFO in serverFlask: START APP\n",
|
|
||||||
"GPU_NUM: 1\n",
|
"GPU_NUM: 1\n",
|
||||||
" * Serving Flask app \"serverFlask\" (lazy loading)\n",
|
"INFO:root:Loaded checkpoint '/content/drive/MyDrive/VoiceChanger/G_326000.pth' (iteration 1136)\n",
|
||||||
" * Environment: production\n",
|
"INFO:uvicorn:START APP\n",
|
||||||
" WARNING: This is a development server. Do not use it in a production deployment.\n",
|
"INFO: Will watch for changes in these directories: ['/content/voice-changer/demo']\n",
|
||||||
" Use a production WSGI server instead.\n",
|
"INFO:uvicorn.error:Will watch for changes in these directories: ['/content/voice-changer/demo']\n",
|
||||||
" * Debug mode: on\n",
|
"INFO: Uvicorn running on http://0.0.0.0:8088 (Press CTRL+C to quit)\n",
|
||||||
"[2022-09-05 18:21:34,866] INFO in _internal: * Running on http://0.0.0.0:8082/ (Press CTRL+C to quit)\n",
|
"INFO:uvicorn.error:Uvicorn running on http://0.0.0.0:8088 (Press CTRL+C to quit)\n",
|
||||||
"[2022-09-05 18:21:34,866] INFO in _internal: * Restarting with stat\n",
|
"INFO: Started reloader process [646] using StatReload\n",
|
||||||
"[2022-09-05 18:21:36,742] INFO in serverFlask: INITIALIZE MODEL\n",
|
"INFO:uvicorn.error:Started reloader process [646] using StatReload\n",
|
||||||
"[2022-09-05 18:21:38,455] INFO in utils: Loaded checkpoint '/content/drive/MyDrive/VoiceChanger/G_326000.pth' (iteration 1136)\n",
|
"INFO:uvicorn:INITIALIZE MODEL\n",
|
||||||
"[2022-09-05 18:21:42,302] INFO in serverFlask: START APP\n",
|
"GPU_NUM: 1\n",
|
||||||
"[2022-09-05 18:21:42,309] WARNING in _internal: * Debugger is active!\n",
|
"INFO:root:Loaded checkpoint '/content/drive/MyDrive/VoiceChanger/G_326000.pth' (iteration 1136)\n",
|
||||||
"[2022-09-05 18:21:42,380] INFO in _internal: * Debugger PIN: 334-166-753\n"
|
"DEBUG:asyncio:Using selector: EpollSelector\n",
|
||||||
|
"INFO: INITIALIZE MODEL\n",
|
||||||
|
"INFO:uvicorn:INITIALIZE MODEL\n",
|
||||||
|
"GPU_NUM: 1\n",
|
||||||
|
"INFO:root:Loaded checkpoint '/content/drive/MyDrive/VoiceChanger/G_326000.pth' (iteration 1136)\n",
|
||||||
|
"INFO: Started server process [666]\n",
|
||||||
|
"INFO:uvicorn.error:Started server process [666]\n",
|
||||||
|
"INFO: Waiting for application startup.\n",
|
||||||
|
"INFO:uvicorn.error:Waiting for application startup.\n",
|
||||||
|
"INFO: Application startup complete.\n",
|
||||||
|
"INFO:uvicorn.error:Application startup complete.\n"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@ -598,33 +586,16 @@
|
|||||||
"base_uri": "https://localhost:8080/",
|
"base_uri": "https://localhost:8080/",
|
||||||
"height": 34
|
"height": 34
|
||||||
},
|
},
|
||||||
"outputId": "3c8be286-c4e2-4556-a709-44d79a8e1ce8"
|
"outputId": "02961b25-a5fc-4e46-bca2-c834b4f00f59"
|
||||||
},
|
},
|
||||||
"execution_count": null,
|
"execution_count": 20,
|
||||||
"outputs": [
|
"outputs": [
|
||||||
{
|
{
|
||||||
"output_type": "display_data",
|
"output_type": "stream",
|
||||||
"data": {
|
"name": "stdout",
|
||||||
"text/plain": [
|
"text": [
|
||||||
"<IPython.core.display.Javascript object>"
|
"https://efftd8s2tmd-496ff2e9c6d22116-8088-colab.googleusercontent.com/front/\n"
|
||||||
],
|
]
|
||||||
"application/javascript": [
|
|
||||||
"(async (port, path, text, element) => {\n",
|
|
||||||
" if (!google.colab.kernel.accessAllowed) {\n",
|
|
||||||
" return;\n",
|
|
||||||
" }\n",
|
|
||||||
" element.appendChild(document.createTextNode(''));\n",
|
|
||||||
" const url = await google.colab.kernel.proxyPort(port);\n",
|
|
||||||
" const anchor = document.createElement('a');\n",
|
|
||||||
" anchor.href = new URL(path, url).toString();\n",
|
|
||||||
" anchor.target = '_blank';\n",
|
|
||||||
" anchor.setAttribute('data-href', url + path);\n",
|
|
||||||
" anchor.textContent = text;\n",
|
|
||||||
" element.appendChild(anchor);\n",
|
|
||||||
" })(8082, \"/\", \"https://localhost:8082/\", window.element)"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"metadata": {}
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user