mirror of
https://github.com/w-okada/voice-changer.git
synced 2025-01-23 13:35:12 +03:00
Colaboratory を使用して作成しました
This commit is contained in:
parent
b282f677a0
commit
a8830e2915
@ -5,7 +5,7 @@
|
||||
"colab": {
|
||||
"provenance": [],
|
||||
"collapsed_sections": [],
|
||||
"authorship_tag": "ABX9TyOTBoHTDSmok+/zQj3mbtV5",
|
||||
"authorship_tag": "ABX9TyPxl1WcxxuSmUBoG19oFBDK",
|
||||
"include_colab_link": true
|
||||
},
|
||||
"kernelspec": {
|
||||
@ -74,7 +74,7 @@
|
||||
"base_uri": "https://localhost:8080/"
|
||||
},
|
||||
"id": "vV1t7PBRm-o6",
|
||||
"outputId": "0047ac76-0bdb-49a4-e78a-29b50a781a1a"
|
||||
"outputId": "2ab5d79e-0fe1-4e48-9fb4-8a61399e0b60"
|
||||
},
|
||||
"execution_count": 1,
|
||||
"outputs": [
|
||||
@ -82,7 +82,7 @@
|
||||
"output_type": "stream",
|
||||
"name": "stdout",
|
||||
"text": [
|
||||
"Sat Oct 29 16:42:55 2022 \n",
|
||||
"Sun Oct 30 10:03:39 2022 \n",
|
||||
"+-----------------------------------------------------------------------------+\n",
|
||||
"| NVIDIA-SMI 460.32.03 Driver Version: 460.32.03 CUDA Version: 11.2 |\n",
|
||||
"|-------------------------------+----------------------+----------------------+\n",
|
||||
@ -91,7 +91,7 @@
|
||||
"| | | MIG M. |\n",
|
||||
"|===============================+======================+======================|\n",
|
||||
"| 0 Tesla T4 Off | 00000000:00:04.0 Off | 0 |\n",
|
||||
"| N/A 43C P8 10W / 70W | 0MiB / 15109MiB | 0% Default |\n",
|
||||
"| N/A 35C P8 9W / 70W | 0MiB / 15109MiB | 0% Default |\n",
|
||||
"| | | N/A |\n",
|
||||
"+-------------------------------+----------------------+----------------------+\n",
|
||||
" \n",
|
||||
@ -180,7 +180,7 @@
|
||||
"base_uri": "https://localhost:8080/"
|
||||
},
|
||||
"id": "86wTFmqsNMnD",
|
||||
"outputId": "05f14c33-b542-41f9-8c06-2a66fd1c150e"
|
||||
"outputId": "4c5b6fc7-d554-4ed8-daf7-4d3e45dfb456"
|
||||
},
|
||||
"execution_count": 2,
|
||||
"outputs": [
|
||||
@ -193,7 +193,7 @@
|
||||
"remote: Counting objects: 100% (917/917), done.\u001b[K\n",
|
||||
"remote: Compressing objects: 100% (828/828), done.\u001b[K\n",
|
||||
"remote: Total 917 (delta 3), reused 888 (delta 0), pack-reused 0\u001b[K\n",
|
||||
"Receiving objects: 100% (917/917), 53.02 MiB | 10.13 MiB/s, done.\n",
|
||||
"Receiving objects: 100% (917/917), 53.02 MiB | 23.35 MiB/s, done.\n",
|
||||
"Resolving deltas: 100% (3/3), done.\n",
|
||||
"Note: checking out '39723b3243e0265b8802e020e4d4d90a4b8b65ee'.\n",
|
||||
"\n",
|
||||
@ -207,11 +207,11 @@
|
||||
" git checkout -b <new-branch-name>\n",
|
||||
"\n",
|
||||
"Cloning into 'voice-changer'...\n",
|
||||
"remote: Enumerating objects: 87, done.\u001b[K\n",
|
||||
"remote: Counting objects: 100% (87/87), done.\u001b[K\n",
|
||||
"remote: Compressing objects: 100% (73/73), done.\u001b[K\n",
|
||||
"remote: Total 87 (delta 15), reused 57 (delta 6), pack-reused 0\u001b[K\n",
|
||||
"Unpacking objects: 100% (87/87), done.\n",
|
||||
"remote: Enumerating objects: 88, done.\u001b[K\n",
|
||||
"remote: Counting objects: 100% (88/88), done.\u001b[K\n",
|
||||
"remote: Compressing objects: 100% (74/74), done.\u001b[K\n",
|
||||
"remote: Total 88 (delta 14), reused 59 (delta 6), pack-reused 0\u001b[K\n",
|
||||
"Unpacking objects: 100% (88/88), done.\n",
|
||||
"/content/voice-changer/demo\n"
|
||||
]
|
||||
}
|
||||
@ -250,7 +250,7 @@
|
||||
"base_uri": "https://localhost:8080/"
|
||||
},
|
||||
"id": "pjxPsOOaXXTj",
|
||||
"outputId": "5d074f53-9855-4053-844d-c98d4403fc01"
|
||||
"outputId": "714c37a6-1031-4b7c-9793-168ccc273a89"
|
||||
},
|
||||
"execution_count": 4,
|
||||
"outputs": [
|
||||
@ -331,7 +331,7 @@
|
||||
"base_uri": "https://localhost:8080/"
|
||||
},
|
||||
"id": "LwZAAuqxX7yY",
|
||||
"outputId": "449f092f-8c30-4566-946e-7a678006f789"
|
||||
"outputId": "f19c7f17-0a38-407d-daf2-08b90e81dfbf"
|
||||
},
|
||||
"execution_count": 5,
|
||||
"outputs": [
|
||||
@ -358,7 +358,7 @@
|
||||
"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: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 0s (10.1 MB/s)\n",
|
||||
"Fetched 1,219 kB in 0s (4,142 kB/s)\n",
|
||||
"Selecting previously unselected package libportaudio2:amd64.\n",
|
||||
"(Reading database ... 123942 files and directories currently installed.)\n",
|
||||
"Preparing to unpack .../libportaudio2_19.6.0-1_amd64.deb ...\n",
|
||||
@ -385,76 +385,76 @@
|
||||
"Looking in indexes: https://pypi.org/simple, https://us-python.pkg.dev/colab-wheels/public/simple/\n",
|
||||
"Collecting unidecode\n",
|
||||
" Downloading Unidecode-1.3.6-py3-none-any.whl (235 kB)\n",
|
||||
"\u001b[K |████████████████████████████████| 235 kB 16.4 MB/s \n",
|
||||
"\u001b[K |████████████████████████████████| 235 kB 6.5 MB/s \n",
|
||||
"\u001b[?25hInstalling collected packages: unidecode\n",
|
||||
"Successfully installed unidecode-1.3.6\n",
|
||||
"Looking in indexes: https://pypi.org/simple, https://us-python.pkg.dev/colab-wheels/public/simple/\n",
|
||||
"Collecting phonemizer\n",
|
||||
" Downloading phonemizer-3.2.1-py3-none-any.whl (90 kB)\n",
|
||||
"\u001b[K |████████████████████████████████| 90 kB 6.2 MB/s \n",
|
||||
"\u001b[?25hRequirement already satisfied: joblib in /usr/local/lib/python3.7/dist-packages (from phonemizer) (1.2.0)\n",
|
||||
"Collecting segments\n",
|
||||
"\u001b[K |████████████████████████████████| 90 kB 4.3 MB/s \n",
|
||||
"\u001b[?25hCollecting segments\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.2.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",
|
||||
"Requirement already satisfied: typing-extensions in /usr/local/lib/python3.7/dist-packages (from phonemizer) (4.1.1)\n",
|
||||
"Collecting csvw>=1.5.6\n",
|
||||
" Downloading csvw-3.1.3-py2.py3-none-any.whl (56 kB)\n",
|
||||
"\u001b[K |████████████████████████████████| 56 kB 4.5 MB/s \n",
|
||||
"\u001b[?25hCollecting clldutils>=1.7.3\n",
|
||||
"Requirement already satisfied: attrs>=18.1 in /usr/local/lib/python3.7/dist-packages (from phonemizer) (22.1.0)\n",
|
||||
"Requirement already satisfied: regex in /usr/local/lib/python3.7/dist-packages (from segments->phonemizer) (2022.6.2)\n",
|
||||
"Collecting clldutils>=1.7.3\n",
|
||||
" Downloading clldutils-3.12.0-py2.py3-none-any.whl (197 kB)\n",
|
||||
"\u001b[K |████████████████████████████████| 197 kB 65.0 MB/s \n",
|
||||
"\u001b[?25hRequirement already satisfied: regex in /usr/local/lib/python3.7/dist-packages (from segments->phonemizer) (2022.6.2)\n",
|
||||
"Requirement 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",
|
||||
"Collecting colorlog\n",
|
||||
"\u001b[K |████████████████████████████████| 197 kB 28.9 MB/s \n",
|
||||
"\u001b[?25hCollecting csvw>=1.5.6\n",
|
||||
" Downloading csvw-3.1.3-py2.py3-none-any.whl (56 kB)\n",
|
||||
"\u001b[K |████████████████████████████████| 56 kB 5.1 MB/s \n",
|
||||
"\u001b[?25hCollecting colorlog\n",
|
||||
" Downloading colorlog-6.7.0-py2.py3-none-any.whl (11 kB)\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: 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: 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: requests in /usr/local/lib/python3.7/dist-packages (from csvw>=1.5.6->segments->phonemizer) (2.23.0)\n",
|
||||
"Collecting rdflib\n",
|
||||
" Downloading rdflib-6.2.0-py3-none-any.whl (500 kB)\n",
|
||||
"\u001b[K |████████████████████████████████| 500 kB 57.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",
|
||||
"Collecting language-tags\n",
|
||||
" Downloading language_tags-1.1.0-py2.py3-none-any.whl (210 kB)\n",
|
||||
"\u001b[K |████████████████████████████████| 210 kB 70.5 MB/s \n",
|
||||
"\u001b[?25hCollecting rfc3986<2\n",
|
||||
" Downloading rfc3986-1.5.0-py2.py3-none-any.whl (31 kB)\n",
|
||||
"Collecting isodate\n",
|
||||
" Downloading isodate-0.6.1-py2.py3-none-any.whl (41 kB)\n",
|
||||
"\u001b[K |████████████████████████████████| 41 kB 729 kB/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",
|
||||
"Collecting colorama\n",
|
||||
" Downloading colorama-0.4.6-py2.py3-none-any.whl (25 kB)\n",
|
||||
"Collecting rfc3986<2\n",
|
||||
" Downloading rfc3986-1.5.0-py2.py3-none-any.whl (31 kB)\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 isodate\n",
|
||||
" Downloading isodate-0.6.1-py2.py3-none-any.whl (41 kB)\n",
|
||||
"\u001b[K |████████████████████████████████| 41 kB 608 kB/s \n",
|
||||
"\u001b[?25hCollecting rdflib\n",
|
||||
" Downloading rdflib-6.2.0-py3-none-any.whl (500 kB)\n",
|
||||
"\u001b[K |████████████████████████████████| 500 kB 68.9 MB/s \n",
|
||||
"\u001b[?25hCollecting language-tags\n",
|
||||
" Downloading language_tags-1.1.0-py2.py3-none-any.whl (210 kB)\n",
|
||||
"\u001b[K |████████████████████████████████| 210 kB 71.7 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: 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: pytz>=2015.7 in /usr/local/lib/python3.7/dist-packages (from babel->csvw>=1.5.6->segments->phonemizer) (2022.5)\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: 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.13.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.10.0)\n",
|
||||
"Requirement already satisfied: importlib-metadata in /usr/local/lib/python3.7/dist-packages (from jsonschema->csvw>=1.5.6->segments->phonemizer) (4.13.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.9.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: 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: certifi>=2017.4.17 in /usr/local/lib/python3.7/dist-packages (from requests->csvw>=1.5.6->segments->phonemizer) (2022.9.24)\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: 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",
|
||||
"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.6 colorlog-6.7.0 csvw-3.1.3 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",
|
||||
"Collecting retry\n",
|
||||
" Downloading retry-0.9.2-py2.py3-none-any.whl (8.0 kB)\n",
|
||||
"Requirement already satisfied: py<2.0.0,>=1.4.26 in /usr/local/lib/python3.7/dist-packages (from retry) (1.11.0)\n",
|
||||
"Requirement already satisfied: decorator>=3.4.2 in /usr/local/lib/python3.7/dist-packages (from retry) (4.4.2)\n",
|
||||
"Requirement already satisfied: py<2.0.0,>=1.4.26 in /usr/local/lib/python3.7/dist-packages (from retry) (1.11.0)\n",
|
||||
"Installing collected packages: retry\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",
|
||||
"Collecting python-socketio\n",
|
||||
" Downloading python_socketio-5.7.2-py3-none-any.whl (56 kB)\n",
|
||||
"\u001b[K |████████████████████████████████| 56 kB 4.8 MB/s \n",
|
||||
"\u001b[K |████████████████████████████████| 56 kB 2.8 MB/s \n",
|
||||
"\u001b[?25hCollecting 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[K |████████████████████████████████| 52 kB 1.3 MB/s \n",
|
||||
"\u001b[?25hCollecting bidict>=0.21.0\n",
|
||||
" Downloading bidict-0.22.0-py3-none-any.whl (36 kB)\n",
|
||||
"Installing collected packages: python-engineio, bidict, python-socketio\n",
|
||||
@ -462,18 +462,18 @@
|
||||
"Looking in indexes: https://pypi.org/simple, https://us-python.pkg.dev/colab-wheels/public/simple/\n",
|
||||
"Collecting fastapi\n",
|
||||
" Downloading fastapi-0.85.1-py3-none-any.whl (55 kB)\n",
|
||||
"\u001b[K |████████████████████████████████| 55 kB 3.8 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.10.2)\n",
|
||||
"Collecting starlette==0.20.4\n",
|
||||
"\u001b[K |████████████████████████████████| 55 kB 2.3 MB/s \n",
|
||||
"\u001b[?25hCollecting starlette==0.20.4\n",
|
||||
" Downloading starlette-0.20.4-py3-none-any.whl (63 kB)\n",
|
||||
"\u001b[K |████████████████████████████████| 63 kB 2.8 MB/s \n",
|
||||
"\u001b[?25hCollecting anyio<5,>=3.4.0\n",
|
||||
"\u001b[K |████████████████████████████████| 63 kB 2.4 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.10.2)\n",
|
||||
"Collecting anyio<5,>=3.4.0\n",
|
||||
" Downloading anyio-3.6.2-py3-none-any.whl (80 kB)\n",
|
||||
"\u001b[K |████████████████████████████████| 80 kB 10.9 MB/s \n",
|
||||
"\u001b[K |████████████████████████████████| 80 kB 8.5 MB/s \n",
|
||||
"\u001b[?25hRequirement 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",
|
||||
"Requirement 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",
|
||||
"Requirement 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",
|
||||
"Installing collected packages: sniffio, anyio, starlette, fastapi\n",
|
||||
"Successfully installed anyio-3.6.2 fastapi-0.85.1 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",
|
||||
@ -482,7 +482,7 @@
|
||||
"Requirement already satisfied: six>=1.4.0 in /usr/local/lib/python3.7/dist-packages (from python-multipart) (1.15.0)\n",
|
||||
"Building wheels for collected packages: python-multipart\n",
|
||||
" Building wheel for python-multipart (setup.py) ... \u001b[?25l\u001b[?25hdone\n",
|
||||
" Created wheel for python-multipart: filename=python_multipart-0.0.5-py3-none-any.whl size=31678 sha256=e181372365fadc58f1e5deb2a4719757a8ebe96690cc2c62f1b738e57c118615\n",
|
||||
" Created wheel for python-multipart: filename=python_multipart-0.0.5-py3-none-any.whl size=31678 sha256=deecc15b54cd4ab9b8d5a7f651448ff37623cf48c728bf9ca2f0749c6087631f\n",
|
||||
" Stored in directory: /root/.cache/pip/wheels/2c/41/7c/bfd1c180534ffdcc0972f78c5758f89881602175d48a8bcd2c\n",
|
||||
"Successfully built python-multipart\n",
|
||||
"Installing collected packages: python-multipart\n",
|
||||
@ -490,27 +490,27 @@
|
||||
"Looking in indexes: https://pypi.org/simple, https://us-python.pkg.dev/colab-wheels/public/simple/\n",
|
||||
"Collecting uvicorn\n",
|
||||
" Downloading uvicorn-0.19.0-py3-none-any.whl (56 kB)\n",
|
||||
"\u001b[K |████████████████████████████████| 56 kB 1.8 MB/s \n",
|
||||
"\u001b[K |████████████████████████████████| 56 kB 2.9 MB/s \n",
|
||||
"\u001b[?25hCollecting h11>=0.8\n",
|
||||
" Downloading h11-0.14.0-py3-none-any.whl (58 kB)\n",
|
||||
"\u001b[K |████████████████████████████████| 58 kB 7.0 MB/s \n",
|
||||
"\u001b[?25hRequirement already satisfied: click>=7.0 in /usr/local/lib/python3.7/dist-packages (from uvicorn) (7.1.2)\n",
|
||||
"Requirement already satisfied: typing-extensions in /usr/local/lib/python3.7/dist-packages (from uvicorn) (4.1.1)\n",
|
||||
"\u001b[K |████████████████████████████████| 58 kB 5.8 MB/s \n",
|
||||
"\u001b[?25hRequirement already satisfied: typing-extensions in /usr/local/lib/python3.7/dist-packages (from uvicorn) (4.1.1)\n",
|
||||
"Requirement already satisfied: click>=7.0 in /usr/local/lib/python3.7/dist-packages (from uvicorn) (7.1.2)\n",
|
||||
"Installing collected packages: h11, uvicorn\n",
|
||||
"Successfully installed h11-0.14.0 uvicorn-0.19.0\n",
|
||||
"Looking in indexes: https://pypi.org/simple, https://us-python.pkg.dev/colab-wheels/public/simple/\n",
|
||||
"Collecting websockets\n",
|
||||
" Downloading websockets-10.4-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (106 kB)\n",
|
||||
"\u001b[K |████████████████████████████████| 106 kB 14.9 MB/s \n",
|
||||
"\u001b[K |████████████████████████████████| 106 kB 5.1 MB/s \n",
|
||||
"\u001b[?25hInstalling collected packages: websockets\n",
|
||||
"Successfully installed websockets-10.4\n",
|
||||
"Looking in indexes: https://pypi.org/simple, https://us-python.pkg.dev/colab-wheels/public/simple/\n",
|
||||
"Collecting pyOpenSSL\n",
|
||||
" Downloading pyOpenSSL-22.1.0-py3-none-any.whl (57 kB)\n",
|
||||
"\u001b[K |████████████████████████████████| 57 kB 4.6 MB/s \n",
|
||||
"\u001b[K |████████████████████████████████| 57 kB 2.9 MB/s \n",
|
||||
"\u001b[?25hCollecting cryptography<39,>=38.0.0\n",
|
||||
" Downloading cryptography-38.0.1-cp36-abi3-manylinux_2_24_x86_64.whl (4.0 MB)\n",
|
||||
"\u001b[K |████████████████████████████████| 4.0 MB 36.0 MB/s \n",
|
||||
"\u001b[K |████████████████████████████████| 4.0 MB 9.4 MB/s \n",
|
||||
"\u001b[?25hRequirement already satisfied: cffi>=1.12 in /usr/local/lib/python3.7/dist-packages (from cryptography<39,>=38.0.0->pyOpenSSL) (1.15.1)\n",
|
||||
"Requirement already satisfied: pycparser in /usr/local/lib/python3.7/dist-packages (from cffi>=1.12->cryptography<39,>=38.0.0->pyOpenSSL) (2.21)\n",
|
||||
"Installing collected packages: cryptography, pyOpenSSL\n",
|
||||
@ -571,43 +571,55 @@
|
||||
"cell_type": "code",
|
||||
"source": [
|
||||
"# (6-1) サーバの起動\n",
|
||||
"PORT=8090\n",
|
||||
"get_ipython().system_raw(f'python3 MMVCServerSIO.py -p {PORT} --colab True >foo 2>&1 &')"
|
||||
"import random\n",
|
||||
"PORT = 10000 + random.randint(1, 9999)\n",
|
||||
"LOG_FILE = f\"LOG_FILE_{PORT}\"\n",
|
||||
"\n",
|
||||
"get_ipython().system_raw(f'python3 MMVCServerSIO.py -p {PORT} --colab True >{LOG_FILE} 2>&1 &')\n",
|
||||
"print(f\"PORT:{PORT}, LOG_FILE:{LOG_FILE}\")"
|
||||
],
|
||||
"metadata": {
|
||||
"id": "iNOAB7zISI6J"
|
||||
"id": "G-nMdPxEW1rc",
|
||||
"outputId": "8ba8fee5-fac6-4687-d599-5da928ef4c71",
|
||||
"colab": {
|
||||
"base_uri": "https://localhost:8080/"
|
||||
}
|
||||
},
|
||||
"execution_count": 22,
|
||||
"outputs": []
|
||||
"execution_count": 34,
|
||||
"outputs": [
|
||||
{
|
||||
"output_type": "stream",
|
||||
"name": "stdout",
|
||||
"text": [
|
||||
"PORT:17552, LOG_FILE:LOG_FILE_17552\n"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"source": [
|
||||
"# (6-2) サーバの起動確認 (Ctrl+Retで実行)\n",
|
||||
"!tail -10 foo"
|
||||
"!tail -10 {LOG_FILE}"
|
||||
],
|
||||
"metadata": {
|
||||
"colab": {
|
||||
"base_uri": "https://localhost:8080/"
|
||||
},
|
||||
"id": "chu06KpAjEK6",
|
||||
"outputId": "46db5796-c1c0-4d26-84ed-942be4684f5f"
|
||||
"outputId": "f44f5ba1-38a0-4f82-fcc7-cd609988efc3"
|
||||
},
|
||||
"execution_count": 29,
|
||||
"execution_count": 44,
|
||||
"outputs": [
|
||||
{
|
||||
"output_type": "stream",
|
||||
"name": "stdout",
|
||||
"text": [
|
||||
"\u001b[32m Phase name:__mp_main__\u001b[0m\n",
|
||||
"\u001b[32m PHASE3:__mp_main__\u001b[0m\n",
|
||||
"\u001b[32m PHASE2:__mp_main__\u001b[0m\n",
|
||||
"DEBUG:asyncio:Using selector: EpollSelector\n",
|
||||
"\u001b[32m Phase name:MMVCServerSIO\u001b[0m\n",
|
||||
"\u001b[32m PHASE3:MMVCServerSIO\u001b[0m\n",
|
||||
"\u001b[32m Phase name:__mp_main__\u001b[0m\n",
|
||||
"\u001b[32m PHASE3:__mp_main__\u001b[0m\n",
|
||||
"\u001b[32m PHASE2:__mp_main__\u001b[0m\n",
|
||||
"\u001b[32m Phase name:__main__\u001b[0m\n",
|
||||
"\u001b[32m PHASE3:__main__\u001b[0m\n",
|
||||
"\u001b[32m PHASE1:__main__\u001b[0m\n",
|
||||
"\u001b[17mStart MMVC SocketIO Server\u001b[0m\n",
|
||||
"\u001b[34m CONFIG:None, MODEL:None\u001b[0m\n",
|
||||
"DEBUG:asyncio:Using selector: EpollSelector\n"
|
||||
]
|
||||
}
|
||||
@ -633,7 +645,7 @@
|
||||
"# (7) プロキシを起動\n",
|
||||
"from google.colab.output import eval_js\n",
|
||||
"proxy = eval_js( \"google.colab.kernel.proxyPort(\" + str(PORT) + \")\" )\n",
|
||||
"print(f\"{proxy}\")"
|
||||
"print(f\"{proxy}front/\")"
|
||||
],
|
||||
"metadata": {
|
||||
"id": "nkRjZm95l87C",
|
||||
@ -641,15 +653,15 @@
|
||||
"base_uri": "https://localhost:8080/",
|
||||
"height": 34
|
||||
},
|
||||
"outputId": "4c064e57-e2c4-4a0e-95a9-55fdacfdfa50"
|
||||
"outputId": "276d9fd9-7a89-4ed8-a406-8a5307e4d407"
|
||||
},
|
||||
"execution_count": 28,
|
||||
"execution_count": 42,
|
||||
"outputs": [
|
||||
{
|
||||
"output_type": "stream",
|
||||
"name": "stdout",
|
||||
"text": [
|
||||
"https://eza6f0bblcl-496ff2e9c6d22116-8090-colab.googleusercontent.com/\n"
|
||||
"https://0m68en94011q-496ff2e9c6d22116-17552-colab.googleusercontent.com/front/\n"
|
||||
]
|
||||
}
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user