Spaces:
Running
Running
Delete Roop-unleashed-02.ipynb
Browse files- Roop-unleashed-02.ipynb +0 -1
Roop-unleashed-02.ipynb
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
{"metadata":{"kernelspec":{"language":"python","display_name":"Python 3","name":"python3"},"language_info":{"name":"python","version":"3.10.13","mimetype":"text/x-python","codemirror_mode":{"name":"ipython","version":3},"pygments_lexer":"ipython3","nbconvert_exporter":"python","file_extension":".py"},"kaggle":{"accelerator":"nvidiaTeslaT4","dataSources":[{"sourceId":6898670,"sourceType":"datasetVersion","datasetId":3954404},{"sourceId":6925544,"sourceType":"datasetVersion","datasetId":3953428}],"isInternetEnabled":true,"language":"python","sourceType":"notebook","isGpuEnabled":true}},"nbformat_minor":4,"nbformat":4,"cells":[{"cell_type":"markdown","source":"# Colab for roop-unleashed - Gradio version\nhttps://github.com/C0untFloyd/roop-unleashed\n","metadata":{"id":"G9BdiCppV6AS"}},{"cell_type":"markdown","source":"Installing & preparing requirements","metadata":{"id":"0ZYRNb0AWLLW"}},{"cell_type":"code","source":"!git clone https://github.com/C0untFloyd/roop-unleashed.git\n%cd roop-unleashed\n!mv /kaggle/input/config/config_colab.yaml config.yaml\n!pip install pip install -r requirements.txt","metadata":{"id":"t1yPuhdySqCq","execution":{"iopub.status.busy":"2024-02-18T07:07:24.058032Z","iopub.execute_input":"2024-02-18T07:07:24.058657Z","iopub.status.idle":"2024-02-18T07:10:54.230833Z","shell.execute_reply.started":"2024-02-18T07:07:24.058617Z","shell.execute_reply":"2024-02-18T07:10:54.229741Z"},"trusted":true},"execution_count":1,"outputs":[{"name":"stdout","text":"Cloning into 'roop-unleashed'...\nremote: Enumerating objects: 2585, done.\u001b[K\nremote: Total 2585 (delta 0), reused 0 (delta 0), pack-reused 2585\u001b[K\nReceiving objects: 100% (2585/2585), 103.86 MiB | 23.83 MiB/s, done.\nResolving deltas: 100% (1607/1607), done.\n/kaggle/working/roop-unleashed\nmv: cannot remove '/kaggle/input/config/config_colab.yaml': Read-only file system\nLooking in indexes: https://pypi.org/simple, https://download.pytorch.org/whl/cu118\nIgnoring torch: markers 'sys_platform == \"darwin\"' don't match your environment\nIgnoring torchvision: markers 'sys_platform == \"darwin\"' don't match your environment\nIgnoring onnxruntime: markers 'sys_platform == \"darwin\" and platform_machine != \"arm64\"' don't match your environment\nIgnoring onnxruntime-silicon: markers 'sys_platform == \"darwin\" and platform_machine == \"arm64\"' don't match your environment\nRequirement already satisfied: pip in /opt/conda/lib/python3.10/site-packages (23.3.2)\nCollecting install\n Downloading install-1.3.5-py3-none-any.whl (3.2 kB)\nCollecting numpy==1.26.2 (from -r requirements.txt (line 3))\n Downloading numpy-1.26.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (61 kB)\n\u001b[2K \u001b[90mββββββββββββββββββββββββββββββββββββββββ\u001b[0m \u001b[32m61.2/61.2 kB\u001b[0m \u001b[31m3.1 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n\u001b[?25hCollecting gradio==3.44.2 (from -r requirements.txt (line 4))\n Downloading gradio-3.44.2-py3-none-any.whl.metadata (17 kB)\nCollecting opencv-python==4.8.1.78 (from -r requirements.txt (line 5))\n Downloading opencv_python-4.8.1.78-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (19 kB)\nRequirement already satisfied: onnx==1.15.0 in /opt/conda/lib/python3.10/site-packages (from -r requirements.txt (line 6)) (1.15.0)\nCollecting insightface==0.7.3 (from -r requirements.txt (line 7))\n Downloading insightface-0.7.3.tar.gz (439 kB)\n\u001b[2K \u001b[90mββββββββββββββββββββββββββββββββββββββ\u001b[0m \u001b[32m439.5/439.5 kB\u001b[0m \u001b[31m20.7 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n\u001b[?25h Installing build dependencies ... \u001b[?25ldone\n\u001b[?25h Getting requirements to build wheel ... \u001b[?25ldone\n\u001b[?25h Installing backend dependencies ... \u001b[?25ldone\n\u001b[?25h Preparing metadata (pyproject.toml) ... \u001b[?25ldone\n\u001b[?25hCollecting psutil==5.9.6 (from -r requirements.txt (line 8))\n Downloading psutil-5.9.6-cp36-abi3-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (21 kB)\nCollecting torch==2.1.2+cu118 (from -r requirements.txt (line 9))\n Downloading https://download.pytorch.org/whl/cu118/torch-2.1.2%2Bcu118-cp310-cp310-linux_x86_64.whl (2325.9 MB)\n\u001b[2K \u001b[90mββββββββββββββββββββββββββββββββββββββββ\u001b[0m \u001b[32m2.3/2.3 GB\u001b[0m \u001b[31m360.8 kB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m00:01\u001b[0m00:01\u001b[0m\n\u001b[?25hCollecting torchvision==0.16.2+cu118 (from -r requirements.txt (line 11))\n Downloading https://download.pytorch.org/whl/cu118/torchvision-0.16.2%2Bcu118-cp310-cp310-linux_x86_64.whl (6.1 MB)\n\u001b[2K \u001b[90mββββββββββββββββββββββββββββββββββββββββ\u001b[0m \u001b[32m6.1/6.1 MB\u001b[0m \u001b[31m48.0 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m00:01\u001b[0m00:01\u001b[0m\n\u001b[?25hCollecting onnxruntime-gpu==1.16.3 (from -r requirements.txt (line 15))\n Downloading onnxruntime_gpu-1.16.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (4.3 kB)\nRequirement already satisfied: tqdm==4.66.1 in /opt/conda/lib/python3.10/site-packages (from -r requirements.txt (line 16)) (4.66.1)\nCollecting ftfy (from -r requirements.txt (line 17))\n Downloading ftfy-6.1.3-py3-none-any.whl.metadata (6.2 kB)\nRequirement already satisfied: regex in /opt/conda/lib/python3.10/site-packages (from -r requirements.txt (line 18)) (2023.12.25)\nCollecting pyvirtualcam (from -r requirements.txt (line 19))\n Downloading pyvirtualcam-0.11.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (5.3 kB)\nRequirement already satisfied: aiofiles<24.0,>=22.0 in /opt/conda/lib/python3.10/site-packages (from gradio==3.44.2->-r requirements.txt (line 4)) (22.1.0)\nRequirement already satisfied: altair<6.0,>=4.2.0 in /opt/conda/lib/python3.10/site-packages (from gradio==3.44.2->-r requirements.txt (line 4)) (5.2.0)\nRequirement already satisfied: fastapi in /opt/conda/lib/python3.10/site-packages (from gradio==3.44.2->-r requirements.txt (line 4)) (0.108.0)\nCollecting ffmpy (from gradio==3.44.2->-r requirements.txt (line 4))\n Downloading ffmpy-0.3.2.tar.gz (5.5 kB)\n Preparing metadata (setup.py) ... \u001b[?25ldone\n\u001b[?25hCollecting gradio-client==0.5.0 (from gradio==3.44.2->-r requirements.txt (line 4))\n Downloading gradio_client-0.5.0-py3-none-any.whl.metadata (7.1 kB)\nCollecting httpx (from gradio==3.44.2->-r requirements.txt (line 4))\n Downloading httpx-0.26.0-py3-none-any.whl.metadata (7.6 kB)\nRequirement already satisfied: huggingface-hub>=0.14.0 in /opt/conda/lib/python3.10/site-packages (from gradio==3.44.2->-r requirements.txt (line 4)) (0.20.3)\nRequirement already satisfied: importlib-resources<7.0,>=1.3 in /opt/conda/lib/python3.10/site-packages (from gradio==3.44.2->-r requirements.txt (line 4)) (6.1.1)\nRequirement already satisfied: jinja2<4.0 in /opt/conda/lib/python3.10/site-packages (from gradio==3.44.2->-r requirements.txt (line 4)) (3.1.2)\nRequirement already satisfied: markupsafe~=2.0 in /opt/conda/lib/python3.10/site-packages (from gradio==3.44.2->-r requirements.txt (line 4)) (2.1.3)\nRequirement already satisfied: matplotlib~=3.0 in /opt/conda/lib/python3.10/site-packages (from gradio==3.44.2->-r requirements.txt (line 4)) (3.7.4)\nRequirement already satisfied: orjson~=3.0 in /opt/conda/lib/python3.10/site-packages (from gradio==3.44.2->-r requirements.txt (line 4)) (3.9.10)\nRequirement already satisfied: packaging in /opt/conda/lib/python3.10/site-packages (from gradio==3.44.2->-r requirements.txt (line 4)) (21.3)\nRequirement already satisfied: pandas<3.0,>=1.0 in /opt/conda/lib/python3.10/site-packages (from gradio==3.44.2->-r requirements.txt (line 4)) (2.1.4)\nRequirement already satisfied: pillow<11.0,>=8.0 in /opt/conda/lib/python3.10/site-packages (from gradio==3.44.2->-r requirements.txt (line 4)) (9.5.0)\nRequirement already satisfied: pydantic!=1.8,!=1.8.1,!=2.0.0,!=2.0.1,<3.0.0,>=1.7.4 in /opt/conda/lib/python3.10/site-packages (from gradio==3.44.2->-r requirements.txt (line 4)) (2.5.3)\nRequirement already satisfied: pydub in /opt/conda/lib/python3.10/site-packages (from gradio==3.44.2->-r requirements.txt (line 4)) (0.25.1)\nCollecting python-multipart (from gradio==3.44.2->-r requirements.txt (line 4))\n Downloading python_multipart-0.0.9-py3-none-any.whl.metadata (2.5 kB)\nRequirement already satisfied: pyyaml<7.0,>=5.0 in /opt/conda/lib/python3.10/site-packages (from gradio==3.44.2->-r requirements.txt (line 4)) (6.0.1)\nRequirement already satisfied: requests~=2.0 in /opt/conda/lib/python3.10/site-packages (from gradio==3.44.2->-r requirements.txt (line 4)) (2.31.0)\nCollecting semantic-version~=2.0 (from gradio==3.44.2->-r requirements.txt (line 4))\n Downloading semantic_version-2.10.0-py2.py3-none-any.whl (15 kB)\nRequirement already satisfied: typing-extensions~=4.0 in /opt/conda/lib/python3.10/site-packages (from gradio==3.44.2->-r requirements.txt (line 4)) (4.9.0)\nRequirement already satisfied: uvicorn>=0.14.0 in /opt/conda/lib/python3.10/site-packages (from gradio==3.44.2->-r requirements.txt (line 4)) (0.25.0)\nCollecting websockets<12.0,>=10.0 (from gradio==3.44.2->-r requirements.txt (line 4))\n Downloading websockets-11.0.3-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (6.6 kB)\nRequirement already satisfied: protobuf>=3.20.2 in /opt/conda/lib/python3.10/site-packages (from onnx==1.15.0->-r requirements.txt (line 6)) (3.20.3)\nRequirement already satisfied: scipy in /opt/conda/lib/python3.10/site-packages (from insightface==0.7.3->-r requirements.txt (line 7)) (1.11.4)\nRequirement already satisfied: scikit-learn in /opt/conda/lib/python3.10/site-packages (from insightface==0.7.3->-r requirements.txt (line 7)) (1.2.2)\nRequirement already satisfied: scikit-image in /opt/conda/lib/python3.10/site-packages (from insightface==0.7.3->-r requirements.txt (line 7)) (0.22.0)\nRequirement already satisfied: easydict in /opt/conda/lib/python3.10/site-packages (from insightface==0.7.3->-r requirements.txt (line 7)) (1.11)\nRequirement already satisfied: cython in /opt/conda/lib/python3.10/site-packages (from insightface==0.7.3->-r requirements.txt (line 7)) (3.0.8)\nRequirement already satisfied: albumentations in /opt/conda/lib/python3.10/site-packages (from insightface==0.7.3->-r requirements.txt (line 7)) (1.3.1)\nRequirement already satisfied: prettytable in /opt/conda/lib/python3.10/site-packages (from insightface==0.7.3->-r requirements.txt (line 7)) (3.9.0)\nRequirement already satisfied: filelock in /opt/conda/lib/python3.10/site-packages (from torch==2.1.2+cu118->-r requirements.txt (line 9)) (3.13.1)\nRequirement already satisfied: sympy in /opt/conda/lib/python3.10/site-packages (from torch==2.1.2+cu118->-r requirements.txt (line 9)) (1.12)\nRequirement already satisfied: networkx in /opt/conda/lib/python3.10/site-packages (from torch==2.1.2+cu118->-r requirements.txt (line 9)) (3.2.1)\nRequirement already satisfied: fsspec in /opt/conda/lib/python3.10/site-packages (from torch==2.1.2+cu118->-r requirements.txt (line 9)) (2023.12.2)\nCollecting triton==2.1.0 (from torch==2.1.2+cu118->-r requirements.txt (line 9))\n Downloading https://download.pytorch.org/whl/triton-2.1.0-0-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (89.2 MB)\n\u001b[2K \u001b[90mββββββββββββββββββββββββββββββββββββββββ\u001b[0m \u001b[32m89.2/89.2 MB\u001b[0m \u001b[31m18.8 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m00:01\u001b[0m00:01\u001b[0m\n\u001b[?25hCollecting coloredlogs (from onnxruntime-gpu==1.16.3->-r requirements.txt (line 15))\n Downloading coloredlogs-15.0.1-py2.py3-none-any.whl (46 kB)\n\u001b[2K \u001b[90mββββββββββββββββββββββββββββββββββββββββ\u001b[0m \u001b[32m46.0/46.0 kB\u001b[0m \u001b[31m3.2 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n\u001b[?25hRequirement already satisfied: flatbuffers in /opt/conda/lib/python3.10/site-packages (from onnxruntime-gpu==1.16.3->-r requirements.txt (line 15)) (23.5.26)\nRequirement already satisfied: wcwidth<0.3.0,>=0.2.12 in /opt/conda/lib/python3.10/site-packages (from ftfy->-r requirements.txt (line 17)) (0.2.13)\nRequirement already satisfied: jsonschema>=3.0 in /opt/conda/lib/python3.10/site-packages (from altair<6.0,>=4.2.0->gradio==3.44.2->-r requirements.txt (line 4)) (4.20.0)\nRequirement already satisfied: toolz in /opt/conda/lib/python3.10/site-packages (from altair<6.0,>=4.2.0->gradio==3.44.2->-r requirements.txt (line 4)) (0.12.0)\nRequirement already satisfied: contourpy>=1.0.1 in /opt/conda/lib/python3.10/site-packages (from matplotlib~=3.0->gradio==3.44.2->-r requirements.txt (line 4)) (1.2.0)\nRequirement already satisfied: cycler>=0.10 in /opt/conda/lib/python3.10/site-packages (from matplotlib~=3.0->gradio==3.44.2->-r requirements.txt (line 4)) (0.12.1)\nRequirement already satisfied: fonttools>=4.22.0 in /opt/conda/lib/python3.10/site-packages (from matplotlib~=3.0->gradio==3.44.2->-r requirements.txt (line 4)) (4.47.0)\nRequirement already satisfied: kiwisolver>=1.0.1 in /opt/conda/lib/python3.10/site-packages (from matplotlib~=3.0->gradio==3.44.2->-r requirements.txt (line 4)) (1.4.5)\nRequirement already satisfied: pyparsing>=2.3.1 in /opt/conda/lib/python3.10/site-packages (from matplotlib~=3.0->gradio==3.44.2->-r requirements.txt (line 4)) (3.1.1)\nRequirement already satisfied: python-dateutil>=2.7 in /opt/conda/lib/python3.10/site-packages (from matplotlib~=3.0->gradio==3.44.2->-r requirements.txt (line 4)) (2.8.2)\nRequirement already satisfied: pytz>=2020.1 in /opt/conda/lib/python3.10/site-packages (from pandas<3.0,>=1.0->gradio==3.44.2->-r requirements.txt (line 4)) (2023.3.post1)\nRequirement already satisfied: tzdata>=2022.1 in /opt/conda/lib/python3.10/site-packages (from pandas<3.0,>=1.0->gradio==3.44.2->-r requirements.txt (line 4)) (2023.4)\nRequirement already satisfied: annotated-types>=0.4.0 in /opt/conda/lib/python3.10/site-packages (from pydantic!=1.8,!=1.8.1,!=2.0.0,!=2.0.1,<3.0.0,>=1.7.4->gradio==3.44.2->-r requirements.txt (line 4)) (0.6.0)\nRequirement already satisfied: pydantic-core==2.14.6 in /opt/conda/lib/python3.10/site-packages (from pydantic!=1.8,!=1.8.1,!=2.0.0,!=2.0.1,<3.0.0,>=1.7.4->gradio==3.44.2->-r requirements.txt (line 4)) (2.14.6)\nRequirement already satisfied: charset-normalizer<4,>=2 in /opt/conda/lib/python3.10/site-packages (from requests~=2.0->gradio==3.44.2->-r requirements.txt (line 4)) (3.3.2)\nRequirement already satisfied: idna<4,>=2.5 in /opt/conda/lib/python3.10/site-packages (from requests~=2.0->gradio==3.44.2->-r requirements.txt (line 4)) (3.6)\nRequirement already satisfied: urllib3<3,>=1.21.1 in /opt/conda/lib/python3.10/site-packages (from requests~=2.0->gradio==3.44.2->-r requirements.txt (line 4)) (1.26.18)\nRequirement already satisfied: certifi>=2017.4.17 in /opt/conda/lib/python3.10/site-packages (from requests~=2.0->gradio==3.44.2->-r requirements.txt (line 4)) (2023.11.17)\nRequirement already satisfied: click>=7.0 in /opt/conda/lib/python3.10/site-packages (from uvicorn>=0.14.0->gradio==3.44.2->-r requirements.txt (line 4)) (8.1.7)\nRequirement already satisfied: h11>=0.8 in /opt/conda/lib/python3.10/site-packages (from uvicorn>=0.14.0->gradio==3.44.2->-r requirements.txt (line 4)) (0.14.0)\nRequirement already satisfied: qudida>=0.0.4 in /opt/conda/lib/python3.10/site-packages (from albumentations->insightface==0.7.3->-r requirements.txt (line 7)) (0.0.4)\nRequirement already satisfied: opencv-python-headless>=4.1.1 in /opt/conda/lib/python3.10/site-packages (from albumentations->insightface==0.7.3->-r requirements.txt (line 7)) (4.9.0.80)\nRequirement already satisfied: imageio>=2.27 in /opt/conda/lib/python3.10/site-packages (from scikit-image->insightface==0.7.3->-r requirements.txt (line 7)) (2.33.1)\nRequirement already satisfied: tifffile>=2022.8.12 in /opt/conda/lib/python3.10/site-packages (from scikit-image->insightface==0.7.3->-r requirements.txt (line 7)) (2023.12.9)\nRequirement already satisfied: lazy_loader>=0.3 in /opt/conda/lib/python3.10/site-packages (from scikit-image->insightface==0.7.3->-r requirements.txt (line 7)) (0.3)\nCollecting humanfriendly>=9.1 (from coloredlogs->onnxruntime-gpu==1.16.3->-r requirements.txt (line 15))\n Downloading humanfriendly-10.0-py2.py3-none-any.whl (86 kB)\n\u001b[2K \u001b[90mββββββββββββββββββββββββββββββββββββββββ\u001b[0m \u001b[32m86.8/86.8 kB\u001b[0m \u001b[31m6.2 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n\u001b[?25hRequirement already satisfied: starlette<0.33.0,>=0.29.0 in /opt/conda/lib/python3.10/site-packages (from fastapi->gradio==3.44.2->-r requirements.txt (line 4)) (0.32.0.post1)\nRequirement already satisfied: anyio in /opt/conda/lib/python3.10/site-packages (from httpx->gradio==3.44.2->-r requirements.txt (line 4)) (4.2.0)\nCollecting httpcore==1.* (from httpx->gradio==3.44.2->-r requirements.txt (line 4))\n Downloading httpcore-1.0.3-py3-none-any.whl.metadata (20 kB)\nRequirement already satisfied: sniffio in /opt/conda/lib/python3.10/site-packages (from httpx->gradio==3.44.2->-r requirements.txt (line 4)) (1.3.0)\nRequirement already satisfied: joblib>=1.1.1 in /opt/conda/lib/python3.10/site-packages (from scikit-learn->insightface==0.7.3->-r requirements.txt (line 7)) (1.3.2)\nRequirement already satisfied: threadpoolctl>=2.0.0 in /opt/conda/lib/python3.10/site-packages (from scikit-learn->insightface==0.7.3->-r requirements.txt (line 7)) (3.2.0)\nRequirement already satisfied: mpmath>=0.19 in /opt/conda/lib/python3.10/site-packages (from sympy->torch==2.1.2+cu118->-r requirements.txt (line 9)) (1.3.0)\nRequirement already satisfied: attrs>=22.2.0 in /opt/conda/lib/python3.10/site-packages (from jsonschema>=3.0->altair<6.0,>=4.2.0->gradio==3.44.2->-r requirements.txt (line 4)) (23.2.0)\nRequirement already satisfied: jsonschema-specifications>=2023.03.6 in /opt/conda/lib/python3.10/site-packages (from jsonschema>=3.0->altair<6.0,>=4.2.0->gradio==3.44.2->-r requirements.txt (line 4)) (2023.12.1)\nRequirement already satisfied: referencing>=0.28.4 in /opt/conda/lib/python3.10/site-packages (from jsonschema>=3.0->altair<6.0,>=4.2.0->gradio==3.44.2->-r requirements.txt (line 4)) (0.32.1)\nRequirement already satisfied: rpds-py>=0.7.1 in /opt/conda/lib/python3.10/site-packages (from jsonschema>=3.0->altair<6.0,>=4.2.0->gradio==3.44.2->-r requirements.txt (line 4)) (0.16.2)\nRequirement already satisfied: six>=1.5 in /opt/conda/lib/python3.10/site-packages (from python-dateutil>=2.7->matplotlib~=3.0->gradio==3.44.2->-r requirements.txt (line 4)) (1.16.0)\nRequirement already satisfied: exceptiongroup>=1.0.2 in /opt/conda/lib/python3.10/site-packages (from anyio->httpx->gradio==3.44.2->-r requirements.txt (line 4)) (1.2.0)\nDownloading numpy-1.26.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (18.2 MB)\n\u001b[2K \u001b[90mββββββββββββββββββββββββββββββββββββββββ\u001b[0m \u001b[32m18.2/18.2 MB\u001b[0m \u001b[31m84.5 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m:00:01\u001b[0m00:01\u001b[0m\n\u001b[?25hDownloading gradio-3.44.2-py3-none-any.whl (20.2 MB)\n\u001b[2K \u001b[90mββββββββββββββββββββββββββββββββββββββββ\u001b[0m \u001b[32m20.2/20.2 MB\u001b[0m \u001b[31m68.0 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m:00:01\u001b[0m00:01\u001b[0m\n\u001b[?25hDownloading opencv_python-4.8.1.78-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (61.7 MB)\n\u001b[2K \u001b[90mββββββββββββββββββββββββββββββββββββββββ\u001b[0m \u001b[32m61.7/61.7 MB\u001b[0m \u001b[31m26.5 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m:00:01\u001b[0m00:01\u001b[0m\n\u001b[?25hDownloading psutil-5.9.6-cp36-abi3-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (283 kB)\n\u001b[2K \u001b[90mββββββββββββββββββββββββββββββββββββββββ\u001b[0m \u001b[32m283.6/283.6 kB\u001b[0m \u001b[31m19.1 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n\u001b[?25hDownloading onnxruntime_gpu-1.16.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (157.1 MB)\n\u001b[2K \u001b[90mββββββββββββββββββββββββββββββββββββββββ\u001b[0m \u001b[32m157.1/157.1 MB\u001b[0m \u001b[31m10.4 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m00:01\u001b[0m00:01\u001b[0m\n\u001b[?25hDownloading gradio_client-0.5.0-py3-none-any.whl (298 kB)\n\u001b[2K \u001b[90mββββββββββββββββββββββββββββββββββββββββ\u001b[0m \u001b[32m298.2/298.2 kB\u001b[0m \u001b[31m18.9 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n\u001b[?25hDownloading ftfy-6.1.3-py3-none-any.whl (53 kB)\n\u001b[2K \u001b[90mββββββββββββββββββββββββββββββββββββββββ\u001b[0m \u001b[32m53.4/53.4 kB\u001b[0m \u001b[31m3.2 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n\u001b[?25hDownloading pyvirtualcam-0.11.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (141 kB)\n\u001b[2K \u001b[90mββββββββββββββββββββββββββββββββββββββββ\u001b[0m \u001b[32m141.4/141.4 kB\u001b[0m \u001b[31m9.1 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n\u001b[?25hDownloading websockets-11.0.3-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (129 kB)\n\u001b[2K \u001b[90mββββββββββββββββββββββββββββββββββββββββ\u001b[0m \u001b[32m129.9/129.9 kB\u001b[0m \u001b[31m8.3 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n\u001b[?25hDownloading httpx-0.26.0-py3-none-any.whl (75 kB)\n\u001b[2K \u001b[90mββββββββββββββββββββββββββββββββββββββββ\u001b[0m \u001b[32m75.9/75.9 kB\u001b[0m \u001b[31m5.1 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n\u001b[?25hDownloading httpcore-1.0.3-py3-none-any.whl (77 kB)\n\u001b[2K \u001b[90mββββββββββββββββββββββββββββββββββββββββ\u001b[0m \u001b[32m77.0/77.0 kB\u001b[0m \u001b[31m5.3 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n\u001b[?25hDownloading python_multipart-0.0.9-py3-none-any.whl (22 kB)\nBuilding wheels for collected packages: insightface, ffmpy\n Building wheel for insightface (pyproject.toml) ... \u001b[?25ldone\n\u001b[?25h Created wheel for insightface: filename=insightface-0.7.3-cp310-cp310-linux_x86_64.whl size=882800 sha256=098b386b9af2956e1469d8a7bef65a5c6011183e9fa1a6fa5462dfdd1010da73\n Stored in directory: /root/.cache/pip/wheels/e3/d0/80/e3773fb8b6d1cca87ea1d33d9b1f20a223a6493c896da249b5\n Building wheel for ffmpy (setup.py) ... \u001b[?25ldone\n\u001b[?25h Created wheel for ffmpy: filename=ffmpy-0.3.2-py3-none-any.whl size=5584 sha256=6c2aa7c5d08e005ccb40f9adccd93a759aa017980c7d40afc15b3ad915630d56\n Stored in directory: /root/.cache/pip/wheels/bd/65/9a/671fc6dcde07d4418df0c592f8df512b26d7a0029c2a23dd81\nSuccessfully built insightface ffmpy\nInstalling collected packages: ffmpy, websockets, triton, semantic-version, python-multipart, psutil, numpy, install, humanfriendly, httpcore, ftfy, torch, pyvirtualcam, opencv-python, httpx, coloredlogs, torchvision, onnxruntime-gpu, gradio-client, gradio, insightface\n Attempting uninstall: websockets\n Found existing installation: websockets 12.0\n Uninstalling websockets-12.0:\n Successfully uninstalled websockets-12.0\n Attempting uninstall: psutil\n Found existing installation: psutil 5.9.3\n Uninstalling psutil-5.9.3:\n Successfully uninstalled psutil-5.9.3\n Attempting uninstall: numpy\n Found existing installation: numpy 1.24.4\n Uninstalling numpy-1.24.4:\n Successfully uninstalled numpy-1.24.4\n Attempting uninstall: torch\n Found existing installation: torch 2.1.2\n Uninstalling torch-2.1.2:\n Successfully uninstalled torch-2.1.2\n Attempting uninstall: opencv-python\n Found existing installation: opencv-python 4.9.0.80\n Uninstalling opencv-python-4.9.0.80:\n Successfully uninstalled opencv-python-4.9.0.80\n Attempting uninstall: torchvision\n Found existing installation: torchvision 0.16.2\n Uninstalling torchvision-0.16.2:\n Successfully uninstalled torchvision-0.16.2\n\u001b[31mERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.\ncudf 23.8.0 requires cubinlinker, which is not installed.\ncudf 23.8.0 requires cupy-cuda11x>=12.0.0, which is not installed.\ncudf 23.8.0 requires ptxcompiler, which is not installed.\ncuml 23.8.0 requires cupy-cuda11x>=12.0.0, which is not installed.\ndask-cudf 23.8.0 requires cupy-cuda11x>=12.0.0, which is not installed.\napache-beam 2.46.0 requires dill<0.3.2,>=0.3.1.1, but you have dill 0.3.7 which is incompatible.\napache-beam 2.46.0 requires numpy<1.25.0,>=1.14.3, but you have numpy 1.26.2 which is incompatible.\napache-beam 2.46.0 requires pyarrow<10.0.0,>=3.0.0, but you have pyarrow 11.0.0 which is incompatible.\nbeatrix-jupyterlab 2023.128.151533 requires jupyterlab~=3.6.0, but you have jupyterlab 4.0.11 which is incompatible.\ncudf 23.8.0 requires cuda-python<12.0a0,>=11.7.1, but you have cuda-python 12.3.0 which is incompatible.\ncudf 23.8.0 requires pandas<1.6.0dev0,>=1.3, but you have pandas 2.1.4 which is incompatible.\ncudf 23.8.0 requires protobuf<5,>=4.21, but you have protobuf 3.20.3 which is incompatible.\ncuml 23.8.0 requires dask==2023.7.1, but you have dask 2024.1.0 which is incompatible.\ncuml 23.8.0 requires distributed==2023.7.1, but you have distributed 2024.1.0 which is incompatible.\ndask-cuda 23.8.0 requires dask==2023.7.1, but you have dask 2024.1.0 which is incompatible.\ndask-cuda 23.8.0 requires distributed==2023.7.1, but you have distributed 2024.1.0 which is incompatible.\ndask-cuda 23.8.0 requires pandas<1.6.0dev0,>=1.3, but you have pandas 2.1.4 which is incompatible.\ndask-cudf 23.8.0 requires dask==2023.7.1, but you have dask 2024.1.0 which is incompatible.\ndask-cudf 23.8.0 requires distributed==2023.7.1, but you have distributed 2024.1.0 which is incompatible.\ndask-cudf 23.8.0 requires pandas<1.6.0dev0,>=1.3, but you have pandas 2.1.4 which is incompatible.\njupyterlab 4.0.11 requires jupyter-lsp>=2.0.0, but you have jupyter-lsp 1.5.1 which is incompatible.\njupyterlab-lsp 5.0.2 requires jupyter-lsp>=2.0.0, but you have jupyter-lsp 1.5.1 which is incompatible.\nlibpysal 4.9.2 requires packaging>=22, but you have packaging 21.3 which is incompatible.\nlibpysal 4.9.2 requires shapely>=2.0.1, but you have shapely 1.8.5.post1 which is incompatible.\nmomepy 0.7.0 requires shapely>=2, but you have shapely 1.8.5.post1 which is incompatible.\nosmnx 1.8.1 requires shapely>=2.0, but you have shapely 1.8.5.post1 which is incompatible.\npylibraft 23.8.0 requires cuda-python<12.0a0,>=11.7.1, but you have cuda-python 12.3.0 which is incompatible.\nraft-dask 23.8.0 requires dask==2023.7.1, but you have dask 2024.1.0 which is incompatible.\nraft-dask 23.8.0 requires distributed==2023.7.1, but you have distributed 2024.1.0 which is incompatible.\nrmm 23.8.0 requires cuda-python<12.0a0,>=11.7.1, but you have cuda-python 12.3.0 which is incompatible.\nspopt 0.6.0 requires shapely>=2.0.1, but you have shapely 1.8.5.post1 which is incompatible.\ntensorflowjs 4.16.0 requires packaging~=23.1, but you have packaging 21.3 which is incompatible.\nwoodwork 0.27.0 requires numpy<1.25.0,>=1.22.0, but you have numpy 1.26.2 which is incompatible.\nxarray 2024.1.0 requires packaging>=22, but you have packaging 21.3 which is incompatible.\nydata-profiling 4.6.4 requires numpy<1.26,>=1.16.0, but you have numpy 1.26.2 which is incompatible.\u001b[0m\u001b[31m\n\u001b[0mSuccessfully installed coloredlogs-15.0.1 ffmpy-0.3.2 ftfy-6.1.3 gradio-3.44.2 gradio-client-0.5.0 httpcore-1.0.3 httpx-0.26.0 humanfriendly-10.0 insightface-0.7.3 install-1.3.5 numpy-1.26.2 onnxruntime-gpu-1.16.3 opencv-python-4.8.1.78 psutil-5.9.6 python-multipart-0.0.9 pyvirtualcam-0.11.1 semantic-version-2.10.0 torch-2.1.2+cu118 torchvision-0.16.2+cu118 triton-2.1.0 websockets-11.0.3\n","output_type":"stream"}]},{"cell_type":"code","source":"!apt-get -y update\n!apt-get -y install cuda-toolkit-11-8\nimport os\nos.environ[\"LD_LIBRARY_PATH\"] += \":\" + \"/usr/local/cuda-11/lib64\"\nos.environ[\"LD_LIBRARY_PATH\"] += \":\" + \"/usr/local/cuda-11.8/lib64\"","metadata":{"execution":{"iopub.status.busy":"2024-02-18T07:16:40.516158Z","iopub.execute_input":"2024-02-18T07:16:40.516996Z","iopub.status.idle":"2024-02-18T07:20:34.232799Z","shell.execute_reply.started":"2024-02-18T07:16:40.516961Z","shell.execute_reply":"2024-02-18T07:20:34.231857Z"},"trusted":true},"execution_count":3,"outputs":[{"name":"stdout","text":"Hit:1 http://archive.ubuntu.com/ubuntu focal InRelease\nGet:2 http://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB] \nGet:3 https://packages.cloud.google.com/apt gcsfuse-focal InRelease [1225 B] \nGet:4 https://packages.cloud.google.com/apt cloud-sdk InRelease [6361 B] \nHit:5 http://archive.ubuntu.com/ubuntu focal-backports InRelease \nGet:6 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64 InRelease [1581 B]\nGet:7 https://packages.cloud.google.com/apt google-fast-socket InRelease [5015 B]\nGet:8 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]\nGet:9 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [1473 kB]\nGet:10 http://archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 Packages [32.4 kB]\nGet:11 http://archive.ubuntu.com/ubuntu focal-updates/restricted amd64 Packages [3413 kB]\nGet:12 https://packages.cloud.google.com/apt cloud-sdk/main amd64 Packages [601 kB]\nGet:13 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [3853 kB]\nGet:14 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64 Packages [1352 kB]\nGet:15 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [3375 kB]\nGet:16 http://security.ubuntu.com/ubuntu focal-security/restricted amd64 Packages [3263 kB]\nGet:17 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages [1176 kB]\nFetched 18.8 MB in 2s (9166 kB/s) \nReading package lists... Done\nReading package lists... Done\nBuilding dependency tree \nReading state information... Done\nThe following additional packages will be installed:\n cuda-cccl-11-8 cuda-command-line-tools-11-8 cuda-compiler-11-8\n cuda-cudart-11-8 cuda-cudart-dev-11-8 cuda-cuobjdump-11-8 cuda-cupti-11-8\n cuda-cupti-dev-11-8 cuda-cuxxfilt-11-8 cuda-documentation-11-8\n cuda-driver-dev-11-8 cuda-gdb-11-8 cuda-libraries-11-8\n cuda-libraries-dev-11-8 cuda-memcheck-11-8 cuda-nsight-11-8\n cuda-nsight-compute-11-8 cuda-nsight-systems-11-8 cuda-nvcc-11-8\n cuda-nvdisasm-11-8 cuda-nvml-dev-11-8 cuda-nvprof-11-8 cuda-nvprune-11-8\n cuda-nvrtc-11-8 cuda-nvrtc-dev-11-8 cuda-nvtx-11-8 cuda-nvvp-11-8\n cuda-profiler-api-11-8 cuda-sanitizer-11-8 cuda-toolkit-11-8-config-common\n cuda-toolkit-11-config-common cuda-tools-11-8 cuda-visual-tools-11-8\n gds-tools-11-8 libcublas-11-8 libcublas-dev-11-8 libcufft-11-8\n libcufft-dev-11-8 libcufile-11-8 libcufile-dev-11-8 libcurand-11-8\n libcurand-dev-11-8 libcusolver-11-8 libcusolver-dev-11-8 libcusparse-11-8\n libcusparse-dev-11-8 libnpp-11-8 libnpp-dev-11-8 libnvjpeg-11-8\n libnvjpeg-dev-11-8 libxcb-icccm4 libxcb-image0 libxcb-keysyms1\n libxcb-render-util0 libxcb-util1 libxcb-xinerama0 libxcb-xinput0 libxcb-xkb1\n libxkbcommon-x11-0 nsight-compute-2022.3.0 nsight-systems-2022.4.2\nThe following NEW packages will be installed:\n cuda-cccl-11-8 cuda-command-line-tools-11-8 cuda-compiler-11-8\n cuda-cudart-11-8 cuda-cudart-dev-11-8 cuda-cuobjdump-11-8 cuda-cupti-11-8\n cuda-cupti-dev-11-8 cuda-cuxxfilt-11-8 cuda-documentation-11-8\n cuda-driver-dev-11-8 cuda-gdb-11-8 cuda-libraries-11-8\n cuda-libraries-dev-11-8 cuda-memcheck-11-8 cuda-nsight-11-8\n cuda-nsight-compute-11-8 cuda-nsight-systems-11-8 cuda-nvcc-11-8\n cuda-nvdisasm-11-8 cuda-nvml-dev-11-8 cuda-nvprof-11-8 cuda-nvprune-11-8\n cuda-nvrtc-11-8 cuda-nvrtc-dev-11-8 cuda-nvtx-11-8 cuda-nvvp-11-8\n cuda-profiler-api-11-8 cuda-sanitizer-11-8 cuda-toolkit-11-8\n cuda-toolkit-11-8-config-common cuda-toolkit-11-config-common\n cuda-tools-11-8 cuda-visual-tools-11-8 gds-tools-11-8 libcublas-11-8\n libcublas-dev-11-8 libcufft-11-8 libcufft-dev-11-8 libcufile-11-8\n libcufile-dev-11-8 libcurand-11-8 libcurand-dev-11-8 libcusolver-11-8\n libcusolver-dev-11-8 libcusparse-11-8 libcusparse-dev-11-8 libnpp-11-8\n libnpp-dev-11-8 libnvjpeg-11-8 libnvjpeg-dev-11-8 libxcb-icccm4\n libxcb-image0 libxcb-keysyms1 libxcb-render-util0 libxcb-util1\n libxcb-xinerama0 libxcb-xinput0 libxcb-xkb1 libxkbcommon-x11-0\n nsight-compute-2022.3.0 nsight-systems-2022.4.2\n0 upgraded, 62 newly installed, 0 to remove and 40 not upgraded.\nNeed to get 2711 MB of archives.\nAfter this operation, 6649 MB of additional disk space will be used.\nGet:1 http://archive.ubuntu.com/ubuntu focal/main amd64 libxcb-xinerama0 amd64 1.14-2 [5260 B]\nGet:2 http://archive.ubuntu.com/ubuntu focal/main amd64 libxcb-icccm4 amd64 0.4.1-1.1 [10.8 kB]\nGet:3 http://archive.ubuntu.com/ubuntu focal/main amd64 libxcb-util1 amd64 0.4.0-0ubuntu3 [11.2 kB]\nGet:4 http://archive.ubuntu.com/ubuntu focal/main amd64 libxcb-image0 amd64 0.4.0-1build1 [12.3 kB]\nGet:5 http://archive.ubuntu.com/ubuntu focal/main amd64 libxcb-keysyms1 amd64 0.4.0-1build1 [8452 B]\nGet:6 http://archive.ubuntu.com/ubuntu focal/main amd64 libxcb-render-util0 amd64 0.3.9-1build1 [9912 B]\nGet:7 http://archive.ubuntu.com/ubuntu focal/main amd64 libxcb-xkb1 amd64 1.14-2 [29.6 kB]\nGet:8 http://archive.ubuntu.com/ubuntu focal/main amd64 libxkbcommon-x11-0 amd64 0.10.0-1 [13.4 kB]\nGet:9 http://archive.ubuntu.com/ubuntu focal/main amd64 libxcb-xinput0 amd64 1.14-2 [29.3 kB]\nGet:10 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64 cuda-cccl-11-8 11.8.89-1 [1040 kB]\nGet:11 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64 cuda-cupti-11-8 11.8.87-1 [15.4 MB]\nGet:12 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64 cuda-cupti-dev-11-8 11.8.87-1 [2552 kB]\nGet:13 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64 cuda-nvdisasm-11-8 11.8.86-1 [50.8 MB]\nGet:14 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64 cuda-cuobjdump-11-8 11.8.86-1 [165 kB]\nGet:15 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64 cuda-gdb-11-8 11.8.86-1 [4138 kB]\nGet:16 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64 cuda-memcheck-11-8 11.8.86-1 [142 kB]\nGet:17 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64 cuda-nvprof-11-8 11.8.87-1 [1959 kB]\nGet:18 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64 cuda-nvtx-11-8 11.8.86-1 [51.3 kB]\nGet:19 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64 cuda-sanitizer-11-8 11.8.86-1 [8784 kB]\nGet:20 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64 cuda-command-line-tools-11-8 11.8.0-1 [2470 B]\nGet:21 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64 cuda-cuxxfilt-11-8 11.8.86-1 [189 kB]\nGet:22 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64 cuda-toolkit-11-config-common 11.8.89-1 [16.4 kB]\nGet:23 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64 cuda-toolkit-11-8-config-common 11.8.89-1 [16.3 kB]\nGet:24 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64 cuda-cudart-11-8 11.8.89-1 [165 kB]\nGet:25 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64 cuda-driver-dev-11-8 11.8.89-1 [27.3 kB]\nGet:26 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64 cuda-cudart-dev-11-8 11.8.89-1 [820 kB]\nGet:27 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64 cuda-nvcc-11-8 11.8.89-1 [43.5 MB]\nGet:28 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64 cuda-nvprune-11-8 11.8.86-1 [58.1 kB]\nGet:29 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64 cuda-compiler-11-8 11.8.0-1 [2430 B]\nGet:30 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64 cuda-documentation-11-8 11.8.86-1 [49.8 kB]\nGet:31 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64 cuda-nvrtc-11-8 11.8.89-1 [16.4 MB]\nGet:32 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64 libcublas-11-8 11.11.3.6-1 [248 MB]\nGet:33 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64 libcufft-11-8 10.9.0.58-1 [94.2 MB]\nGet:34 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64 libcufile-11-8 1.4.0.31-1 [474 kB]\nGet:35 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64 libcurand-11-8 10.3.0.86-1 [42.2 MB]\nGet:36 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64 libcusolver-11-8 11.4.1.48-1 [52.3 MB]\nGet:37 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64 libcusparse-11-8 11.7.5.86-1 [116 MB]\nGet:38 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64 libnpp-11-8 11.8.0.86-1 [102 MB]\nGet:39 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64 libnvjpeg-11-8 11.9.0.86-1 [1865 kB]\nGet:40 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64 cuda-libraries-11-8 11.8.0-1 [2514 B]\nGet:41 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64 cuda-profiler-api-11-8 11.8.86-1 [18.5 kB]\nGet:42 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64 cuda-nvrtc-dev-11-8 11.8.89-1 [13.5 MB]\nGet:43 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64 libcublas-dev-11-8 11.11.3.6-1 [269 MB]\nGet:44 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64 libcufft-dev-11-8 10.9.0.58-1 [189 MB]\nGet:45 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64 libcufile-dev-11-8 1.4.0.31-1 [1062 kB]\nGet:46 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64 libcurand-dev-11-8 10.3.0.86-1 [42.9 MB]\nGet:47 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64 libcusolver-dev-11-8 11.4.1.48-1 [35.7 MB]\nGet:48 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64 libcusparse-dev-11-8 11.7.5.86-1 [116 MB]\nGet:49 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64 libnpp-dev-11-8 11.8.0.86-1 [100 MB]\nGet:50 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64 libnvjpeg-dev-11-8 11.9.0.86-1 [1536 kB]\nGet:51 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64 cuda-libraries-dev-11-8 11.8.0-1 [2552 B]\nGet:52 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64 cuda-nsight-11-8 11.8.86-1 [119 MB]\nGet:53 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64 nsight-compute-2022.3.0 2022.3.0.22-1 [580 MB]\nGet:54 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64 cuda-nsight-compute-11-8 11.8.0-1 [3790 B]\nGet:55 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64 nsight-systems-2022.4.2 2022.4.2.50-32196742v0 [286 MB]\nGet:56 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64 cuda-nsight-systems-11-8 11.8.0-1 [3310 B]\nGet:57 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64 cuda-nvml-dev-11-8 11.8.86-1 [81.4 kB]\nGet:58 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64 cuda-nvvp-11-8 11.8.87-1 [114 MB]\nGet:59 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64 cuda-visual-tools-11-8 11.8.0-1 [2870 B]\nGet:60 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64 gds-tools-11-8 1.4.0.31-1 [38.7 MB]\nGet:61 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64 cuda-tools-11-8 11.8.0-1 [2390 B]\nGet:62 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64 cuda-toolkit-11-8 11.8.0-1 [3368 B]\nFetched 2711 MB in 37s (73.0 MB/s) \nExtracting templates from packages: 100%\nSelecting previously unselected package cuda-cccl-11-8.\n(Reading database ... 113807 files and directories currently installed.)\nPreparing to unpack .../00-cuda-cccl-11-8_11.8.89-1_amd64.deb ...\nUnpacking cuda-cccl-11-8 (11.8.89-1) ...\nSelecting previously unselected package cuda-cupti-11-8.\nPreparing to unpack .../01-cuda-cupti-11-8_11.8.87-1_amd64.deb ...\nUnpacking cuda-cupti-11-8 (11.8.87-1) ...\nSelecting previously unselected package cuda-cupti-dev-11-8.\nPreparing to unpack .../02-cuda-cupti-dev-11-8_11.8.87-1_amd64.deb ...\nUnpacking cuda-cupti-dev-11-8 (11.8.87-1) ...\nSelecting previously unselected package cuda-nvdisasm-11-8.\nPreparing to unpack .../03-cuda-nvdisasm-11-8_11.8.86-1_amd64.deb ...\nUnpacking cuda-nvdisasm-11-8 (11.8.86-1) ...\nSelecting previously unselected package cuda-cuobjdump-11-8.\nPreparing to unpack .../04-cuda-cuobjdump-11-8_11.8.86-1_amd64.deb ...\nUnpacking cuda-cuobjdump-11-8 (11.8.86-1) ...\nSelecting previously unselected package cuda-gdb-11-8.\nPreparing to unpack .../05-cuda-gdb-11-8_11.8.86-1_amd64.deb ...\nUnpacking cuda-gdb-11-8 (11.8.86-1) ...\nSelecting previously unselected package cuda-memcheck-11-8.\nPreparing to unpack .../06-cuda-memcheck-11-8_11.8.86-1_amd64.deb ...\nUnpacking cuda-memcheck-11-8 (11.8.86-1) ...\nSelecting previously unselected package cuda-nvprof-11-8.\nPreparing to unpack .../07-cuda-nvprof-11-8_11.8.87-1_amd64.deb ...\nUnpacking cuda-nvprof-11-8 (11.8.87-1) ...\nSelecting previously unselected package cuda-nvtx-11-8.\nPreparing to unpack .../08-cuda-nvtx-11-8_11.8.86-1_amd64.deb ...\nUnpacking cuda-nvtx-11-8 (11.8.86-1) ...\nSelecting previously unselected package cuda-sanitizer-11-8.\nPreparing to unpack .../09-cuda-sanitizer-11-8_11.8.86-1_amd64.deb ...\nUnpacking cuda-sanitizer-11-8 (11.8.86-1) ...\nSelecting previously unselected package cuda-command-line-tools-11-8.\nPreparing to unpack .../10-cuda-command-line-tools-11-8_11.8.0-1_amd64.deb ...\nUnpacking cuda-command-line-tools-11-8 (11.8.0-1) ...\nSelecting previously unselected package cuda-cuxxfilt-11-8.\nPreparing to unpack .../11-cuda-cuxxfilt-11-8_11.8.86-1_amd64.deb ...\nUnpacking cuda-cuxxfilt-11-8 (11.8.86-1) ...\nSelecting previously unselected package cuda-toolkit-11-config-common.\nPreparing to unpack .../12-cuda-toolkit-11-config-common_11.8.89-1_all.deb ...\nUnpacking cuda-toolkit-11-config-common (11.8.89-1) ...\nSelecting previously unselected package cuda-toolkit-11-8-config-common.\nPreparing to unpack .../13-cuda-toolkit-11-8-config-common_11.8.89-1_all.deb ...\nUnpacking cuda-toolkit-11-8-config-common (11.8.89-1) ...\nSelecting previously unselected package cuda-cudart-11-8.\nPreparing to unpack .../14-cuda-cudart-11-8_11.8.89-1_amd64.deb ...\nUnpacking cuda-cudart-11-8 (11.8.89-1) ...\nSelecting previously unselected package cuda-driver-dev-11-8.\nPreparing to unpack .../15-cuda-driver-dev-11-8_11.8.89-1_amd64.deb ...\nUnpacking cuda-driver-dev-11-8 (11.8.89-1) ...\nSelecting previously unselected package cuda-cudart-dev-11-8.\nPreparing to unpack .../16-cuda-cudart-dev-11-8_11.8.89-1_amd64.deb ...\nUnpacking cuda-cudart-dev-11-8 (11.8.89-1) ...\nSelecting previously unselected package cuda-nvcc-11-8.\nPreparing to unpack .../17-cuda-nvcc-11-8_11.8.89-1_amd64.deb ...\nUnpacking cuda-nvcc-11-8 (11.8.89-1) ...\nSelecting previously unselected package cuda-nvprune-11-8.\nPreparing to unpack .../18-cuda-nvprune-11-8_11.8.86-1_amd64.deb ...\nUnpacking cuda-nvprune-11-8 (11.8.86-1) ...\nSelecting previously unselected package cuda-compiler-11-8.\nPreparing to unpack .../19-cuda-compiler-11-8_11.8.0-1_amd64.deb ...\nUnpacking cuda-compiler-11-8 (11.8.0-1) ...\nSelecting previously unselected package cuda-documentation-11-8.\nPreparing to unpack .../20-cuda-documentation-11-8_11.8.86-1_amd64.deb ...\nUnpacking cuda-documentation-11-8 (11.8.86-1) ...\nSelecting previously unselected package cuda-nvrtc-11-8.\nPreparing to unpack .../21-cuda-nvrtc-11-8_11.8.89-1_amd64.deb ...\nUnpacking cuda-nvrtc-11-8 (11.8.89-1) ...\nSelecting previously unselected package libcublas-11-8.\nPreparing to unpack .../22-libcublas-11-8_11.11.3.6-1_amd64.deb ...\nUnpacking libcublas-11-8 (11.11.3.6-1) ...\nSelecting previously unselected package libcufft-11-8.\nPreparing to unpack .../23-libcufft-11-8_10.9.0.58-1_amd64.deb ...\nUnpacking libcufft-11-8 (10.9.0.58-1) ...\nSelecting previously unselected package libcufile-11-8.\nPreparing to unpack .../24-libcufile-11-8_1.4.0.31-1_amd64.deb ...\nUnpacking libcufile-11-8 (1.4.0.31-1) ...\nSelecting previously unselected package libcurand-11-8.\nPreparing to unpack .../25-libcurand-11-8_10.3.0.86-1_amd64.deb ...\nUnpacking libcurand-11-8 (10.3.0.86-1) ...\nSelecting previously unselected package libcusolver-11-8.\nPreparing to unpack .../26-libcusolver-11-8_11.4.1.48-1_amd64.deb ...\nUnpacking libcusolver-11-8 (11.4.1.48-1) ...\nSelecting previously unselected package libcusparse-11-8.\nPreparing to unpack .../27-libcusparse-11-8_11.7.5.86-1_amd64.deb ...\nUnpacking libcusparse-11-8 (11.7.5.86-1) ...\nSelecting previously unselected package libnpp-11-8.\nPreparing to unpack .../28-libnpp-11-8_11.8.0.86-1_amd64.deb ...\nUnpacking libnpp-11-8 (11.8.0.86-1) ...\nSelecting previously unselected package libnvjpeg-11-8.\nPreparing to unpack .../29-libnvjpeg-11-8_11.9.0.86-1_amd64.deb ...\nUnpacking libnvjpeg-11-8 (11.9.0.86-1) ...\nSelecting previously unselected package cuda-libraries-11-8.\nPreparing to unpack .../30-cuda-libraries-11-8_11.8.0-1_amd64.deb ...\nUnpacking cuda-libraries-11-8 (11.8.0-1) ...\nSelecting previously unselected package cuda-profiler-api-11-8.\nPreparing to unpack .../31-cuda-profiler-api-11-8_11.8.86-1_amd64.deb ...\nUnpacking cuda-profiler-api-11-8 (11.8.86-1) ...\nSelecting previously unselected package cuda-nvrtc-dev-11-8.\nPreparing to unpack .../32-cuda-nvrtc-dev-11-8_11.8.89-1_amd64.deb ...\nUnpacking cuda-nvrtc-dev-11-8 (11.8.89-1) ...\nSelecting previously unselected package libcublas-dev-11-8.\nPreparing to unpack .../33-libcublas-dev-11-8_11.11.3.6-1_amd64.deb ...\nUnpacking libcublas-dev-11-8 (11.11.3.6-1) ...\nSelecting previously unselected package libcufft-dev-11-8.\nPreparing to unpack .../34-libcufft-dev-11-8_10.9.0.58-1_amd64.deb ...\nUnpacking libcufft-dev-11-8 (10.9.0.58-1) ...\nSelecting previously unselected package libcufile-dev-11-8.\nPreparing to unpack .../35-libcufile-dev-11-8_1.4.0.31-1_amd64.deb ...\nUnpacking libcufile-dev-11-8 (1.4.0.31-1) ...\nSelecting previously unselected package libcurand-dev-11-8.\nPreparing to unpack .../36-libcurand-dev-11-8_10.3.0.86-1_amd64.deb ...\nUnpacking libcurand-dev-11-8 (10.3.0.86-1) ...\nSelecting previously unselected package libcusolver-dev-11-8.\nPreparing to unpack .../37-libcusolver-dev-11-8_11.4.1.48-1_amd64.deb ...\nUnpacking libcusolver-dev-11-8 (11.4.1.48-1) ...\nSelecting previously unselected package libcusparse-dev-11-8.\nPreparing to unpack .../38-libcusparse-dev-11-8_11.7.5.86-1_amd64.deb ...\nUnpacking libcusparse-dev-11-8 (11.7.5.86-1) ...\nSelecting previously unselected package libnpp-dev-11-8.\nPreparing to unpack .../39-libnpp-dev-11-8_11.8.0.86-1_amd64.deb ...\nUnpacking libnpp-dev-11-8 (11.8.0.86-1) ...\nSelecting previously unselected package libnvjpeg-dev-11-8.\nPreparing to unpack .../40-libnvjpeg-dev-11-8_11.9.0.86-1_amd64.deb ...\nUnpacking libnvjpeg-dev-11-8 (11.9.0.86-1) ...\nSelecting previously unselected package cuda-libraries-dev-11-8.\nPreparing to unpack .../41-cuda-libraries-dev-11-8_11.8.0-1_amd64.deb ...\nUnpacking cuda-libraries-dev-11-8 (11.8.0-1) ...\nSelecting previously unselected package cuda-nsight-11-8.\nPreparing to unpack .../42-cuda-nsight-11-8_11.8.86-1_amd64.deb ...\nUnpacking cuda-nsight-11-8 (11.8.86-1) ...\nSelecting previously unselected package nsight-compute-2022.3.0.\nPreparing to unpack .../43-nsight-compute-2022.3.0_2022.3.0.22-1_amd64.deb ...\nUnpacking nsight-compute-2022.3.0 (2022.3.0.22-1) ...\nSelecting previously unselected package cuda-nsight-compute-11-8.\nPreparing to unpack .../44-cuda-nsight-compute-11-8_11.8.0-1_amd64.deb ...\nUnpacking cuda-nsight-compute-11-8 (11.8.0-1) ...\nSelecting previously unselected package libxcb-xinerama0:amd64.\nPreparing to unpack .../45-libxcb-xinerama0_1.14-2_amd64.deb ...\nUnpacking libxcb-xinerama0:amd64 (1.14-2) ...\nSelecting previously unselected package libxcb-icccm4:amd64.\nPreparing to unpack .../46-libxcb-icccm4_0.4.1-1.1_amd64.deb ...\nUnpacking libxcb-icccm4:amd64 (0.4.1-1.1) ...\nSelecting previously unselected package libxcb-util1:amd64.\nPreparing to unpack .../47-libxcb-util1_0.4.0-0ubuntu3_amd64.deb ...\nUnpacking libxcb-util1:amd64 (0.4.0-0ubuntu3) ...\nSelecting previously unselected package libxcb-image0:amd64.\nPreparing to unpack .../48-libxcb-image0_0.4.0-1build1_amd64.deb ...\nUnpacking libxcb-image0:amd64 (0.4.0-1build1) ...\nSelecting previously unselected package libxcb-keysyms1:amd64.\nPreparing to unpack .../49-libxcb-keysyms1_0.4.0-1build1_amd64.deb ...\nUnpacking libxcb-keysyms1:amd64 (0.4.0-1build1) ...\nSelecting previously unselected package libxcb-render-util0:amd64.\nPreparing to unpack .../50-libxcb-render-util0_0.3.9-1build1_amd64.deb ...\nUnpacking libxcb-render-util0:amd64 (0.3.9-1build1) ...\nSelecting previously unselected package libxcb-xkb1:amd64.\nPreparing to unpack .../51-libxcb-xkb1_1.14-2_amd64.deb ...\nUnpacking libxcb-xkb1:amd64 (1.14-2) ...\nSelecting previously unselected package libxkbcommon-x11-0:amd64.\nPreparing to unpack .../52-libxkbcommon-x11-0_0.10.0-1_amd64.deb ...\nUnpacking libxkbcommon-x11-0:amd64 (0.10.0-1) ...\nSelecting previously unselected package libxcb-xinput0:amd64.\nPreparing to unpack .../53-libxcb-xinput0_1.14-2_amd64.deb ...\nUnpacking libxcb-xinput0:amd64 (1.14-2) ...\nSelecting previously unselected package nsight-systems-2022.4.2.\nPreparing to unpack .../54-nsight-systems-2022.4.2_2022.4.2.50-32196742v0_amd64.deb ...\nUnpacking nsight-systems-2022.4.2 (2022.4.2.50-32196742v0) ...\nSelecting previously unselected package cuda-nsight-systems-11-8.\nPreparing to unpack .../55-cuda-nsight-systems-11-8_11.8.0-1_amd64.deb ...\nUnpacking cuda-nsight-systems-11-8 (11.8.0-1) ...\nSelecting previously unselected package cuda-nvml-dev-11-8.\nPreparing to unpack .../56-cuda-nvml-dev-11-8_11.8.86-1_amd64.deb ...\nUnpacking cuda-nvml-dev-11-8 (11.8.86-1) ...\nSelecting previously unselected package cuda-nvvp-11-8.\nPreparing to unpack .../57-cuda-nvvp-11-8_11.8.87-1_amd64.deb ...\nUnpacking cuda-nvvp-11-8 (11.8.87-1) ...\nSelecting previously unselected package cuda-visual-tools-11-8.\nPreparing to unpack .../58-cuda-visual-tools-11-8_11.8.0-1_amd64.deb ...\nUnpacking cuda-visual-tools-11-8 (11.8.0-1) ...\nSelecting previously unselected package gds-tools-11-8.\nPreparing to unpack .../59-gds-tools-11-8_1.4.0.31-1_amd64.deb ...\nUnpacking gds-tools-11-8 (1.4.0.31-1) ...\nSelecting previously unselected package cuda-tools-11-8.\nPreparing to unpack .../60-cuda-tools-11-8_11.8.0-1_amd64.deb ...\nUnpacking cuda-tools-11-8 (11.8.0-1) ...\nSelecting previously unselected package cuda-toolkit-11-8.\nPreparing to unpack .../61-cuda-toolkit-11-8_11.8.0-1_amd64.deb ...\nUnpacking cuda-toolkit-11-8 (11.8.0-1) ...\nSetting up cuda-nvml-dev-11-8 (11.8.86-1) ...\nSetting up cuda-toolkit-11-config-common (11.8.89-1) ...\nSetting up libxcb-xinput0:amd64 (1.14-2) ...\nSetting up cuda-cccl-11-8 (11.8.89-1) ...\nSetting up cuda-cuobjdump-11-8 (11.8.86-1) ...\nSetting up cuda-nvrtc-11-8 (11.8.89-1) ...\nSetting up cuda-sanitizer-11-8 (11.8.86-1) ...\nSetting up cuda-cupti-11-8 (11.8.87-1) ...\nSetting up libxcb-keysyms1:amd64 (0.4.0-1build1) ...\nSetting up libxcb-render-util0:amd64 (0.3.9-1build1) ...\nSetting up cuda-nvdisasm-11-8 (11.8.86-1) ...\nSetting up libxcb-icccm4:amd64 (0.4.1-1.1) ...\nSetting up cuda-cuxxfilt-11-8 (11.8.86-1) ...\nSetting up libxcb-util1:amd64 (0.4.0-0ubuntu3) ...\nSetting up libxcb-xkb1:amd64 (1.14-2) ...\nSetting up libxcb-image0:amd64 (0.4.0-1build1) ...\nSetting up libxcb-xinerama0:amd64 (1.14-2) ...\nSetting up cuda-nvvp-11-8 (11.8.87-1) ...\nSetting up cuda-nvtx-11-8 (11.8.86-1) ...\nSetting up cuda-gdb-11-8 (11.8.86-1) ...\nSetting up cuda-toolkit-11-8-config-common (11.8.89-1) ...\nSetting alternatives\nupdate-alternatives: using /usr/local/cuda-11.8 to provide /usr/local/cuda-11 (cuda-11) in auto mode\nSetting up libxkbcommon-x11-0:amd64 (0.10.0-1) ...\nSetting up libcusolver-11-8 (11.4.1.48-1) ...\nSetting up cuda-nvrtc-dev-11-8 (11.8.89-1) ...\nSetting up cuda-driver-dev-11-8 (11.8.89-1) ...\nSetting up cuda-memcheck-11-8 (11.8.86-1) ...\nSetting up gds-tools-11-8 (1.4.0.31-1) ...\nSetting up cuda-nsight-11-8 (11.8.86-1) ...\nSetting up cuda-profiler-api-11-8 (11.8.86-1) ...\nSetting up cuda-documentation-11-8 (11.8.86-1) ...\nSetting up cuda-nvprune-11-8 (11.8.86-1) ...\nSetting up cuda-cudart-11-8 (11.8.89-1) ...\nSetting up libnvjpeg-11-8 (11.9.0.86-1) ...\nSetting up cuda-nvprof-11-8 (11.8.87-1) ...\nSetting up nsight-compute-2022.3.0 (2022.3.0.22-1) ...\nSetting up nsight-systems-2022.4.2 (2022.4.2.50-32196742v0) ...\nupdate-alternatives: using /opt/nvidia/nsight-systems/2022.4.2/target-linux-x64/nsys to provide /usr/local/bin/nsys (nsys) in auto mode\nupdate-alternatives: using /opt/nvidia/nsight-systems/2022.4.2/host-linux-x64/nsys-ui to provide /usr/local/bin/nsys-ui (nsys-ui) in auto mode\nSetting up libcusparse-11-8 (11.7.5.86-1) ...\nSetting up libcufft-11-8 (10.9.0.58-1) ...\nSetting up cuda-cupti-dev-11-8 (11.8.87-1) ...\nSetting up libcufft-dev-11-8 (10.9.0.58-1) ...\nSetting up cuda-cudart-dev-11-8 (11.8.89-1) ...\nSetting up libnpp-11-8 (11.8.0.86-1) ...\nSetting up libcusolver-dev-11-8 (11.4.1.48-1) ...\nSetting up cuda-nsight-systems-11-8 (11.8.0-1) ...\nSetting up cuda-command-line-tools-11-8 (11.8.0-1) ...\nSetting up libcusparse-dev-11-8 (11.7.5.86-1) ...\nSetting up libcurand-11-8 (10.3.0.86-1) ...\nSetting up libcufile-11-8 (1.4.0.31-1) ...\nSetting alternatives\nSetting up libcublas-11-8 (11.11.3.6-1) ...\nSetting up libnpp-dev-11-8 (11.8.0.86-1) ...\nSetting up cuda-libraries-11-8 (11.8.0-1) ...\nSetting up cuda-nsight-compute-11-8 (11.8.0-1) ...\nSetting up libnvjpeg-dev-11-8 (11.9.0.86-1) ...\nSetting up cuda-nvcc-11-8 (11.8.89-1) ...\nSetting up libcublas-dev-11-8 (11.11.3.6-1) ...\nSetting up libcurand-dev-11-8 (10.3.0.86-1) ...\nSetting up libcufile-dev-11-8 (1.4.0.31-1) ...\nSetting up cuda-compiler-11-8 (11.8.0-1) ...\nSetting up cuda-libraries-dev-11-8 (11.8.0-1) ...\nSetting up cuda-visual-tools-11-8 (11.8.0-1) ...\nSetting up cuda-tools-11-8 (11.8.0-1) ...\nSetting up cuda-toolkit-11-8 (11.8.0-1) ...\nSetting alternatives\nProcessing triggers for libc-bin (2.31-0ubuntu9.14) ...\nProcessing triggers for mime-support (3.64ubuntu1) ...\n","output_type":"stream"}]},{"cell_type":"code","source":"# - Option 2: Running with Ngrok - #\n\nNgrok_token = \"2bTPQoqnpKqQjwQAOWn4zCH23XV_Tgr9ZpdviYQ1opeeuyAv\" #@param {type:\"string\"}\n# Put your ngrok token here (obtainable from https://ngrok.com)\n\nNgrok_domain = \"\" # optional, leave empty if you don't have a domain\n\n# -------------------------------- #\n\n!pip install pyngrok\n\nfrom pyngrok import ngrok, conf\nimport fileinput\nimport sys\n\nif Ngrok_token!=\"\":\n ngrok.kill()\n srv=ngrok.connect(7860 , pyngrok_config=conf.PyngrokConfig(auth_token=Ngrok_token),\n bind_tls=True, domain=Ngrok_domain).public_url\n print(srv)\n get_ipython().system(\"python run.py\")\nelse:\n print('An ngrok token is required. You can get one on https://ngrok.com and paste it into the ngrok_token field.')","metadata":{"trusted":true},"execution_count":null,"outputs":[{"name":"stdout","text":"Requirement already satisfied: pyngrok in /opt/conda/lib/python3.10/site-packages (7.1.2)\nRequirement already satisfied: PyYAML>=5.1 in /opt/conda/lib/python3.10/site-packages (from pyngrok) (6.0.1)\nhttps://2515-34-91-167-75.ngrok-free.app\nUsing provider ['CUDAExecutionProvider'] - Device:cuda\nRunning on local URL: http://127.0.0.1:7860\n\nTo create a public link, set `share=True` in `launch()`.\nApplied providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'], with options: {'CPUExecutionProvider': {}, 'CUDAExecutionProvider': {'tunable_op_max_tuning_duration_ms': '0', 'enable_skip_layer_norm_strict_mode': '0', 'tunable_op_tuning_enable': '0', 'device_id': '0', 'has_user_compute_stream': '0', 'gpu_mem_limit': '18446744073709551615', 'gpu_external_alloc': '0', 'gpu_external_free': '0', 'gpu_external_empty_cache': '0', 'cudnn_conv_algo_search': 'EXHAUSTIVE', 'cudnn_conv1d_pad_to_nc1d': '0', 'arena_extend_strategy': 'kNextPowerOfTwo', 'do_copy_in_default_stream': '1', 'enable_cuda_graph': '0', 'cudnn_conv_use_max_workspace': '1', 'tunable_op_enable': '0'}}\nfind model: /kaggle/working/roop-unleashed/models/buffalo_l/1k3d68.onnx landmark_3d_68 ['None', 3, 192, 192] 0.0 1.0\nApplied providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'], with options: {'CPUExecutionProvider': {}, 'CUDAExecutionProvider': {'tunable_op_max_tuning_duration_ms': '0', 'enable_skip_layer_norm_strict_mode': '0', 'tunable_op_tuning_enable': '0', 'device_id': '0', 'has_user_compute_stream': '0', 'gpu_mem_limit': '18446744073709551615', 'gpu_external_alloc': '0', 'gpu_external_free': '0', 'gpu_external_empty_cache': '0', 'cudnn_conv_algo_search': 'EXHAUSTIVE', 'cudnn_conv1d_pad_to_nc1d': '0', 'arena_extend_strategy': 'kNextPowerOfTwo', 'do_copy_in_default_stream': '1', 'enable_cuda_graph': '0', 'cudnn_conv_use_max_workspace': '1', 'tunable_op_enable': '0'}}\nfind model: /kaggle/working/roop-unleashed/models/buffalo_l/2d106det.onnx landmark_2d_106 ['None', 3, 192, 192] 0.0 1.0\nApplied providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'], with options: {'CPUExecutionProvider': {}, 'CUDAExecutionProvider': {'tunable_op_max_tuning_duration_ms': '0', 'enable_skip_layer_norm_strict_mode': '0', 'tunable_op_tuning_enable': '0', 'device_id': '0', 'has_user_compute_stream': '0', 'gpu_mem_limit': '18446744073709551615', 'gpu_external_alloc': '0', 'gpu_external_free': '0', 'gpu_external_empty_cache': '0', 'cudnn_conv_algo_search': 'EXHAUSTIVE', 'cudnn_conv1d_pad_to_nc1d': '0', 'arena_extend_strategy': 'kNextPowerOfTwo', 'do_copy_in_default_stream': '1', 'enable_cuda_graph': '0', 'cudnn_conv_use_max_workspace': '1', 'tunable_op_enable': '0'}}\nfind model: /kaggle/working/roop-unleashed/models/buffalo_l/det_10g.onnx detection [1, 3, '?', '?'] 127.5 128.0\nApplied providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'], with options: {'CPUExecutionProvider': {}, 'CUDAExecutionProvider': {'tunable_op_max_tuning_duration_ms': '0', 'enable_skip_layer_norm_strict_mode': '0', 'tunable_op_tuning_enable': '0', 'device_id': '0', 'has_user_compute_stream': '0', 'gpu_mem_limit': '18446744073709551615', 'gpu_external_alloc': '0', 'gpu_external_free': '0', 'gpu_external_empty_cache': '0', 'cudnn_conv_algo_search': 'EXHAUSTIVE', 'cudnn_conv1d_pad_to_nc1d': '0', 'arena_extend_strategy': 'kNextPowerOfTwo', 'do_copy_in_default_stream': '1', 'enable_cuda_graph': '0', 'cudnn_conv_use_max_workspace': '1', 'tunable_op_enable': '0'}}\nfind model: /kaggle/working/roop-unleashed/models/buffalo_l/genderage.onnx genderage ['None', 3, 96, 96] 0.0 1.0\nApplied providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'], with options: {'CPUExecutionProvider': {}, 'CUDAExecutionProvider': {'tunable_op_max_tuning_duration_ms': '0', 'enable_skip_layer_norm_strict_mode': '0', 'tunable_op_tuning_enable': '0', 'device_id': '0', 'has_user_compute_stream': '0', 'gpu_mem_limit': '18446744073709551615', 'gpu_external_alloc': '0', 'gpu_external_free': '0', 'gpu_external_empty_cache': '0', 'cudnn_conv_algo_search': 'EXHAUSTIVE', 'cudnn_conv1d_pad_to_nc1d': '0', 'arena_extend_strategy': 'kNextPowerOfTwo', 'do_copy_in_default_stream': '1', 'enable_cuda_graph': '0', 'cudnn_conv_use_max_workspace': '1', 'tunable_op_enable': '0'}}\nfind model: /kaggle/working/roop-unleashed/models/buffalo_l/w600k_r50.onnx recognition ['None', 3, 112, 112] 127.5 127.5\nset det-size: (640, 640)\nSorting videos/images\nApplied providers: ['CUDAExecutionProvider', 'CPUExecutionProvider'], with options: {'CPUExecutionProvider': {}, 'CUDAExecutionProvider': {'tunable_op_max_tuning_duration_ms': '0', 'enable_skip_layer_norm_strict_mode': '0', 'tunable_op_tuning_enable': '0', 'device_id': '0', 'has_user_compute_stream': '0', 'gpu_mem_limit': '18446744073709551615', 'gpu_external_alloc': '0', 'gpu_external_free': '0', 'gpu_external_empty_cache': '0', 'cudnn_conv_algo_search': 'EXHAUSTIVE', 'cudnn_conv1d_pad_to_nc1d': '0', 'arena_extend_strategy': 'kNextPowerOfTwo', 'do_copy_in_default_stream': '1', 'enable_cuda_graph': '0', 'cudnn_conv_use_max_workspace': '1', 'tunable_op_enable': '0'}}\ninswapper-shape: [1, 3, 128, 128]\nCreating 1__temp.mp4 with 25.0 FPS...\n['ffmpeg', '-hide_banner', '-hwaccel', 'auto', '-y', '-loglevel', 'error', '-f', 'rawvideo', '-vcodec', 'rawvideo', '-s', '2160x3840', '-pix_fmt', 'bgr24', '-r', '25.0', '-an', '-i', '-', '-vcodec', 'libx264', '-crf', '14', '-vf', 'colorspace=bt709:iall=bt601-6-625:fast=1', '-pix_fmt', 'yuv420p', '/kaggle/working/roop-unleashed/output/1__temp.mp4']\nProcessing: 100%|β| 620/621 [09:20<00:00, 1.11frames/s, memory_usage=02.75GB, e\nffmpeg -hide_banner -hwaccel auto -y -loglevel error -i /kaggle/working/roop-unleashed/output/1__temp.mp4 -ss 0.00 -to 24.80 -i /kaggle/working/roop-unleashed/temp/f49878d218627d483748784c9e5b6001f2ba441f/1.mp4 -c copy -map 0:v:0 -map 1:a:0? -shortest /kaggle/working/roop-unleashed/output/1_07-41-01.mp4\n\nProcessing 1_07-41-01.mp4 took 579.2748646736145 secs\nFinished\n","output_type":"stream"}]},{"cell_type":"markdown","source":"Running roop-unleashed with default config","metadata":{"id":"u_4JQiSlV9Fi"}},{"cell_type":"code","source":"!apt-get update && apt-get install ffmpeg libsm6 libxext6 -y\n","metadata":{"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"### Download generated images folder\n(only needed if you want to zip the generated output)","metadata":{"id":"UdQ1VHdI8lCf"}},{"cell_type":"code","source":"import shutil\nimport os\nfrom google.colab import files\n\ndef zip_directory(directory_path, zip_path):\n shutil.make_archive(zip_path, 'zip', directory_path)\n\n# Set the directory path you want to download\ndirectory_path = '/content/roop-unleashed/output'\n\n# Set the zip file name\nzip_filename = 'fake_output.zip'\n\n# Zip the directory\nzip_directory(directory_path, zip_filename)\n\n# Download the zip file\nfiles.download(zip_filename+'.zip')\n","metadata":{"id":"oYjWveAmw10X","outputId":"5b4c3650-f951-434a-c650-5525a8a70c1e","trusted":true},"execution_count":null,"outputs":[]}]}
|
|
|
|