Skip to content

Instantly share code, notes, and snippets.

@andreped
Last active September 10, 2023 20:16
Show Gist options
  • Save andreped/f83e53b120ddc2f6930f1dd66a16f248 to your computer and use it in GitHub Desktop.
Save andreped/f83e53b120ddc2f6930f1dd66a16f248 to your computer and use it in GitHub Desktop.
neukit-demo-example.ipynb
Display the source blob
Display the rendered blob
Raw
{
"nbformat": 4,
"nbformat_minor": 0,
"metadata": {
"colab": {
"provenance": [],
"authorship_tag": "ABX9TyPtBCPwRr46IKKbW1mJHhmU",
"include_colab_link": true
},
"kernelspec": {
"name": "python3",
"display_name": "Python 3"
},
"language_info": {
"name": "python"
}
},
"cells": [
{
"cell_type": "markdown",
"metadata": {
"id": "view-in-github",
"colab_type": "text"
},
"source": [
"<a href=\"https://colab.research.google.com/gist/andreped/f83e53b120ddc2f6930f1dd66a16f248/neukit-demo-example.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>"
]
},
{
"cell_type": "code",
"source": [
"# Setup Python 3.7\n",
"!sudo apt-get install python3.7\n",
"!sudo apt-get install python3.7-distutils\n",
"!sudo apt-get install python3-apt\n",
"!sudo apt-get install python3-pip\n",
"\n",
"!python3.7 -V\n",
"!python3.7 -m pip -V"
],
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "li1rmocnKcb9",
"outputId": "59d5c28a-082b-4b99-8488-a7d1e683cae1"
},
"execution_count": null,
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"text": [
"Reading package lists... Done\n",
"Building dependency tree \n",
"Reading state information... Done\n",
"The following additional packages will be installed:\n",
" libpython3.7-minimal libpython3.7-stdlib python3.7-minimal\n",
"Suggested packages:\n",
" python3.7-venv binfmt-support\n",
"The following NEW packages will be installed:\n",
" libpython3.7-minimal libpython3.7-stdlib python3.7 python3.7-minimal\n",
"0 upgraded, 4 newly installed, 0 to remove and 15 not upgraded.\n",
"Need to get 4,531 kB of archives.\n",
"After this operation, 23.3 MB of additional disk space will be used.\n",
"Get:1 http://ppa.launchpad.net/deadsnakes/ppa/ubuntu focal/main amd64 libpython3.7-minimal amd64 3.7.17-1+focal1 [589 kB]\n",
"Get:2 http://ppa.launchpad.net/deadsnakes/ppa/ubuntu focal/main amd64 python3.7-minimal amd64 3.7.17-1+focal1 [1,808 kB]\n",
"Get:3 http://ppa.launchpad.net/deadsnakes/ppa/ubuntu focal/main amd64 libpython3.7-stdlib amd64 3.7.17-1+focal1 [1,774 kB]\n",
"Get:4 http://ppa.launchpad.net/deadsnakes/ppa/ubuntu focal/main amd64 python3.7 amd64 3.7.17-1+focal1 [361 kB]\n",
"Fetched 4,531 kB in 3s (1,569 kB/s)\n",
"debconf: unable to initialize frontend: Dialog\n",
"debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 76, <> line 4.)\n",
"debconf: falling back to frontend: Readline\n",
"debconf: unable to initialize frontend: Readline\n",
"debconf: (This frontend requires a controlling tty.)\n",
"debconf: falling back to frontend: Teletype\n",
"dpkg-preconfigure: unable to re-open stdin: \n",
"Selecting previously unselected package libpython3.7-minimal:amd64.\n",
"(Reading database ... 123069 files and directories currently installed.)\n",
"Preparing to unpack .../libpython3.7-minimal_3.7.17-1+focal1_amd64.deb ...\n",
"Unpacking libpython3.7-minimal:amd64 (3.7.17-1+focal1) ...\n",
"Selecting previously unselected package python3.7-minimal.\n",
"Preparing to unpack .../python3.7-minimal_3.7.17-1+focal1_amd64.deb ...\n",
"Unpacking python3.7-minimal (3.7.17-1+focal1) ...\n",
"Selecting previously unselected package libpython3.7-stdlib:amd64.\n",
"Preparing to unpack .../libpython3.7-stdlib_3.7.17-1+focal1_amd64.deb ...\n",
"Unpacking libpython3.7-stdlib:amd64 (3.7.17-1+focal1) ...\n",
"Selecting previously unselected package python3.7.\n",
"Preparing to unpack .../python3.7_3.7.17-1+focal1_amd64.deb ...\n",
"Unpacking python3.7 (3.7.17-1+focal1) ...\n",
"Setting up libpython3.7-minimal:amd64 (3.7.17-1+focal1) ...\n",
"Setting up python3.7-minimal (3.7.17-1+focal1) ...\n",
"Setting up libpython3.7-stdlib:amd64 (3.7.17-1+focal1) ...\n",
"Setting up python3.7 (3.7.17-1+focal1) ...\n",
"Processing triggers for man-db (2.9.1-1) ...\n",
"Processing triggers for mime-support (3.64ubuntu1) ...\n",
"Reading package lists... Done\n",
"Building dependency tree \n",
"Reading state information... Done\n",
"The following additional packages will be installed:\n",
" python3.7-lib2to3\n",
"The following NEW packages will be installed:\n",
" python3.7-distutils python3.7-lib2to3\n",
"0 upgraded, 2 newly installed, 0 to remove and 15 not upgraded.\n",
"Need to get 309 kB of archives.\n",
"After this operation, 1,229 kB of additional disk space will be used.\n",
"Get:1 http://ppa.launchpad.net/deadsnakes/ppa/ubuntu focal/main amd64 python3.7-lib2to3 all 3.7.17-1+focal1 [122 kB]\n",
"Get:2 http://ppa.launchpad.net/deadsnakes/ppa/ubuntu focal/main amd64 python3.7-distutils all 3.7.17-1+focal1 [187 kB]\n",
"Fetched 309 kB in 1s (332 kB/s)\n",
"debconf: unable to initialize frontend: Dialog\n",
"debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 76, <> line 2.)\n",
"debconf: falling back to frontend: Readline\n",
"debconf: unable to initialize frontend: Readline\n",
"debconf: (This frontend requires a controlling tty.)\n",
"debconf: falling back to frontend: Teletype\n",
"dpkg-preconfigure: unable to re-open stdin: \n",
"Selecting previously unselected package python3.7-lib2to3.\n",
"(Reading database ... 123689 files and directories currently installed.)\n",
"Preparing to unpack .../python3.7-lib2to3_3.7.17-1+focal1_all.deb ...\n",
"Unpacking python3.7-lib2to3 (3.7.17-1+focal1) ...\n",
"Selecting previously unselected package python3.7-distutils.\n",
"Preparing to unpack .../python3.7-distutils_3.7.17-1+focal1_all.deb ...\n",
"Unpacking python3.7-distutils (3.7.17-1+focal1) ...\n",
"Setting up python3.7-lib2to3 (3.7.17-1+focal1) ...\n",
"Setting up python3.7-distutils (3.7.17-1+focal1) ...\n",
"Reading package lists... Done\n",
"Building dependency tree \n",
"Reading state information... Done\n",
"python3-apt is already the newest version (2.0.1ubuntu0.20.04.1).\n",
"python3-apt set to manually installed.\n",
"0 upgraded, 0 newly installed, 0 to remove and 15 not upgraded.\n",
"Reading package lists... Done\n",
"Building dependency tree \n",
"Reading state information... Done\n",
"The following additional packages will be installed:\n",
" python-pip-whl python3-setuptools python3-wheel\n",
"Suggested packages:\n",
" python-setuptools-doc\n",
"The following NEW packages will be installed:\n",
" python-pip-whl python3-pip python3-setuptools python3-wheel\n",
"0 upgraded, 4 newly installed, 0 to remove and 15 not upgraded.\n",
"Need to get 2,389 kB of archives.\n",
"After this operation, 4,933 kB of additional disk space will be used.\n",
"Get:1 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 python-pip-whl all 20.0.2-5ubuntu1.9 [1,805 kB]\n",
"Get:2 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 python3-setuptools all 45.2.0-1ubuntu0.1 [330 kB]\n",
"Get:3 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 python3-wheel all 0.34.2-1ubuntu0.1 [23.9 kB]\n",
"Get:4 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 python3-pip all 20.0.2-5ubuntu1.9 [231 kB]\n",
"Fetched 2,389 kB in 0s (5,756 kB/s)\n",
"debconf: unable to initialize frontend: Dialog\n",
"debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 76, <> line 4.)\n",
"debconf: falling back to frontend: Readline\n",
"debconf: unable to initialize frontend: Readline\n",
"debconf: (This frontend requires a controlling tty.)\n",
"debconf: falling back to frontend: Teletype\n",
"dpkg-preconfigure: unable to re-open stdin: \n",
"Selecting previously unselected package python-pip-whl.\n",
"(Reading database ... 123828 files and directories currently installed.)\n",
"Preparing to unpack .../python-pip-whl_20.0.2-5ubuntu1.9_all.deb ...\n",
"Unpacking python-pip-whl (20.0.2-5ubuntu1.9) ...\n",
"Selecting previously unselected package python3-setuptools.\n",
"Preparing to unpack .../python3-setuptools_45.2.0-1ubuntu0.1_all.deb ...\n",
"Unpacking python3-setuptools (45.2.0-1ubuntu0.1) ...\n",
"Selecting previously unselected package python3-wheel.\n",
"Preparing to unpack .../python3-wheel_0.34.2-1ubuntu0.1_all.deb ...\n",
"Unpacking python3-wheel (0.34.2-1ubuntu0.1) ...\n",
"Selecting previously unselected package python3-pip.\n",
"Preparing to unpack .../python3-pip_20.0.2-5ubuntu1.9_all.deb ...\n",
"Unpacking python3-pip (20.0.2-5ubuntu1.9) ...\n",
"Setting up python3-setuptools (45.2.0-1ubuntu0.1) ...\n",
"Setting up python3-wheel (0.34.2-1ubuntu0.1) ...\n",
"Setting up python-pip-whl (20.0.2-5ubuntu1.9) ...\n",
"Setting up python3-pip (20.0.2-5ubuntu1.9) ...\n",
"Processing triggers for man-db (2.9.1-1) ...\n",
"Python 3.7.17\n",
"pip 20.0.2 from /usr/lib/python3/dist-packages/pip (python 3.7)\n"
]
}
]
},
{
"cell_type": "code",
"source": [
"# Install dependencies\n",
"!python3.7 -m pip install virtualenv"
],
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "3Ga-vm6oLazz",
"outputId": "b4f94ed6-7c65-4fc9-91cd-9f7f0b0c4ab8"
},
"execution_count": null,
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"text": [
"Looking in indexes: https://pypi.org/simple, https://us-python.pkg.dev/colab-wheels/public/simple/\n",
"Collecting virtualenv\n",
" Downloading virtualenv-20.23.1-py3-none-any.whl (3.3 MB)\n",
"\u001b[K |████████████████████████████████| 3.3 MB 4.0 MB/s \n",
"\u001b[?25hCollecting platformdirs<4,>=3.5.1\n",
" Downloading platformdirs-3.6.0-py3-none-any.whl (16 kB)\n",
"Collecting filelock<4,>=3.12\n",
" Downloading filelock-3.12.2-py3-none-any.whl (10 kB)\n",
"Collecting distlib<1,>=0.3.6\n",
" Downloading distlib-0.3.6-py2.py3-none-any.whl (468 kB)\n",
"\u001b[K |████████████████████████████████| 468 kB 44.7 MB/s \n",
"\u001b[?25hCollecting importlib-metadata>=6.6; python_version < \"3.8\"\n",
" Downloading importlib_metadata-6.6.0-py3-none-any.whl (22 kB)\n",
"Collecting typing-extensions>=4.6.3; python_version < \"3.8\"\n",
" Downloading typing_extensions-4.6.3-py3-none-any.whl (31 kB)\n",
"Collecting zipp>=0.5\n",
" Downloading zipp-3.15.0-py3-none-any.whl (6.8 kB)\n",
"Installing collected packages: typing-extensions, platformdirs, filelock, distlib, zipp, importlib-metadata, virtualenv\n",
"Successfully installed distlib-0.3.6 filelock-3.12.2 importlib-metadata-6.6.0 platformdirs-3.6.0 typing-extensions-4.6.3 virtualenv-20.23.1 zipp-3.15.0\n"
]
}
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "nuxfs4GZKGRy",
"outputId": "12a47064-54a8-4baf-8e10-ae3f40c393bb"
},
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"text": [
"Cloning into 'neukit'...\n",
"remote: Enumerating objects: 179, done.\u001b[K\n",
"remote: Counting objects: 100% (179/179), done.\u001b[K\n",
"remote: Compressing objects: 100% (125/125), done.\u001b[K\n",
"remote: Total 179 (delta 91), reused 109 (delta 47), pack-reused 0\u001b[K\n",
"Receiving objects: 100% (179/179), 37.21 KiB | 3.72 MiB/s, done.\n",
"Resolving deltas: 100% (91/91), done.\n",
"created virtual environment CPython3.7.17.final.0-64 in 1334ms\n",
" creator CPython3Posix(dest=/content/venv, clear=True, no_vcs_ignore=False, global=False)\n",
" seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/root/.local/share/virtualenv)\n",
" added seed packages: pip==23.1.2, setuptools==67.8.0, wheel==0.40.0\n",
" activators BashActivator,CShellActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator\n",
"Looking in indexes: https://pypi.org/simple, https://us-python.pkg.dev/colab-wheels/public/simple/\n",
"Collecting raidionicsrads@ git+https://github.com/andreped/raidionics_rads_lib\n",
" Cloning https://github.com/andreped/raidionics_rads_lib to /tmp/pip-install-ygos5ket/raidionicsrads\n",
" Running command git clone -q https://github.com/andreped/raidionics_rads_lib /tmp/pip-install-ygos5ket/raidionicsrads\n",
" Running command git submodule update --init --recursive -q\n",
"Collecting gradio==3.32.0\n",
" Downloading gradio-3.32.0-py3-none-any.whl (19.9 MB)\n",
"\u001b[K |████████████████████████████████| 19.9 MB 1.4 MB/s \n",
"\u001b[?25hCollecting MedPy==0.4.0\n",
" Downloading MedPy-0.4.0.tar.gz (151 kB)\n",
"\u001b[K |████████████████████████████████| 151 kB 58.2 MB/s \n",
"\u001b[?25hCollecting antspyx\n",
" Downloading antspyx-0.3.8-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (326.4 MB)\n",
"\u001b[K |████████████████████████████████| 326.4 MB 30 kB/s \n",
"\u001b[?25hCollecting raidionicsseg@ git+https://github.com/dbouget/raidionics_seg_lib.git@master#egg=raidionicsseg\n",
" Cloning https://github.com/dbouget/raidionics_seg_lib.git (to revision master) to /tmp/pip-install-ygos5ket/raidionicsseg\n",
" Running command git clone -q https://github.com/dbouget/raidionics_seg_lib.git /tmp/pip-install-ygos5ket/raidionicsseg\n",
"Collecting orjson\n",
" Downloading orjson-3.9.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (136 kB)\n",
"\u001b[K |████████████████████████████████| 136 kB 34.7 MB/s \n",
"\u001b[?25hCollecting semantic-version\n",
" Downloading semantic_version-2.10.0-py2.py3-none-any.whl (15 kB)\n",
"Collecting python-multipart\n",
" Downloading python_multipart-0.0.6-py3-none-any.whl (45 kB)\n",
"\u001b[K |████████████████████████████████| 45 kB 2.7 MB/s \n",
"\u001b[?25hCollecting markupsafe\n",
" Downloading MarkupSafe-2.1.3-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (25 kB)\n",
"Collecting pandas\n",
" Downloading pandas-1.3.5-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (11.3 MB)\n",
"\u001b[K |████████████████████████████████| 11.3 MB 42.8 MB/s \n",
"\u001b[?25hCollecting pillow\n",
" Downloading Pillow-9.5.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.3 MB)\n",
"\u001b[K |████████████████████████████████| 3.3 MB 55.8 MB/s \n",
"\u001b[?25hCollecting numpy\n",
" Downloading numpy-1.21.6-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (15.7 MB)\n",
"\u001b[K |████████████████████████████████| 15.7 MB 74.7 MB/s \n",
"\u001b[?25hRequirement already satisfied: typing-extensions in /usr/local/lib/python3.7/dist-packages (from gradio==3.32.0->-r neukit/requirements.txt (line 4)) (4.6.3)\n",
"Collecting pydub\n",
" Downloading pydub-0.25.1-py2.py3-none-any.whl (32 kB)\n",
"Collecting aiohttp\n",
" Downloading aiohttp-3.8.4-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (948 kB)\n",
"\u001b[K |████████████████████████████████| 948 kB 74.3 MB/s \n",
"\u001b[?25hCollecting matplotlib\n",
" Downloading matplotlib-3.5.3-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl (11.2 MB)\n",
"\u001b[K |████████████████████████████████| 11.2 MB 74.1 MB/s \n",
"\u001b[?25hCollecting altair>=4.2.0\n",
" Downloading altair-5.0.1-py3-none-any.whl (471 kB)\n",
"\u001b[K |████████████████████████████████| 471 kB 69.7 MB/s \n",
"\u001b[?25hCollecting markdown-it-py[linkify]>=2.0.0\n",
" Downloading markdown_it_py-2.2.0-py3-none-any.whl (84 kB)\n",
"\u001b[K |████████████████████████████████| 84 kB 3.1 MB/s \n",
"\u001b[?25hCollecting websockets>=10.0\n",
" Downloading websockets-11.0.3-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (129 kB)\n",
"\u001b[K |████████████████████████████████| 129 kB 75.7 MB/s \n",
"\u001b[?25hCollecting mdit-py-plugins<=0.3.3\n",
" Downloading mdit_py_plugins-0.3.3-py3-none-any.whl (50 kB)\n",
"\u001b[K |████████████████████████████████| 50 kB 5.6 MB/s \n",
"\u001b[?25hCollecting gradio-client>=0.2.4\n",
" Downloading gradio_client-0.2.6-py3-none-any.whl (288 kB)\n",
"\u001b[K |████████████████████████████████| 288 kB 48.7 MB/s \n",
"\u001b[?25hCollecting fastapi\n",
" Downloading fastapi-0.97.0-py3-none-any.whl (56 kB)\n",
"\u001b[K |████████████████████████████████| 56 kB 189 kB/s \n",
"\u001b[?25hCollecting aiofiles\n",
" Downloading aiofiles-23.1.0-py3-none-any.whl (14 kB)\n",
"Collecting ffmpy\n",
" Downloading ffmpy-0.3.0.tar.gz (4.8 kB)\n",
"Collecting jinja2\n",
" Downloading Jinja2-3.1.2-py3-none-any.whl (133 kB)\n",
"\u001b[K |████████████████████████████████| 133 kB 46.4 MB/s \n",
"\u001b[?25hCollecting pygments>=2.12.0\n",
" Downloading Pygments-2.15.1-py3-none-any.whl (1.1 MB)\n",
"\u001b[K |████████████████████████████████| 1.1 MB 20.0 MB/s \n",
"\u001b[?25hCollecting requests\n",
" Downloading requests-2.31.0-py3-none-any.whl (62 kB)\n",
"\u001b[K |████████████████████████████████| 62 kB 993 kB/s \n",
"\u001b[?25hCollecting pyyaml\n",
" Downloading PyYAML-6.0-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (596 kB)\n",
"\u001b[K |████████████████████████████████| 596 kB 46.6 MB/s \n",
"\u001b[?25hCollecting uvicorn>=0.14.0\n",
" Downloading uvicorn-0.22.0-py3-none-any.whl (58 kB)\n",
"\u001b[K |████████████████████████████████| 58 kB 4.6 MB/s \n",
"\u001b[?25hCollecting httpx\n",
" Downloading httpx-0.24.1-py3-none-any.whl (75 kB)\n",
"\u001b[K |████████████████████████████████| 75 kB 3.4 MB/s \n",
"\u001b[?25hCollecting pydantic\n",
" Downloading pydantic-1.10.9-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.1 MB)\n",
"\u001b[K |████████████████████████████████| 3.1 MB 48.4 MB/s \n",
"\u001b[?25hCollecting huggingface-hub>=0.13.0\n",
" Downloading huggingface_hub-0.15.1-py3-none-any.whl (236 kB)\n",
"\u001b[K |████████████████████████████████| 236 kB 54.8 MB/s \n",
"\u001b[?25hCollecting SimpleITK>=1.1.0\n",
" Downloading SimpleITK-2.2.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (52.7 MB)\n",
"\u001b[K |████████████████████████████████| 52.7 MB 147 kB/s \n",
"\u001b[?25hCollecting scipy>=1.1.0\n",
" Downloading scipy-1.7.3-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (38.1 MB)\n",
"\u001b[K |████████████████████████████████| 38.1 MB 1.2 MB/s \n",
"\u001b[?25hCollecting scikit-image\n",
" Downloading scikit_image-0.19.3-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (13.5 MB)\n",
"\u001b[K |████████████████████████████████| 13.5 MB 39.9 MB/s \n",
"\u001b[?25hCollecting webcolors\n",
" Downloading webcolors-1.13-py3-none-any.whl (14 kB)\n",
"Collecting scikit-learn\n",
" Downloading scikit_learn-1.0.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (24.8 MB)\n",
"\u001b[K |████████████████████████████████| 24.8 MB 1.4 MB/s \n",
"\u001b[?25hCollecting nibabel\n",
" Downloading nibabel-4.0.2-py3-none-any.whl (3.3 MB)\n",
"\u001b[K |████████████████████████████████| 3.3 MB 77.1 MB/s \n",
"\u001b[?25hCollecting chart-studio\n",
" Downloading chart_studio-1.1.0-py3-none-any.whl (64 kB)\n",
"\u001b[K |████████████████████████████████| 64 kB 2.5 MB/s \n",
"\u001b[?25hCollecting statsmodels\n",
" Downloading statsmodels-0.13.5-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (9.9 MB)\n",
"\u001b[K |████████████████████████████████| 9.9 MB 48.6 MB/s \n",
"\u001b[?25hCollecting aenum==3.1.11\n",
" Downloading aenum-3.1.11-py3-none-any.whl (131 kB)\n",
"\u001b[K |████████████████████████████████| 131 kB 54.0 MB/s \n",
"\u001b[?25hCollecting h5py==3.7.0\n",
" Downloading h5py-3.7.0-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (4.1 MB)\n",
"\u001b[K |████████████████████████████████| 4.1 MB 60.5 MB/s \n",
"\u001b[?25hCollecting onnxruntime==1.12.1\n",
" Downloading onnxruntime-1.12.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.5 MB)\n",
"\u001b[K |████████████████████████████████| 5.5 MB 62.5 MB/s \n",
"\u001b[?25hCollecting tqdm==4.64.1\n",
" Downloading tqdm-4.64.1-py2.py3-none-any.whl (78 kB)\n",
"\u001b[K |████████████████████████████████| 78 kB 6.0 MB/s \n",
"\u001b[?25hCollecting python-dateutil>=2.7.3\n",
" Downloading python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)\n",
"\u001b[K |████████████████████████████████| 247 kB 59.2 MB/s \n",
"\u001b[?25hCollecting pytz>=2017.3\n",
" Downloading pytz-2023.3-py2.py3-none-any.whl (502 kB)\n",
"\u001b[K |████████████████████████████████| 502 kB 58.5 MB/s \n",
"\u001b[?25hCollecting asynctest==0.13.0; python_version < \"3.8\"\n",
" Downloading asynctest-0.13.0-py3-none-any.whl (26 kB)\n",
"Collecting async-timeout<5.0,>=4.0.0a3\n",
" Downloading async_timeout-4.0.2-py3-none-any.whl (5.8 kB)\n",
"Collecting multidict<7.0,>=4.5\n",
" Downloading multidict-6.0.4-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (94 kB)\n",
"\u001b[K |████████████████████████████████| 94 kB 3.1 MB/s \n",
"\u001b[?25hCollecting aiosignal>=1.1.2\n",
" Downloading aiosignal-1.3.1-py3-none-any.whl (7.6 kB)\n",
"Collecting yarl<2.0,>=1.0\n",
" Downloading yarl-1.9.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (236 kB)\n",
"\u001b[K |████████████████████████████████| 236 kB 78.3 MB/s \n",
"\u001b[?25hCollecting attrs>=17.3.0\n",
" Downloading attrs-23.1.0-py3-none-any.whl (61 kB)\n",
"\u001b[K |████████████████████████████████| 61 kB 6.9 MB/s \n",
"\u001b[?25hCollecting charset-normalizer<4.0,>=2.0\n",
" Downloading charset_normalizer-3.1.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (171 kB)\n",
"\u001b[K |████████████████████████████████| 171 kB 60.2 MB/s \n",
"\u001b[?25hCollecting frozenlist>=1.1.1\n",
" Downloading frozenlist-1.3.3-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (148 kB)\n",
"\u001b[K |████████████████████████████████| 148 kB 73.0 MB/s \n",
"\u001b[?25hCollecting cycler>=0.10\n",
" Downloading cycler-0.11.0-py3-none-any.whl (6.4 kB)\n",
"Collecting kiwisolver>=1.0.1\n",
" Downloading kiwisolver-1.4.4-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl (1.1 MB)\n",
"\u001b[K |████████████████████████████████| 1.1 MB 65.3 MB/s \n",
"\u001b[?25hCollecting pyparsing>=2.2.1\n",
" Downloading pyparsing-3.0.9-py3-none-any.whl (98 kB)\n",
"\u001b[K |████████████████████████████████| 98 kB 6.5 MB/s \n",
"\u001b[?25hCollecting fonttools>=4.22.0\n",
" Downloading fonttools-4.38.0-py3-none-any.whl (965 kB)\n",
"\u001b[K |████████████████████████████████| 965 kB 65.5 MB/s \n",
"\u001b[?25hCollecting packaging>=20.0\n",
" Downloading packaging-23.1-py3-none-any.whl (48 kB)\n",
"\u001b[K |████████████████████████████████| 48 kB 4.0 MB/s \n",
"\u001b[?25hRequirement already satisfied: importlib-metadata; python_version < \"3.8\" in /usr/local/lib/python3.7/dist-packages (from altair>=4.2.0->gradio==3.32.0->-r neukit/requirements.txt (line 4)) (6.6.0)\n",
"Collecting jsonschema>=3.0\n",
" Downloading jsonschema-4.17.3-py3-none-any.whl (90 kB)\n",
"\u001b[K |████████████████████████████████| 90 kB 7.8 MB/s \n",
"\u001b[?25hCollecting toolz\n",
" Downloading toolz-0.12.0-py3-none-any.whl (55 kB)\n",
"\u001b[K |████████████████████████████████| 55 kB 2.7 MB/s \n",
"\u001b[?25hCollecting mdurl~=0.1\n",
" Downloading mdurl-0.1.2-py3-none-any.whl (10.0 kB)\n",
"Collecting linkify-it-py<3,>=1; extra == \"linkify\"\n",
" Downloading linkify_it_py-2.0.2-py3-none-any.whl (19 kB)\n",
"Collecting fsspec\n",
" Downloading fsspec-2023.1.0-py3-none-any.whl (143 kB)\n",
"\u001b[K |████████████████████████████████| 143 kB 67.6 MB/s \n",
"\u001b[?25hCollecting starlette<0.28.0,>=0.27.0\n",
" Downloading starlette-0.27.0-py3-none-any.whl (66 kB)\n",
"\u001b[K |████████████████████████████████| 66 kB 4.4 MB/s \n",
"\u001b[?25hCollecting certifi>=2017.4.17\n",
" Downloading certifi-2023.5.7-py3-none-any.whl (156 kB)\n",
"\u001b[K |████████████████████████████████| 156 kB 36.6 MB/s \n",
"\u001b[?25hCollecting idna<4,>=2.5\n",
" Downloading idna-3.4-py3-none-any.whl (61 kB)\n",
"\u001b[K |████████████████████████████████| 61 kB 3.9 kB/s \n",
"\u001b[?25hCollecting urllib3<3,>=1.21.1\n",
" Downloading urllib3-2.0.3-py3-none-any.whl (123 kB)\n",
"\u001b[K |████████████████████████████████| 123 kB 79.9 MB/s \n",
"\u001b[?25hCollecting click>=7.0\n",
" Downloading click-8.1.3-py3-none-any.whl (96 kB)\n",
"\u001b[K |████████████████████████████████| 96 kB 5.0 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 4.5 MB/s \n",
"\u001b[?25hCollecting httpcore<0.18.0,>=0.15.0\n",
" Downloading httpcore-0.17.2-py3-none-any.whl (72 kB)\n",
"\u001b[K |████████████████████████████████| 72 kB 791 kB/s \n",
"\u001b[?25hCollecting sniffio\n",
" Downloading sniffio-1.3.0-py3-none-any.whl (10 kB)\n",
"Requirement already satisfied: filelock in /usr/local/lib/python3.7/dist-packages (from huggingface-hub>=0.13.0->gradio==3.32.0->-r neukit/requirements.txt (line 4)) (3.12.2)\n",
"Collecting tifffile>=2019.7.26\n",
" Downloading tifffile-2021.11.2-py3-none-any.whl (178 kB)\n",
"\u001b[K |████████████████████████████████| 178 kB 53.8 MB/s \n",
"\u001b[?25hCollecting networkx>=2.2\n",
" Downloading networkx-2.6.3-py3-none-any.whl (1.9 MB)\n",
"\u001b[K |████████████████████████████████| 1.9 MB 54.0 MB/s \n",
"\u001b[?25hCollecting PyWavelets>=1.1.1\n",
" Downloading PyWavelets-1.3.0-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (6.4 MB)\n",
"\u001b[K |████████████████████████████████| 6.4 MB 57.7 MB/s \n",
"\u001b[?25hCollecting imageio>=2.4.1\n",
" Downloading imageio-2.31.1-py3-none-any.whl (313 kB)\n",
"\u001b[K |████████████████████████████████| 313 kB 47.5 MB/s \n",
"\u001b[?25hCollecting joblib>=0.11\n",
" Downloading joblib-1.2.0-py3-none-any.whl (297 kB)\n",
"\u001b[K |████████████████████████████████| 297 kB 41.9 MB/s \n",
"\u001b[?25hCollecting threadpoolctl>=2.0.0\n",
" Downloading threadpoolctl-3.1.0-py3-none-any.whl (14 kB)\n",
"Requirement already satisfied: setuptools in /usr/lib/python3/dist-packages (from nibabel->antspyx->raidionicsrads@ git+https://github.com/andreped/raidionics_rads_lib->-r neukit/requirements.txt (line 3)) (45.2.0)\n",
"Collecting plotly\n",
" Downloading plotly-5.15.0-py2.py3-none-any.whl (15.5 MB)\n",
"\u001b[K |████████████████████████████████| 15.5 MB 55.2 MB/s \n",
"\u001b[?25hCollecting retrying>=1.3.3\n",
" Downloading retrying-1.3.4-py3-none-any.whl (11 kB)\n",
"Collecting six\n",
" Downloading six-1.16.0-py2.py3-none-any.whl (11 kB)\n",
"Collecting patsy>=0.5.2\n",
" Downloading patsy-0.5.3-py2.py3-none-any.whl (233 kB)\n",
"\u001b[K |████████████████████████████████| 233 kB 62.1 MB/s \n",
"\u001b[?25hCollecting flatbuffers\n",
" Downloading flatbuffers-23.5.26-py2.py3-none-any.whl (26 kB)\n",
"Collecting protobuf\n",
" Downloading protobuf-4.23.3-cp37-abi3-manylinux2014_x86_64.whl (304 kB)\n",
"\u001b[K |████████████████████████████████| 304 kB 49.0 MB/s \n",
"\u001b[?25hCollecting coloredlogs\n",
" Downloading coloredlogs-15.0.1-py2.py3-none-any.whl (46 kB)\n",
"\u001b[K |████████████████████████████████| 46 kB 2.7 MB/s \n",
"\u001b[?25hCollecting sympy\n",
" Downloading sympy-1.10.1-py3-none-any.whl (6.4 MB)\n",
"\u001b[K |████████████████████████████████| 6.4 MB 65.9 MB/s \n",
"\u001b[?25hRequirement already satisfied: zipp>=0.5 in /usr/local/lib/python3.7/dist-packages (from importlib-metadata; python_version < \"3.8\"->altair>=4.2.0->gradio==3.32.0->-r neukit/requirements.txt (line 4)) (3.15.0)\n",
"Collecting pkgutil-resolve-name>=1.3.10; python_version < \"3.9\"\n",
" Downloading pkgutil_resolve_name-1.3.10-py3-none-any.whl (4.7 kB)\n",
"Collecting importlib-resources>=1.4.0; python_version < \"3.9\"\n",
" Downloading importlib_resources-5.12.0-py3-none-any.whl (36 kB)\n",
"Collecting pyrsistent!=0.17.0,!=0.17.1,!=0.17.2,>=0.14.0\n",
" Downloading pyrsistent-0.19.3-py3-none-any.whl (57 kB)\n",
"\u001b[K |████████████████████████████████| 57 kB 4.4 MB/s \n",
"\u001b[?25hCollecting uc-micro-py\n",
" Downloading uc_micro_py-1.0.2-py3-none-any.whl (6.2 kB)\n",
"Collecting anyio<5,>=3.4.0\n",
" Downloading anyio-3.7.0-py3-none-any.whl (80 kB)\n",
"\u001b[K |████████████████████████████████| 80 kB 7.2 MB/s \n",
"\u001b[?25hCollecting tenacity>=6.2.0\n",
" Downloading tenacity-8.2.2-py3-none-any.whl (24 kB)\n",
"Collecting humanfriendly>=9.1\n",
" Downloading humanfriendly-10.0-py2.py3-none-any.whl (86 kB)\n",
"\u001b[K |████████████████████████████████| 86 kB 4.9 MB/s \n",
"\u001b[?25hCollecting mpmath>=0.19\n",
" Downloading mpmath-1.3.0-py3-none-any.whl (536 kB)\n",
"\u001b[K |████████████████████████████████| 536 kB 47.3 MB/s \n",
"\u001b[?25hCollecting exceptiongroup; python_version < \"3.11\"\n",
" Downloading exceptiongroup-1.1.1-py3-none-any.whl (14 kB)\n",
"Building wheels for collected packages: raidionicsrads, MedPy, raidionicsseg, ffmpy\n",
" Building wheel for raidionicsrads (setup.py) ... \u001b[?25l\u001b[?25hdone\n",
" Created wheel for raidionicsrads: filename=raidionicsrads-1.1.0-py3-none-any.whl size=44522241 sha256=de883a91f8d17de4100bece23007d1414a0a167688830a72461f09e731ed6148\n",
" Stored in directory: /tmp/pip-ephem-wheel-cache-gjn_0196/wheels/2e/70/06/a16be740238d4457556ad06f9030c7b07425d9b22ae8a794aa\n",
" Building wheel for MedPy (setup.py) ... \u001b[?25l\u001b[?25hdone\n",
" Created wheel for MedPy: filename=MedPy-0.4.0-py3-none-any.whl size=214958 sha256=859eb7258f53cd1b34e1b65b39321f3a599b6aefa8c478785a9cb20bf8ce7b84\n",
" Stored in directory: /root/.cache/pip/wheels/b0/57/3a/da1183f22a6afb42e11138daa6a759de233fd977a984333602\n",
" Building wheel for raidionicsseg (setup.py) ... \u001b[?25l\u001b[?25hdone\n",
" Created wheel for raidionicsseg: filename=raidionicsseg-1.2.0-py3-none-any.whl size=26331 sha256=95ba6b5b52392a93992b5dcbcb27ac16940d8b7071b598610b3a5b91e0f114ac\n",
" Stored in directory: /tmp/pip-ephem-wheel-cache-gjn_0196/wheels/4a/62/a1/2ce8c55ea1b45ef2a1e7346ae986d594f1237c7ff3fffe2462\n",
" Building wheel for ffmpy (setup.py) ... \u001b[?25l\u001b[?25hdone\n",
" Created wheel for ffmpy: filename=ffmpy-0.3.0-py3-none-any.whl size=4709 sha256=5d2af2e04d60393702521b272280518f9facd93edad81008eda10d931ea50867\n",
" Stored in directory: /root/.cache/pip/wheels/13/e4/6c/e8059816e86796a597c6e6b0d4c880630f51a1fcfa0befd5e6\n",
"Successfully built raidionicsrads MedPy raidionicsseg ffmpy\n",
"\u001b[31mERROR: raidionicsseg 1.2.0 has requirement SimpleITK==2.2.0, but you'll have simpleitk 2.2.1 which is incompatible.\u001b[0m\n",
"Installing collected packages: SimpleITK, numpy, scipy, MedPy, pillow, tifffile, networkx, PyWavelets, imageio, packaging, scikit-image, webcolors, six, python-dateutil, cycler, kiwisolver, pyparsing, fonttools, matplotlib, joblib, threadpoolctl, scikit-learn, pyyaml, pytz, pandas, nibabel, tenacity, plotly, retrying, certifi, charset-normalizer, idna, urllib3, requests, chart-studio, patsy, statsmodels, antspyx, aenum, h5py, flatbuffers, protobuf, humanfriendly, coloredlogs, mpmath, sympy, onnxruntime, tqdm, raidionicsseg, raidionicsrads, orjson, semantic-version, python-multipart, markupsafe, pydub, asynctest, async-timeout, multidict, frozenlist, aiosignal, yarl, attrs, aiohttp, pkgutil-resolve-name, importlib-resources, pyrsistent, jsonschema, toolz, jinja2, altair, mdurl, uc-micro-py, linkify-it-py, markdown-it-py, websockets, mdit-py-plugins, sniffio, exceptiongroup, anyio, h11, httpcore, httpx, fsspec, huggingface-hub, gradio-client, pydantic, starlette, fastapi, aiofiles, ffmpy, pygments, click, uvicorn, gradio\n",
"Successfully installed MedPy-0.4.0 PyWavelets-1.3.0 SimpleITK-2.2.1 aenum-3.1.11 aiofiles-23.1.0 aiohttp-3.8.4 aiosignal-1.3.1 altair-5.0.1 antspyx-0.3.8 anyio-3.7.0 async-timeout-4.0.2 asynctest-0.13.0 attrs-23.1.0 certifi-2023.5.7 charset-normalizer-3.1.0 chart-studio-1.1.0 click-8.1.3 coloredlogs-15.0.1 cycler-0.11.0 exceptiongroup-1.1.1 fastapi-0.97.0 ffmpy-0.3.0 flatbuffers-23.5.26 fonttools-4.38.0 frozenlist-1.3.3 fsspec-2023.1.0 gradio-3.32.0 gradio-client-0.2.6 h11-0.14.0 h5py-3.7.0 httpcore-0.17.2 httpx-0.24.1 huggingface-hub-0.15.1 humanfriendly-10.0 idna-3.4 imageio-2.31.1 importlib-resources-5.12.0 jinja2-3.1.2 joblib-1.2.0 jsonschema-4.17.3 kiwisolver-1.4.4 linkify-it-py-2.0.2 markdown-it-py-2.2.0 markupsafe-2.1.3 matplotlib-3.5.3 mdit-py-plugins-0.3.3 mdurl-0.1.2 mpmath-1.3.0 multidict-6.0.4 networkx-2.6.3 nibabel-4.0.2 numpy-1.21.6 onnxruntime-1.12.1 orjson-3.9.1 packaging-23.1 pandas-1.3.5 patsy-0.5.3 pillow-9.5.0 pkgutil-resolve-name-1.3.10 plotly-5.15.0 protobuf-4.23.3 pydantic-1.10.9 pydub-0.25.1 pygments-2.15.1 pyparsing-3.0.9 pyrsistent-0.19.3 python-dateutil-2.8.2 python-multipart-0.0.6 pytz-2023.3 pyyaml-6.0 raidionicsrads-1.1.0 raidionicsseg-1.2.0 requests-2.31.0 retrying-1.3.4 scikit-image-0.19.3 scikit-learn-1.0.2 scipy-1.7.3 semantic-version-2.10.0 six-1.16.0 sniffio-1.3.0 starlette-0.27.0 statsmodels-0.13.5 sympy-1.10.1 tenacity-8.2.2 threadpoolctl-3.1.0 tifffile-2021.11.2 toolz-0.12.0 tqdm-4.64.1 uc-micro-py-1.0.2 urllib3-2.0.3 uvicorn-0.22.0 webcolors-1.13 websockets-11.0.3 yarl-1.9.2\n",
"Looking in indexes: https://pypi.org/simple, https://us-python.pkg.dev/colab-wheels/public/simple/\n",
"Collecting ipykernel\n",
" Downloading ipykernel-6.16.2-py3-none-any.whl (138 kB)\n",
"\u001b[K |████████████████████████████████| 138 kB 4.6 MB/s \n",
"\u001b[?25hCollecting pyzmq>=17\n",
" Downloading pyzmq-25.1.0-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl (1.1 MB)\n",
"\u001b[K |████████████████████████████████| 1.1 MB 39.8 MB/s \n",
"\u001b[?25hCollecting nest-asyncio\n",
" Downloading nest_asyncio-1.5.6-py3-none-any.whl (5.2 kB)\n",
"Collecting tornado>=6.1\n",
" Downloading tornado-6.2-cp37-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (423 kB)\n",
"\u001b[K |████████████████████████████████| 423 kB 35.5 MB/s \n",
"\u001b[?25hCollecting matplotlib-inline>=0.1\n",
" Downloading matplotlib_inline-0.1.6-py3-none-any.whl (9.4 kB)\n",
"Collecting psutil\n",
" Downloading psutil-5.9.5-cp36-abi3-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (282 kB)\n",
"\u001b[K |████████████████████████████████| 282 kB 43.6 MB/s \n",
"\u001b[?25hCollecting debugpy>=1.0\n",
" Downloading debugpy-1.6.7-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.9 MB)\n",
"\u001b[K |████████████████████████████████| 2.9 MB 61.1 MB/s \n",
"\u001b[?25hCollecting traitlets>=5.1.0\n",
" Downloading traitlets-5.9.0-py3-none-any.whl (117 kB)\n",
"\u001b[K |████████████████████████████████| 117 kB 59.6 MB/s \n",
"\u001b[?25hCollecting ipython>=7.23.1\n",
" Downloading ipython-7.34.0-py3-none-any.whl (793 kB)\n",
"\u001b[K |████████████████████████████████| 793 kB 60.6 MB/s \n",
"\u001b[?25hCollecting jupyter-client>=6.1.12\n",
" Downloading jupyter_client-7.4.9-py3-none-any.whl (133 kB)\n",
"\u001b[K |████████████████████████████████| 133 kB 60.2 MB/s \n",
"\u001b[?25hRequirement already satisfied: packaging in /usr/local/lib/python3.7/dist-packages (from ipykernel) (23.1)\n",
"Collecting jedi>=0.16\n",
" Downloading jedi-0.18.2-py2.py3-none-any.whl (1.6 MB)\n",
"\u001b[K |████████████████████████████████| 1.6 MB 49.4 MB/s \n",
"\u001b[?25hCollecting prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0\n",
" Downloading prompt_toolkit-3.0.38-py3-none-any.whl (385 kB)\n",
"\u001b[K |████████████████████████████████| 385 kB 55.3 MB/s \n",
"\u001b[?25hCollecting pexpect>4.3; sys_platform != \"win32\"\n",
" Downloading pexpect-4.8.0-py2.py3-none-any.whl (59 kB)\n",
"\u001b[K |████████████████████████████████| 59 kB 5.3 MB/s \n",
"\u001b[?25hCollecting pickleshare\n",
" Downloading pickleshare-0.7.5-py2.py3-none-any.whl (6.9 kB)\n",
"Collecting decorator\n",
" Downloading decorator-5.1.1-py3-none-any.whl (9.1 kB)\n",
"Collecting backcall\n",
" Downloading backcall-0.2.0-py2.py3-none-any.whl (11 kB)\n",
"Requirement already satisfied: setuptools>=18.5 in /usr/lib/python3/dist-packages (from ipython>=7.23.1->ipykernel) (45.2.0)\n",
"Requirement already satisfied: pygments in /usr/local/lib/python3.7/dist-packages (from ipython>=7.23.1->ipykernel) (2.15.1)\n",
"Requirement already satisfied: python-dateutil>=2.8.2 in /usr/local/lib/python3.7/dist-packages (from jupyter-client>=6.1.12->ipykernel) (2.8.2)\n",
"Collecting entrypoints\n",
" Downloading entrypoints-0.4-py3-none-any.whl (5.3 kB)\n",
"Collecting jupyter-core>=4.9.2\n",
" Downloading jupyter_core-4.12.0-py3-none-any.whl (89 kB)\n",
"\u001b[K |████████████████████████████████| 89 kB 7.6 MB/s \n",
"\u001b[?25hCollecting parso<0.9.0,>=0.8.0\n",
" Downloading parso-0.8.3-py2.py3-none-any.whl (100 kB)\n",
"\u001b[K |████████████████████████████████| 100 kB 8.3 MB/s \n",
"\u001b[?25hCollecting wcwidth\n",
" Downloading wcwidth-0.2.6-py2.py3-none-any.whl (29 kB)\n",
"Collecting ptyprocess>=0.5\n",
" Downloading ptyprocess-0.7.0-py2.py3-none-any.whl (13 kB)\n",
"Requirement already satisfied: six>=1.5 in /usr/local/lib/python3.7/dist-packages (from python-dateutil>=2.8.2->jupyter-client>=6.1.12->ipykernel) (1.16.0)\n",
"Installing collected packages: pyzmq, nest-asyncio, tornado, traitlets, matplotlib-inline, psutil, debugpy, parso, jedi, wcwidth, prompt-toolkit, ptyprocess, pexpect, pickleshare, decorator, backcall, ipython, entrypoints, jupyter-core, jupyter-client, ipykernel\n",
"Successfully installed backcall-0.2.0 debugpy-1.6.7 decorator-5.1.1 entrypoints-0.4 ipykernel-6.16.2 ipython-7.34.0 jedi-0.18.2 jupyter-client-7.4.9 jupyter-core-4.12.0 matplotlib-inline-0.1.6 nest-asyncio-1.5.6 parso-0.8.3 pexpect-4.8.0 pickleshare-0.7.5 prompt-toolkit-3.0.38 psutil-5.9.5 ptyprocess-0.7.0 pyzmq-25.1.0 tornado-6.2 traitlets-5.9.0 wcwidth-0.2.6\n"
]
}
],
"source": [
"# Setup virtual environment and app\n",
"!git clone https://github.com/andreped/neukit.git\n",
"!cd neukit/\n",
"\n",
"!python3.7 -m virtualenv -ppython3 venv/ --clear\n",
"!source venv/bin/activate\n",
"!python3.7 -m pip install -r neukit/requirements.txt\n",
"!python3.7 -m pip install ipykernel"
]
},
{
"cell_type": "code",
"source": [
"# Download pretrained models\n",
"!wget \"https://github.com/raidionics/Raidionics-models/releases/download/1.2.0/Raidionics-MRI_Meningioma-ONNX-v12.zip\" && \\\n",
" unzip \"Raidionics-MRI_Meningioma-ONNX-v12.zip\" && mkdir -p resources/models/ && mv MRI_Meningioma/ resources/models/MRI_Meningioma/\n",
"!wget \"https://github.com/raidionics/Raidionics-models/releases/download/1.2.0/Raidionics-MRI_LGGlioma-ONNX-v12.zip\" && \\\n",
" unzip \"Raidionics-MRI_LGGlioma-ONNX-v12.zip\" && mv MRI_LGGlioma/ resources/models/MRI_LGGlioma/\n",
"!wget \"https://github.com/raidionics/Raidionics-models/releases/download/1.2.0/Raidionics-MRI_Metastasis-ONNX-v12.zip\" && \\\n",
" unzip \"Raidionics-MRI_Metastasis-ONNX-v12.zip\" && mv MRI_Metastasis/ resources/models/MRI_Metastasis/\n",
"!wget \"https://github.com/raidionics/Raidionics-models/releases/download/1.2.0/Raidionics-MRI_GBM-ONNX-v12.zip\" && \\\n",
" unzip \"Raidionics-MRI_GBM-ONNX-v12.zip\" && mv MRI_GBM/ resources/models/MRI_GBM/\n",
"!wget \"https://github.com/raidionics/Raidionics-models/releases/download/1.2.0/Raidionics-MRI_Brain-ONNX-v12.zip\" && \\\n",
" unzip \"Raidionics-MRI_Brain-ONNX-v12.zip\" && mv MRI_Brain/ resources/models/MRI_Brain/\n",
"!rm -r *.zip\n",
"\n",
"# Download test sample\n",
"!wget \"https://github.com/andreped/neukit/releases/download/test-data/RegLib_C01_1.nii\" && \\\n",
" wget \"https://github.com/andreped/neukit/releases/download/test-data/RegLib_C01_2.nii\" && \\\n",
" mv RegLib_C01_* neukit/"
],
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "rAUQA1OVfLjG",
"outputId": "067f299d-e833-4e7d-9e76-77376fc33715"
},
"execution_count": null,
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"text": [
"--2023-06-18 12:45:17-- https://github.com/raidionics/Raidionics-models/releases/download/1.2.0/Raidionics-MRI_Meningioma-ONNX-v12.zip\n",
"Resolving github.com (github.com)... 140.82.113.4\n",
"Connecting to github.com (github.com)|140.82.113.4|:443... connected.\n",
"HTTP request sent, awaiting response... 302 Found\n",
"Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/601122702/526c5629-b70b-4685-95bf-9646ea328504?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230618%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230618T124517Z&X-Amz-Expires=300&X-Amz-Signature=c575733505eb3fbeb0d9a8e1339b8b0b133ba0a21681cd5c07499ebdb2d8271e&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=601122702&response-content-disposition=attachment%3B%20filename%3DRaidionics-MRI_Meningioma-ONNX-v12.zip&response-content-type=application%2Foctet-stream [following]\n",
"--2023-06-18 12:45:17-- https://objects.githubusercontent.com/github-production-release-asset-2e65be/601122702/526c5629-b70b-4685-95bf-9646ea328504?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230618%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230618T124517Z&X-Amz-Expires=300&X-Amz-Signature=c575733505eb3fbeb0d9a8e1339b8b0b133ba0a21681cd5c07499ebdb2d8271e&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=601122702&response-content-disposition=attachment%3B%20filename%3DRaidionics-MRI_Meningioma-ONNX-v12.zip&response-content-type=application%2Foctet-stream\n",
"Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.108.133, 185.199.109.133, 185.199.110.133, ...\n",
"Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.108.133|:443... connected.\n",
"HTTP request sent, awaiting response... 200 OK\n",
"Length: 68913186 (66M) [application/octet-stream]\n",
"Saving to: ‘Raidionics-MRI_Meningioma-ONNX-v12.zip’\n",
"\n",
"Raidionics-MRI_Meni 100%[===================>] 65.72M 177MB/s in 0.4s \n",
"\n",
"2023-06-18 12:45:18 (177 MB/s) - ‘Raidionics-MRI_Meningioma-ONNX-v12.zip’ saved [68913186/68913186]\n",
"\n",
"Archive: Raidionics-MRI_Meningioma-ONNX-v12.zip\n",
" creating: MRI_Meningioma/\n",
" inflating: MRI_Meningioma/model.onnx \n",
" inflating: MRI_Meningioma/model_config.txt \n",
" inflating: MRI_Meningioma/pre_processing.ini \n",
" inflating: MRI_Meningioma/pipeline.json \n",
"--2023-06-18 12:45:19-- https://github.com/raidionics/Raidionics-models/releases/download/1.2.0/Raidionics-MRI_LGGlioma-ONNX-v12.zip\n",
"Resolving github.com (github.com)... 140.82.114.3\n",
"Connecting to github.com (github.com)|140.82.114.3|:443... connected.\n",
"HTTP request sent, awaiting response... 302 Found\n",
"Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/601122702/0b9674ae-d124-43de-a573-deb2680ef1cc?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230618%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230618T124519Z&X-Amz-Expires=300&X-Amz-Signature=f952fc6178baece4c1f371d8b41c698a5bba0b42e62e278c2a641309a00940fb&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=601122702&response-content-disposition=attachment%3B%20filename%3DRaidionics-MRI_LGGlioma-ONNX-v12.zip&response-content-type=application%2Foctet-stream [following]\n",
"--2023-06-18 12:45:19-- https://objects.githubusercontent.com/github-production-release-asset-2e65be/601122702/0b9674ae-d124-43de-a573-deb2680ef1cc?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230618%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230618T124519Z&X-Amz-Expires=300&X-Amz-Signature=f952fc6178baece4c1f371d8b41c698a5bba0b42e62e278c2a641309a00940fb&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=601122702&response-content-disposition=attachment%3B%20filename%3DRaidionics-MRI_LGGlioma-ONNX-v12.zip&response-content-type=application%2Foctet-stream\n",
"Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.108.133, 185.199.109.133, 185.199.110.133, ...\n",
"Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.108.133|:443... connected.\n",
"HTTP request sent, awaiting response... 200 OK\n",
"Length: 69041134 (66M) [application/octet-stream]\n",
"Saving to: ‘Raidionics-MRI_LGGlioma-ONNX-v12.zip’\n",
"\n",
"Raidionics-MRI_LGGl 100%[===================>] 65.84M 146MB/s in 0.5s \n",
"\n",
"2023-06-18 12:45:20 (146 MB/s) - ‘Raidionics-MRI_LGGlioma-ONNX-v12.zip’ saved [69041134/69041134]\n",
"\n",
"Archive: Raidionics-MRI_LGGlioma-ONNX-v12.zip\n",
" creating: MRI_LGGlioma/\n",
" inflating: MRI_LGGlioma/model.onnx \n",
" inflating: MRI_LGGlioma/model_config.txt \n",
" inflating: MRI_LGGlioma/pre_processing.ini \n",
" inflating: MRI_LGGlioma/pipeline.json \n",
"--2023-06-18 12:45:21-- https://github.com/raidionics/Raidionics-models/releases/download/1.2.0/Raidionics-MRI_Metastasis-ONNX-v12.zip\n",
"Resolving github.com (github.com)... 140.82.114.3\n",
"Connecting to github.com (github.com)|140.82.114.3|:443... connected.\n",
"HTTP request sent, awaiting response... 302 Found\n",
"Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/601122702/59e1da25-55ff-48c3-ade1-5f11b49f0279?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230618%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230618T124521Z&X-Amz-Expires=300&X-Amz-Signature=64bbe74ac90ea8f68658ca9152670ad1e406222e0e2c5629ecd4932979514f07&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=601122702&response-content-disposition=attachment%3B%20filename%3DRaidionics-MRI_Metastasis-ONNX-v12.zip&response-content-type=application%2Foctet-stream [following]\n",
"--2023-06-18 12:45:21-- https://objects.githubusercontent.com/github-production-release-asset-2e65be/601122702/59e1da25-55ff-48c3-ade1-5f11b49f0279?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230618%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230618T124521Z&X-Amz-Expires=300&X-Amz-Signature=64bbe74ac90ea8f68658ca9152670ad1e406222e0e2c5629ecd4932979514f07&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=601122702&response-content-disposition=attachment%3B%20filename%3DRaidionics-MRI_Metastasis-ONNX-v12.zip&response-content-type=application%2Foctet-stream\n",
"Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.108.133, 185.199.111.133, 185.199.109.133, ...\n",
"Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.108.133|:443... connected.\n",
"HTTP request sent, awaiting response... 200 OK\n",
"Length: 68802585 (66M) [application/octet-stream]\n",
"Saving to: ‘Raidionics-MRI_Metastasis-ONNX-v12.zip’\n",
"\n",
"Raidionics-MRI_Meta 100%[===================>] 65.62M 151MB/s in 0.4s \n",
"\n",
"2023-06-18 12:45:22 (151 MB/s) - ‘Raidionics-MRI_Metastasis-ONNX-v12.zip’ saved [68802585/68802585]\n",
"\n",
"Archive: Raidionics-MRI_Metastasis-ONNX-v12.zip\n",
" creating: MRI_Metastasis/\n",
" inflating: MRI_Metastasis/model.onnx \n",
" inflating: MRI_Metastasis/model_config.txt \n",
" inflating: MRI_Metastasis/pre_processing.ini \n",
" inflating: MRI_Metastasis/pipeline.json \n",
"--2023-06-18 12:45:23-- https://github.com/raidionics/Raidionics-models/releases/download/1.2.0/Raidionics-MRI_GBM-ONNX-v12.zip\n",
"Resolving github.com (github.com)... 140.82.114.3\n",
"Connecting to github.com (github.com)|140.82.114.3|:443... connected.\n",
"HTTP request sent, awaiting response... 302 Found\n",
"Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/601122702/e785ea5f-495e-4b48-b115-c6246bae373e?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230618%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230618T124523Z&X-Amz-Expires=300&X-Amz-Signature=591031b368b6f571d33e5ab082a71974f4d3e36c0762c1dfc5b98edcd221270c&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=601122702&response-content-disposition=attachment%3B%20filename%3DRaidionics-MRI_GBM-ONNX-v12.zip&response-content-type=application%2Foctet-stream [following]\n",
"--2023-06-18 12:45:23-- https://objects.githubusercontent.com/github-production-release-asset-2e65be/601122702/e785ea5f-495e-4b48-b115-c6246bae373e?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230618%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230618T124523Z&X-Amz-Expires=300&X-Amz-Signature=591031b368b6f571d33e5ab082a71974f4d3e36c0762c1dfc5b98edcd221270c&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=601122702&response-content-disposition=attachment%3B%20filename%3DRaidionics-MRI_GBM-ONNX-v12.zip&response-content-type=application%2Foctet-stream\n",
"Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.108.133, 185.199.109.133, 185.199.110.133, ...\n",
"Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.108.133|:443... connected.\n",
"HTTP request sent, awaiting response... 200 OK\n",
"Length: 68791937 (66M) [application/octet-stream]\n",
"Saving to: ‘Raidionics-MRI_GBM-ONNX-v12.zip’\n",
"\n",
"Raidionics-MRI_GBM- 100%[===================>] 65.60M 93.7MB/s in 0.7s \n",
"\n",
"2023-06-18 12:45:24 (93.7 MB/s) - ‘Raidionics-MRI_GBM-ONNX-v12.zip’ saved [68791937/68791937]\n",
"\n",
"Archive: Raidionics-MRI_GBM-ONNX-v12.zip\n",
" creating: MRI_GBM/\n",
" inflating: MRI_GBM/model.onnx \n",
" inflating: MRI_GBM/model_config.txt \n",
" inflating: MRI_GBM/pre_processing.ini \n",
" inflating: MRI_GBM/pipeline.json \n",
"--2023-06-18 12:45:26-- https://github.com/raidionics/Raidionics-models/releases/download/1.2.0/Raidionics-MRI_Brain-ONNX-v12.zip\n",
"Resolving github.com (github.com)... 140.82.114.3\n",
"Connecting to github.com (github.com)|140.82.114.3|:443... connected.\n",
"HTTP request sent, awaiting response... 302 Found\n",
"Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/601122702/f9880a6e-df1d-493c-9888-d61f9ba21d31?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230618%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230618T124526Z&X-Amz-Expires=300&X-Amz-Signature=ef2367736bbc9e04c288affc9c7bb5dcc23c8ee60b294efa4e8a2c6fd7e1435c&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=601122702&response-content-disposition=attachment%3B%20filename%3DRaidionics-MRI_Brain-ONNX-v12.zip&response-content-type=application%2Foctet-stream [following]\n",
"--2023-06-18 12:45:26-- https://objects.githubusercontent.com/github-production-release-asset-2e65be/601122702/f9880a6e-df1d-493c-9888-d61f9ba21d31?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230618%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230618T124526Z&X-Amz-Expires=300&X-Amz-Signature=ef2367736bbc9e04c288affc9c7bb5dcc23c8ee60b294efa4e8a2c6fd7e1435c&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=601122702&response-content-disposition=attachment%3B%20filename%3DRaidionics-MRI_Brain-ONNX-v12.zip&response-content-type=application%2Foctet-stream\n",
"Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.108.133, 185.199.109.133, 185.199.110.133, ...\n",
"Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.108.133|:443... connected.\n",
"HTTP request sent, awaiting response... 200 OK\n",
"Length: 69134888 (66M) [application/octet-stream]\n",
"Saving to: ‘Raidionics-MRI_Brain-ONNX-v12.zip’\n",
"\n",
"Raidionics-MRI_Brai 100%[===================>] 65.93M 113MB/s in 0.6s \n",
"\n",
"2023-06-18 12:45:27 (113 MB/s) - ‘Raidionics-MRI_Brain-ONNX-v12.zip’ saved [69134888/69134888]\n",
"\n",
"Archive: Raidionics-MRI_Brain-ONNX-v12.zip\n",
" creating: MRI_Brain/\n",
" inflating: MRI_Brain/model.onnx \n",
" inflating: MRI_Brain/model_config.txt \n",
" inflating: MRI_Brain/pre_processing.ini \n",
" inflating: MRI_Brain/pipeline.json \n",
"--2023-06-18 12:45:28-- https://github.com/andreped/neukit/releases/download/test-data/RegLib_C01_1.nii\n",
"Resolving github.com (github.com)... 140.82.114.3\n",
"Connecting to github.com (github.com)|140.82.114.3|:443... connected.\n",
"HTTP request sent, awaiting response... 302 Found\n",
"Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/645803120/21ce33ef-eec4-45ad-9b4e-0298626f4bac?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230618%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230618T124529Z&X-Amz-Expires=300&X-Amz-Signature=96db5c5fc0257e6ffa390c8bfefc909abbd7fd30a4b13259460f184f7a0197e0&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=645803120&response-content-disposition=attachment%3B%20filename%3DRegLib_C01_1.nii&response-content-type=application%2Foctet-stream [following]\n",
"--2023-06-18 12:45:29-- https://objects.githubusercontent.com/github-production-release-asset-2e65be/645803120/21ce33ef-eec4-45ad-9b4e-0298626f4bac?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230618%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230618T124529Z&X-Amz-Expires=300&X-Amz-Signature=96db5c5fc0257e6ffa390c8bfefc909abbd7fd30a4b13259460f184f7a0197e0&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=645803120&response-content-disposition=attachment%3B%20filename%3DRegLib_C01_1.nii&response-content-type=application%2Foctet-stream\n",
"Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.111.133, 185.199.110.133, 185.199.108.133, ...\n",
"Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.111.133|:443... connected.\n",
"HTTP request sent, awaiting response... 200 OK\n",
"Length: 14680416 (14M) [application/octet-stream]\n",
"Saving to: ‘RegLib_C01_1.nii’\n",
"\n",
"RegLib_C01_1.nii 100%[===================>] 14.00M --.-KB/s in 0.1s \n",
"\n",
"2023-06-18 12:45:29 (127 MB/s) - ‘RegLib_C01_1.nii’ saved [14680416/14680416]\n",
"\n",
"--2023-06-18 12:45:29-- https://github.com/andreped/neukit/releases/download/test-data/RegLib_C01_2.nii\n",
"Resolving github.com (github.com)... 140.82.114.3\n",
"Connecting to github.com (github.com)|140.82.114.3|:443... connected.\n",
"HTTP request sent, awaiting response... 302 Found\n",
"Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/645803120/089ac1e3-6003-4bbe-b586-842e611a1c92?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230618%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230618T124529Z&X-Amz-Expires=300&X-Amz-Signature=c5d4eb6b0e439510970b511af5a4f85cd03a9b5f3917b4085908d3454270148c&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=645803120&response-content-disposition=attachment%3B%20filename%3DRegLib_C01_2.nii&response-content-type=application%2Foctet-stream [following]\n",
"--2023-06-18 12:45:29-- https://objects.githubusercontent.com/github-production-release-asset-2e65be/645803120/089ac1e3-6003-4bbe-b586-842e611a1c92?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230618%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230618T124529Z&X-Amz-Expires=300&X-Amz-Signature=c5d4eb6b0e439510970b511af5a4f85cd03a9b5f3917b4085908d3454270148c&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=645803120&response-content-disposition=attachment%3B%20filename%3DRegLib_C01_2.nii&response-content-type=application%2Foctet-stream\n",
"Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.111.133, 185.199.109.133, 185.199.110.133, ...\n",
"Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.111.133|:443... connected.\n",
"HTTP request sent, awaiting response... 200 OK\n",
"Length: 17039712 (16M) [application/octet-stream]\n",
"Saving to: ‘RegLib_C01_2.nii’\n",
"\n",
"RegLib_C01_2.nii 100%[===================>] 16.25M --.-KB/s in 0.1s \n",
"\n",
"2023-06-18 12:45:29 (136 MB/s) - ‘RegLib_C01_2.nii’ saved [17039712/17039712]\n",
"\n"
]
}
]
},
{
"cell_type": "code",
"source": [
"# Run app\n",
"!python3.7 ./neukit/app.py --cwd ./neukit/ --share 1\n",
"\n",
"# To view the app, click on the \"public URL\" link."
],
"metadata": {
"id": "MT-WcUFAKlsF",
"colab": {
"base_uri": "https://localhost:8080/"
},
"outputId": "c2bfda1c-8b43-409f-d9c4-f8f6f24944a7"
},
"execution_count": null,
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"text": [
"Current working directory: ./neukit/\n",
"Launching demo...\n",
"/usr/local/lib/python3.7/dist-packages/gradio/components.py:164: UserWarning: Unknown style parameter: height\n",
" warnings.warn(f\"Unknown style parameter: {key}\")\n",
"/content/neukit/neukit/gui.py:118: UserWarning: You have unused kwarg parameters in Dropdown, please remove them: {'size': 'sm'}\n",
" size=\"sm\",\n",
"Caching examples at: '/content/gradio_cached_examples/8'\n",
"Running on local URL: http://0.0.0.0:7860\n",
"Running on public URL: https://d6a081c800abb552ed.gradio.live\n",
"\n",
"This share link expires in 72 hours. For free permanent hosting and GPU upgrades (NEW!), check out Spaces: https://huggingface.co/spaces\n"
]
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment