From 2b289a2a6abdf757bfed8e91e170c1482bd70d4c Mon Sep 17 00:00:00 2001 From: Ghassen Date: Wed, 11 Oct 2023 15:36:23 +0100 Subject: [PATCH] Update colab notebook --- notebooks/colab_demo.ipynb | 5286 ++++++++++++++++++++++++++++++++++-- 1 file changed, 5076 insertions(+), 210 deletions(-) diff --git a/notebooks/colab_demo.ipynb b/notebooks/colab_demo.ipynb index beab48c..09f5bad 100644 --- a/notebooks/colab_demo.ipynb +++ b/notebooks/colab_demo.ipynb @@ -1,212 +1,5078 @@ { - "cells": [ - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Deepfake Offensive Toolkit\n", - "\n", - "> **Disclaimer**: This notebook is primarily used for demo purposes on Google Colab.\n", - "\n", - "**Note**: We recommend running this notebook on Google Colab with GPU enabled.\n", - "\n", - "To enable GPU, do the following: \n", - "\n", - "`Click \"Runtime\" tab > select \"Change runtime type\" option > set \"Hardware accelerator\" to \"GPU\"`\n", - "\n", - "### Install Notebook Pre-requisites:\n", - "\n", - "We install the following pre-requisities:\n", - "- `ffmpeg`\n", - "- `conda` (via [condacolab](https://github.com/conda-incubator/condacolab))\n", - "\n", - "Note: The notebook session will restart after installing the pre-requisites. \n", - "\n", - "**RUN THE BELOW CELL ONLY ONCE.**\n", - "\n", - "**ONCE THE NOTEBOOK SESSION RESTARTS, SKIP THIS CELL MOVE TO \"STEP 1\" SECTION OF THIS NOTEBOOK**" - ] + "cells": [ + { + "cell_type": "markdown", + "metadata": { + "id": "view-in-github", + "colab_type": "text" + }, + "source": [ + "\"Open" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "id": "rOTJFaF9WIqg" + }, + "source": [ + "# Deepfake Offensive Toolkit\n", + "\n", + "> **Disclaimer**: This notebook is primarily used for demo purposes on Google Colab.\n", + "\n", + "**Note**: We recommend running this notebook on Google Colab with GPU enabled.\n", + "\n", + "To enable GPU, do the following:\n", + "\n", + "`Click \"Runtime\" tab > select \"Change runtime type\" option > set \"Hardware accelerator\" to \"GPU\"`\n", + "\n", + "### Install Notebook Pre-requisites:\n", + "\n", + "We install the following pre-requisities:\n", + "- `ffmpeg`\n", + "- `conda` (via [condacolab](https://github.com/conda-incubator/condacolab))\n", + "\n", + "Note: The notebook session will restart after installing the pre-requisites.\n", + "\n", + "**RUN THE BELOW CELL ONLY ONCE.**\n", + "\n", + "**ONCE THE NOTEBOOK SESSION RESTARTS, SKIP THIS CELL MOVE TO \"STEP 1\" SECTION OF THIS NOTEBOOK**" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "colab": { + "base_uri": "https://localhost:8080/" + }, + "id": "GnL7GZXGWIqo", + "outputId": "bd4f70ea-577c-49f7-83ae-7407041cc7d7" + }, + "outputs": [ + { + "output_type": "stream", + "name": "stdout", + "text": [ + "Reading package lists... Done\n", + "Building dependency tree... Done\n", + "Reading state information... Done\n", + "ffmpeg is already the newest version (7:4.4.2-0ubuntu0.22.04.1).\n", + "0 upgraded, 0 newly installed, 0 to remove and 18 not upgraded.\n", + "⏬ Downloading https://repo.anaconda.com/miniconda/Miniconda3-py310_23.3.1-0-Linux-x86_64.sh...\n", + "📦 Installing...\n", + "📌 Adjusting configuration...\n", + "🩹 Patching environment...\n", + "⏲ Done in 0:00:12\n", + "🔁 Restarting kernel...\n" + ] + } + ], + "source": [ + "# install linux pre-requisites\n", + "!sudo apt install ffmpeg\n", + "\n", + "# install miniconda3\n", + "!pip install -q condacolab\n", + "import condacolab\n", + "condacolab.install_miniconda()\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "id": "9oI_egyVWIqq" + }, + "source": [ + "## Step 1 - Clone Repository" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "id": "LvZL-BD0WIqq" + }, + "outputs": [], + "source": [ + "import os\n", + "os.chdir('/content')\n", + "CODE_DIR = 'dot'\n" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "colab": { + "base_uri": "https://localhost:8080/" + }, + "id": "gTnnBM5xWIqr", + "outputId": "b4414cf3-5cf2-4763-923d-ddd7ef2a9267" + }, + "outputs": [ + { + "output_type": "stream", + "name": "stdout", + "text": [ + "/bin/bash: /usr/local/lib/libtinfo.so.6: no version information available (required by /bin/bash)\n", + "Cloning into 'dot'...\n", + "remote: Enumerating objects: 585, done.\u001b[K\n", + "remote: Counting objects: 100% (301/301), done.\u001b[K\n", + "remote: Compressing objects: 100% (202/202), done.\u001b[K\n", + "remote: Total 585 (delta 195), reused 136 (delta 90), pack-reused 284\u001b[K\n", + "Receiving objects: 100% (585/585), 16.65 MiB | 33.76 MiB/s, done.\n", + "Resolving deltas: 100% (258/258), done.\n" + ] + } + ], + "source": [ + "!git clone https://github.com/sensity-ai/dot.git $CODE_DIR\n" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "id": "Hgx6JdrrWIqr" + }, + "outputs": [], + "source": [ + "os.chdir(f'./{CODE_DIR}')\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "id": "Nb3q4HbSWIqs" + }, + "source": [ + "## Step 2 - Setup Conda Environment\n", + "\n", + "**ONCE THE INSTALLATION IS COMPLETE, RESTART THE NOTEBOOK AND MOVE TO \"STEP 2\" SECTION OF THIS NOTEBOOK**" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "colab": { + "base_uri": "https://localhost:8080/", + "height": 1000 + }, + "id": "VkLiUqtbWIqt", + "outputId": "4b980a6f-8e46-42f4-f01c-e5435626be41" + }, + "outputs": [ + { + "output_type": "stream", + "name": "stdout", + "text": [ + "/bin/bash: /usr/local/lib/libtinfo.so.6: no version information available (required by /bin/bash)\n", + "Collecting package metadata (current_repodata.json): - \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\bdone\n", + "Solving environment: / \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ WARNING conda.core.solve:_add_specs(641): pinned spec python=3.10 conflicts with explicit specs. Overriding pinned spec.\n", + "\b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\bfailed with initial frozen solve. Retrying with flexible solve.\n", + "Solving environment: \\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ WARNING conda.core.solve:_add_specs(641): pinned spec python=3.10 conflicts with explicit specs. Overriding pinned spec.\n", + "\b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\bfailed with repodata from current_repodata.json, will retry with next repodata source.\n", + "Collecting package metadata (repodata.json): \\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\bdone\n", + "Solving environment: | \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- WARNING conda.core.solve:_add_specs(641): pinned spec python=3.10 conflicts with explicit specs. Overriding pinned spec.\n", + "\b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\bdone\n", + "\n", + "## Package Plan ##\n", + "\n", + " environment location: /usr/local\n", + "\n", + " added / updated specs:\n", + " - cudatoolkit=11.8\n", + " - python=3.8\n", + "\n", + "\n", + "The following packages will be downloaded:\n", + "\n", + " package | build\n", + " ---------------------------|-----------------\n", + " boltons-23.0.0 | py38h06a4308_0 426 KB\n", + " ca-certificates-2023.08.22 | h06a4308_0 123 KB\n", + " certifi-2023.7.22 | py38h06a4308_0 153 KB\n", + " cffi-1.15.1 | py38h5eee18b_3 241 KB\n", + " conda-23.9.0 | py38h06a4308_0 974 KB\n", + " conda-content-trust-0.2.0 | py38h06a4308_0 51 KB\n", + " conda-package-handling-2.2.0| py38h06a4308_0 267 KB\n", + " conda-package-streaming-0.9.0| py38h06a4308_0 27 KB\n", + " cryptography-41.0.3 | py38h130f0dd_0 2.0 MB\n", + " cudatoolkit-11.8.0 | h6a678d5_0 630.7 MB\n", + " idna-3.4 | py38h06a4308_0 93 KB\n", + " openssl-1.1.1w | h7f8727e_0 3.7 MB\n", + " packaging-23.1 | py38h06a4308_0 77 KB\n", + " pip-23.2.1 | py38h06a4308_0 2.6 MB\n", + " pluggy-1.0.0 | py38h06a4308_1 28 KB\n", + " pycosat-0.6.6 | py38h5eee18b_0 93 KB\n", + " pyopenssl-23.2.0 | py38h06a4308_0 96 KB\n", + " pysocks-1.7.1 | py38h06a4308_0 31 KB\n", + " python-3.8.16 | h7a1cb2a_3 23.7 MB\n", + " requests-2.31.0 | py38h06a4308_0 96 KB\n", + " ruamel.yaml-0.17.21 | py38h5eee18b_0 178 KB\n", + " ruamel.yaml.clib-0.2.6 | py38h5eee18b_1 143 KB\n", + " setuptools-68.0.0 | py38h06a4308_0 927 KB\n", + " tqdm-4.65.0 | py38hb070fc8_0 131 KB\n", + " urllib3-1.25.8 | py38_0 170 KB\n", + " wheel-0.41.2 | py38h06a4308_0 108 KB\n", + " zstandard-0.19.0 | py38h5eee18b_0 474 KB\n", + " ------------------------------------------------------------\n", + " Total: 667.5 MB\n", + "\n", + "The following NEW packages will be INSTALLED:\n", + "\n", + " cudatoolkit pkgs/main/linux-64::cudatoolkit-11.8.0-h6a678d5_0 \n", + "\n", + "The following packages will be REMOVED:\n", + "\n", + " brotlipy-0.7.0-py310h7f8727e_1002\n", + " toolz-0.12.0-py310h06a4308_0\n", + "\n", + "The following packages will be UPDATED:\n", + "\n", + " ca-certificates 2023.01.10-h06a4308_0 --> 2023.08.22-h06a4308_0 \n", + " certifi 2022.12.7-py310h06a4308_0 --> 2023.7.22-py38h06a4308_0 \n", + " conda 23.3.1-py310h06a4308_0 --> 23.9.0-py38h06a4308_0 \n", + " conda-content-tru~ 0.1.3-py310h06a4308_0 --> 0.2.0-py38h06a4308_0 \n", + " conda-package-han~ 2.0.2-py310h06a4308_0 --> 2.2.0-py38h06a4308_0 \n", + " conda-package-str~ 0.7.0-py310h06a4308_0 --> 0.9.0-py38h06a4308_0 \n", + " cryptography 39.0.1-py310h9ce1e76_0 --> 41.0.3-py38h130f0dd_0 \n", + " openssl 1.1.1t-h7f8727e_0 --> 1.1.1w-h7f8727e_0 \n", + " packaging 23.0-py310h06a4308_0 --> 23.1-py38h06a4308_0 \n", + " pip 23.0.1-py310h06a4308_0 --> 23.2.1-py38h06a4308_0 \n", + " pycosat 0.6.4-py310h5eee18b_0 --> 0.6.6-py38h5eee18b_0 \n", + " pyopenssl 23.0.0-py310h06a4308_0 --> 23.2.0-py38h06a4308_0 \n", + " requests 2.28.1-py310h06a4308_1 --> 2.31.0-py38h06a4308_0 \n", + " setuptools 65.6.3-py310h06a4308_0 --> 68.0.0-py38h06a4308_0 \n", + " wheel 0.38.4-py310h06a4308_0 --> 0.41.2-py38h06a4308_0 \n", + "\n", + "The following packages will be DOWNGRADED:\n", + "\n", + " boltons 23.0.0-py310h06a4308_0 --> 23.0.0-py38h06a4308_0 \n", + " cffi 1.15.1-py310h5eee18b_3 --> 1.15.1-py38h5eee18b_3 \n", + " idna 3.4-py310h06a4308_0 --> 3.4-py38h06a4308_0 \n", + " pluggy 1.0.0-py310h06a4308_1 --> 1.0.0-py38h06a4308_1 \n", + " pysocks 1.7.1-py310h06a4308_0 --> 1.7.1-py38h06a4308_0 \n", + " python 3.10.10-h7a1cb2a_2 --> 3.8.16-h7a1cb2a_3 \n", + " ruamel.yaml 0.17.21-py310h5eee18b_0 --> 0.17.21-py38h5eee18b_0 \n", + " ruamel.yaml.clib 0.2.6-py310h5eee18b_1 --> 0.2.6-py38h5eee18b_1 \n", + " tqdm 4.65.0-py310h2f386ee_0 --> 4.65.0-py38hb070fc8_0 \n", + " urllib3 1.26.15-py310h06a4308_0 --> 1.25.8-py38_0 \n", + " zstandard 0.19.0-py310h5eee18b_0 --> 0.19.0-py38h5eee18b_0 \n", + "\n", + "\n", + "\n", + "Downloading and Extracting Packages\n", + "conda-23.9.0 | 974 KB | : 0% 0/1 [00:00=1.16.6 (from onnxruntime-gpu==1.9.0)\n", + " Obtaining dependency information for numpy>=1.16.6 from https://files.pythonhosted.org/packages/98/5d/5738903efe0ecb73e51eb44feafba32bdba2081263d40c5043568ff60faf/numpy-1.24.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata\n", + " Downloading numpy-1.24.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (5.6 kB)\n", + "Collecting protobuf (from onnxruntime-gpu==1.9.0)\n", + " Obtaining dependency information for protobuf from https://files.pythonhosted.org/packages/c8/2c/03046cac73f46bfe98fc846ef629cf4f84c2f59258216aa2cc0d22bfca8f/protobuf-4.24.4-cp37-abi3-manylinux2014_x86_64.whl.metadata\n", + " Downloading protobuf-4.24.4-cp37-abi3-manylinux2014_x86_64.whl.metadata (540 bytes)\n", + "Collecting flatbuffers (from onnxruntime-gpu==1.9.0)\n", + " Obtaining dependency information for flatbuffers from https://files.pythonhosted.org/packages/6f/12/d5c79ee252793ffe845d58a913197bfa02ae9a0b5c9bc3dc4b58d477b9e7/flatbuffers-23.5.26-py2.py3-none-any.whl.metadata\n", + " Downloading flatbuffers-23.5.26-py2.py3-none-any.whl.metadata (850 bytes)\n", + "Downloading numpy-1.24.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (17.3 MB)\n", + "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m17.3/17.3 MB\u001b[0m \u001b[31m87.8 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", + "\u001b[?25hDownloading flatbuffers-23.5.26-py2.py3-none-any.whl (26 kB)\n", + "Downloading protobuf-4.24.4-cp37-abi3-manylinux2014_x86_64.whl (311 kB)\n", + "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m311.6/311.6 kB\u001b[0m \u001b[31m35.5 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", + "\u001b[?25hInstalling collected packages: flatbuffers, protobuf, numpy, llvmlite, onnxruntime-gpu\n", + "Successfully installed flatbuffers-23.5.26 llvmlite-0.38.1 numpy-1.24.4 onnxruntime-gpu-1.9.0 protobuf-4.24.4\n", + "\u001b[33mWARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv\u001b[0m\u001b[33m\n", + "\u001b[0m/bin/bash: /usr/local/lib/libtinfo.so.6: no version information available (required by /bin/bash)\n", + "Looking in indexes: https://download.pytorch.org/whl/cu118\n", + "Collecting torch==2.0.1+cu118\n", + " Downloading https://download.pytorch.org/whl/cu118/torch-2.0.1%2Bcu118-cp38-cp38-linux_x86_64.whl (2267.3 MB)\n", + "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m2.3/2.3 GB\u001b[0m \u001b[31m481.3 kB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", + "\u001b[?25hCollecting torchvision==0.15.2+cu118\n", + " Downloading https://download.pytorch.org/whl/cu118/torchvision-0.15.2%2Bcu118-cp38-cp38-linux_x86_64.whl (33.9 MB)\n", + "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m33.9/33.9 MB\u001b[0m \u001b[31m46.4 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", + "\u001b[?25hCollecting torchaudio==2.0.2\n", + " Downloading https://download.pytorch.org/whl/cu118/torchaudio-2.0.2%2Bcu118-cp38-cp38-linux_x86_64.whl (4.4 MB)\n", + "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m4.4/4.4 MB\u001b[0m \u001b[31m95.7 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", + "\u001b[?25hCollecting filelock (from torch==2.0.1+cu118)\n", + " Downloading https://download.pytorch.org/whl/filelock-3.9.0-py3-none-any.whl (9.7 kB)\n", + "Collecting typing-extensions (from torch==2.0.1+cu118)\n", + " Downloading https://download.pytorch.org/whl/typing_extensions-4.4.0-py3-none-any.whl (26 kB)\n", + "Collecting sympy (from torch==2.0.1+cu118)\n", + " Downloading https://download.pytorch.org/whl/sympy-1.12-py3-none-any.whl (5.7 MB)\n", + "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m5.7/5.7 MB\u001b[0m \u001b[31m100.3 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", + "\u001b[?25hCollecting networkx (from torch==2.0.1+cu118)\n", + " Downloading https://download.pytorch.org/whl/networkx-3.0-py3-none-any.whl (2.0 MB)\n", + "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m2.0/2.0 MB\u001b[0m \u001b[31m87.7 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", + "\u001b[?25hCollecting jinja2 (from torch==2.0.1+cu118)\n", + " Downloading https://download.pytorch.org/whl/Jinja2-3.1.2-py3-none-any.whl (133 kB)\n", + "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m133.1/133.1 kB\u001b[0m \u001b[31m18.8 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", + "\u001b[?25hCollecting triton==2.0.0 (from torch==2.0.1+cu118)\n", + " Downloading https://download.pytorch.org/whl/triton-2.0.0-1-cp38-cp38-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (63.2 MB)\n", + "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m63.2/63.2 MB\u001b[0m \u001b[31m9.8 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", + "\u001b[?25hRequirement already satisfied: numpy in /usr/local/lib/python3.8/site-packages (from torchvision==0.15.2+cu118) (1.24.4)\n", + "Requirement already satisfied: requests in /usr/local/lib/python3.8/site-packages (from torchvision==0.15.2+cu118) (2.31.0)\n", + "Collecting pillow!=8.3.*,>=5.3.0 (from torchvision==0.15.2+cu118)\n", + " Downloading https://download.pytorch.org/whl/Pillow-9.3.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.2 MB)\n", + "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m3.2/3.2 MB\u001b[0m \u001b[31m57.4 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", + "\u001b[?25hCollecting cmake (from triton==2.0.0->torch==2.0.1+cu118)\n", + " Downloading https://download.pytorch.org/whl/cmake-3.25.0-py2.py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (23.7 MB)\n", + "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m23.7/23.7 MB\u001b[0m \u001b[31m70.1 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", + "\u001b[?25hCollecting lit (from triton==2.0.0->torch==2.0.1+cu118)\n", + " Downloading https://download.pytorch.org/whl/lit-15.0.7.tar.gz (132 kB)\n", + "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m132.3/132.3 kB\u001b[0m \u001b[31m16.3 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", + "\u001b[?25h Preparing metadata (setup.py) ... \u001b[?25l\u001b[?25hdone\n", + "Collecting MarkupSafe>=2.0 (from jinja2->torch==2.0.1+cu118)\n", + " Downloading https://download.pytorch.org/whl/MarkupSafe-2.1.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (25 kB)\n", + "Requirement already satisfied: charset-normalizer<4,>=2 in /usr/local/lib/python3.8/site-packages (from requests->torchvision==0.15.2+cu118) (2.0.4)\n", + "Requirement already satisfied: idna<4,>=2.5 in /usr/local/lib/python3.8/site-packages (from requests->torchvision==0.15.2+cu118) (3.4)\n", + "Requirement already satisfied: urllib3<3,>=1.21.1 in /usr/local/lib/python3.8/site-packages (from requests->torchvision==0.15.2+cu118) (1.25.8)\n", + "Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.8/site-packages (from requests->torchvision==0.15.2+cu118) (2023.7.22)\n", + "Collecting mpmath>=0.19 (from sympy->torch==2.0.1+cu118)\n", + " Downloading https://download.pytorch.org/whl/mpmath-1.3.0-py3-none-any.whl (536 kB)\n", + "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m536.2/536.2 kB\u001b[0m \u001b[31m43.9 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", + "\u001b[?25hBuilding wheels for collected packages: lit\n", + " Building wheel for lit (setup.py) ... \u001b[?25l\u001b[?25hdone\n", + " Created wheel for lit: filename=lit-15.0.7-py3-none-any.whl size=89989 sha256=0f1cb0f8467f481bd09dcb5d39d25fb786b049ae5f7d9d1ef69fbd7fcb2a0d83\n", + " Stored in directory: /root/.cache/pip/wheels/c2/69/d7/7667467c9aee50773790fbdf876e4a2f25452d85e821f8af8d\n", + "Successfully built lit\n", + "Installing collected packages: mpmath, lit, cmake, typing-extensions, sympy, pillow, networkx, MarkupSafe, filelock, jinja2, triton, torch, torchvision, torchaudio\n", + "Successfully installed MarkupSafe-2.1.2 cmake-3.25.0 filelock-3.9.0 jinja2-3.1.2 lit-15.0.7 mpmath-1.3.0 networkx-3.0 pillow-9.3.0 sympy-1.12 torch-2.0.1+cu118 torchaudio-2.0.2+cu118 torchvision-0.15.2+cu118 triton-2.0.0 typing-extensions-4.4.0\n", + "\u001b[33mWARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv\u001b[0m\u001b[33m\n", + "\u001b[0m/bin/bash: /usr/local/lib/libtinfo.so.6: no version information available (required by /bin/bash)\n", + "Collecting absl-py==1.1.0 (from -r requirements.txt (line 7))\n", + " Downloading absl_py-1.1.0-py3-none-any.whl (123 kB)\n", + "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m123.7/123.7 kB\u001b[0m \u001b[31m4.3 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", + "\u001b[?25hCollecting attrs==21.4.0 (from -r requirements.txt (line 9))\n", + " Downloading attrs-21.4.0-py2.py3-none-any.whl (60 kB)\n", + "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m60.6/60.6 kB\u001b[0m \u001b[31m7.8 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", + "\u001b[?25hRequirement already satisfied: certifi==2023.7.22 in /usr/local/lib/python3.8/site-packages (from -r requirements.txt (line 11)) (2023.7.22)\n", + "Requirement already satisfied: cffi==1.15.1 in /usr/local/lib/python3.8/site-packages (from -r requirements.txt (line 13)) (1.15.1)\n", + "Collecting charset-normalizer==3.2.0 (from -r requirements.txt (line 15))\n", + " Obtaining dependency information for charset-normalizer==3.2.0 from https://files.pythonhosted.org/packages/cb/e7/5e43745003bf1f90668c7be23fc5952b3a2b9c2558f16749411c18039b36/charset_normalizer-3.2.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata\n", + " Downloading charset_normalizer-3.2.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (31 kB)\n", + "Collecting click==8.0.2 (from -r requirements.txt (line 17))\n", + " Downloading click-8.0.2-py3-none-any.whl (97 kB)\n", + "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m97.6/97.6 kB\u001b[0m \u001b[31m12.8 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", + "\u001b[?25hCollecting colorama==0.4.6 (from -r requirements.txt (line 19))\n", + " Downloading colorama-0.4.6-py2.py3-none-any.whl (25 kB)\n", + "Collecting customtkinter==5.2.0 (from -r requirements.txt (line 24))\n", + " Obtaining dependency information for customtkinter==5.2.0 from https://files.pythonhosted.org/packages/82/23/00394404c38db474d31471e618abbbc0034483c0d4178ba6328647da1a32/customtkinter-5.2.0-py3-none-any.whl.metadata\n", + " Downloading customtkinter-5.2.0-py3-none-any.whl.metadata (652 bytes)\n", + "Collecting cycler==0.11.0 (from -r requirements.txt (line 26))\n", + " Downloading cycler-0.11.0-py3-none-any.whl (6.4 kB)\n", + "Collecting darkdetect==0.8.0 (from -r requirements.txt (line 28))\n", + " Downloading darkdetect-0.8.0-py3-none-any.whl (9.0 kB)\n", + "Collecting dlib==19.19.0 (from -r requirements.txt (line 30))\n", + " Downloading dlib-19.19.0.tar.gz (3.2 MB)\n", + "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m3.2/3.2 MB\u001b[0m \u001b[31m35.2 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", + "\u001b[?25h Preparing metadata (setup.py) ... \u001b[?25l\u001b[?25hdone\n", + "Collecting exceptiongroup==1.1.2 (from -r requirements.txt (line 32))\n", + " Obtaining dependency information for exceptiongroup==1.1.2 from https://files.pythonhosted.org/packages/fe/17/f43b7c9ccf399d72038042ee72785c305f6c6fdc6231942f8ab99d995742/exceptiongroup-1.1.2-py3-none-any.whl.metadata\n", + " Downloading exceptiongroup-1.1.2-py3-none-any.whl.metadata (6.1 kB)\n", + "Collecting face-alignment==1.3.3 (from -r requirements.txt (line 34))\n", + " Downloading face_alignment-1.3.3.tar.gz (25 kB)\n", + " Preparing metadata (setup.py) ... \u001b[?25l\u001b[?25hdone\n", + "Collecting filelock==3.12.2 (from -r requirements.txt (line 36))\n", + " Obtaining dependency information for filelock==3.12.2 from https://files.pythonhosted.org/packages/00/45/ec3407adf6f6b5bf867a4462b2b0af27597a26bd3cd6e2534cb6ab029938/filelock-3.12.2-py3-none-any.whl.metadata\n", + " Downloading filelock-3.12.2-py3-none-any.whl.metadata (2.7 kB)\n", + "Collecting flatbuffers==2.0 (from -r requirements.txt (line 38))\n", + " Downloading flatbuffers-2.0-py2.py3-none-any.whl (26 kB)\n", + "Collecting fonttools==4.34.4 (from -r requirements.txt (line 42))\n", + " Downloading fonttools-4.34.4-py3-none-any.whl (944 kB)\n", + "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m944.1/944.1 kB\u001b[0m \u001b[31m53.3 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", + "\u001b[?25hCollecting idna==2.10 (from -r requirements.txt (line 44))\n", + " Downloading idna-2.10-py2.py3-none-any.whl (58 kB)\n", + "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m58.8/58.8 kB\u001b[0m \u001b[31m452.1 kB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", + "\u001b[?25hCollecting imageio==2.19.3 (from -r requirements.txt (line 46))\n", + " Downloading imageio-2.19.3-py3-none-any.whl (3.4 MB)\n", + "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m3.4/3.4 MB\u001b[0m \u001b[31m67.6 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", + "\u001b[?25hCollecting iniconfig==2.0.0 (from -r requirements.txt (line 48))\n", + " Downloading iniconfig-2.0.0-py3-none-any.whl (5.9 kB)\n", + "Requirement already satisfied: jinja2==3.1.2 in /usr/local/lib/python3.8/site-packages (from -r requirements.txt (line 50)) (3.1.2)\n", + "Collecting kiwisolver==1.4.3 (from -r requirements.txt (line 52))\n", + " Downloading kiwisolver-1.4.3-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl (1.2 MB)\n", + "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m1.2/1.2 MB\u001b[0m \u001b[31m52.9 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", + "\u001b[?25hCollecting kornia==0.6.5 (from -r requirements.txt (line 54))\n", + " Downloading kornia-0.6.5-py2.py3-none-any.whl (512 kB)\n", + "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m512.8/512.8 kB\u001b[0m \u001b[31m38.9 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", + "\u001b[?25hRequirement already satisfied: llvmlite==0.38.1 in /usr/local/lib/python3.8/site-packages (from -r requirements.txt (line 56)) (0.38.1)\n", + "Collecting markupsafe==2.1.3 (from -r requirements.txt (line 58))\n", + " Obtaining dependency information for markupsafe==2.1.3 from https://files.pythonhosted.org/packages/de/e2/32c14301bb023986dff527a49325b6259cab4ebb4633f69de54af312fc45/MarkupSafe-2.1.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata\n", + " Downloading MarkupSafe-2.1.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (3.0 kB)\n", + "Collecting matplotlib==3.5.2 (from -r requirements.txt (line 60))\n", + " Downloading matplotlib-3.5.2-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl (11.3 MB)\n", + "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m11.3/11.3 MB\u001b[0m \u001b[31m66.3 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", + "\u001b[?25hCollecting mediapipe==0.10.3 (from -r requirements.txt (line 62))\n", + " Obtaining dependency information for mediapipe==0.10.3 from https://files.pythonhosted.org/packages/dc/d8/4ea533f021eae54f6449a49e8456d2d045708e6d1081313bad7a1ead3386/mediapipe-0.10.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata\n", + " Downloading mediapipe-0.10.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (9.6 kB)\n", + "Requirement already satisfied: mpmath==1.3.0 in /usr/local/lib/python3.8/site-packages (from -r requirements.txt (line 64)) (1.3.0)\n", + "Collecting networkx==2.8.4 (from -r requirements.txt (line 66))\n", + " Downloading networkx-2.8.4-py3-none-any.whl (2.0 MB)\n", + "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m2.0/2.0 MB\u001b[0m \u001b[31m49.4 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", + "\u001b[?25hCollecting numba==0.55.2 (from -r requirements.txt (line 70))\n", + " Downloading numba-0.55.2-cp38-cp38-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (3.4 MB)\n", + "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m3.4/3.4 MB\u001b[0m \u001b[31m68.2 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", + "\u001b[?25hCollecting numpy==1.22.0 (from -r requirements.txt (line 72))\n", + " Downloading numpy-1.22.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (16.8 MB)\n", + "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m16.8/16.8 MB\u001b[0m \u001b[31m60.7 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", + "\u001b[?25hCollecting onnxruntime==1.9.0 (from -r requirements.txt (line 88))\n", + " Downloading onnxruntime-1.9.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.8 MB)\n", + "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m4.8/4.8 MB\u001b[0m \u001b[31m70.3 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", + "\u001b[?25hCollecting opencv-contrib-python==4.5.5.62 (from -r requirements.txt (line 90))\n", + " Downloading opencv_contrib_python-4.5.5.62-cp36-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (66.6 MB)\n", + "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m66.6/66.6 MB\u001b[0m \u001b[31m9.9 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", + "\u001b[?25hCollecting opencv-python==4.5.5.62 (from -r requirements.txt (line 94))\n", + " Downloading opencv_python-4.5.5.62-cp36-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (60.4 MB)\n", + "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m60.4/60.4 MB\u001b[0m \u001b[31m10.6 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", + "\u001b[?25hCollecting packaging==21.3 (from -r requirements.txt (line 98))\n", + " Downloading packaging-21.3-py3-none-any.whl (40 kB)\n", + "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m40.8/40.8 kB\u001b[0m \u001b[31m4.5 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", + "\u001b[?25hCollecting pillow==10.0.1 (from -r requirements.txt (line 104))\n", + " Obtaining dependency information for pillow==10.0.1 from https://files.pythonhosted.org/packages/cd/6d/07566c00ddb116a0eca1a623abda12da81099a6ff3200e5e6b7e2d3c8c2b/Pillow-10.0.1-cp38-cp38-manylinux_2_28_x86_64.whl.metadata\n", + " Downloading Pillow-10.0.1-cp38-cp38-manylinux_2_28_x86_64.whl.metadata (9.5 kB)\n", + "Collecting pluggy==1.2.0 (from -r requirements.txt (line 111))\n", + " Obtaining dependency information for pluggy==1.2.0 from https://files.pythonhosted.org/packages/51/32/4a79112b8b87b21450b066e102d6608907f4c885ed7b04c3fdb085d4d6ae/pluggy-1.2.0-py3-none-any.whl.metadata\n", + " Downloading pluggy-1.2.0-py3-none-any.whl.metadata (4.4 kB)\n", + "Collecting protobuf==3.20.2 (from -r requirements.txt (line 113))\n", + " Downloading protobuf-3.20.2-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl (1.0 MB)\n", + "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m1.0/1.0 MB\u001b[0m \u001b[31m68.5 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", + "\u001b[?25hRequirement already satisfied: pycparser==2.21 in /usr/local/lib/python3.8/site-packages (from -r requirements.txt (line 118)) (2.21)\n", + "Collecting pyparsing==3.0.9 (from -r requirements.txt (line 120))\n", + " Downloading pyparsing-3.0.9-py3-none-any.whl (98 kB)\n", + "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m98.3/98.3 kB\u001b[0m \u001b[31m13.1 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", + "\u001b[?25hCollecting pytest==7.4.0 (from -r requirements.txt (line 124))\n", + " Obtaining dependency information for pytest==7.4.0 from https://files.pythonhosted.org/packages/33/b2/741130cbcf2bbfa852ed95a60dc311c9e232c7ed25bac3d9b8880a8df4ae/pytest-7.4.0-py3-none-any.whl.metadata\n", + " Downloading pytest-7.4.0-py3-none-any.whl.metadata (8.0 kB)\n", + "Collecting python-dateutil==2.8.2 (from -r requirements.txt (line 126))\n", + " Downloading python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)\n", + "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m247.7/247.7 kB\u001b[0m \u001b[31m28.0 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", + "\u001b[?25hCollecting pywavelets==1.3.0 (from -r requirements.txt (line 128))\n", + " Downloading PyWavelets-1.3.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (6.9 MB)\n", + "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m6.9/6.9 MB\u001b[0m \u001b[31m101.5 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", + "\u001b[?25hCollecting pyyaml==5.4.1 (from -r requirements.txt (line 130))\n", + " Downloading PyYAML-5.4.1-cp38-cp38-manylinux1_x86_64.whl (662 kB)\n", + "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m662.4/662.4 kB\u001b[0m \u001b[31m60.5 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", + "\u001b[?25hRequirement already satisfied: requests==2.31.0 in /usr/local/lib/python3.8/site-packages (from -r requirements.txt (line 132)) (2.31.0)\n", + "Collecting scikit-image==0.19.1 (from -r requirements.txt (line 136))\n", + " Downloading scikit_image-0.19.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (13.8 MB)\n", + "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m13.8/13.8 MB\u001b[0m \u001b[31m101.1 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", + "\u001b[?25hCollecting scipy==1.10.0 (from -r requirements.txt (line 140))\n", + " Downloading scipy-1.10.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (34.5 MB)\n", + "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m34.5/34.5 MB\u001b[0m \u001b[31m20.3 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", + "\u001b[?25hRequirement already satisfied: six==1.16.0 in /usr/local/lib/python3.8/site-packages (from -r requirements.txt (line 145)) (1.16.0)\n", + "Collecting sounddevice==0.4.6 (from -r requirements.txt (line 147))\n", + " Downloading sounddevice-0.4.6-py3-none-any.whl (31 kB)\n", + "Requirement already satisfied: sympy==1.12 in /usr/local/lib/python3.8/site-packages (from -r requirements.txt (line 149)) (1.12)\n", + "Collecting tifffile==2022.5.4 (from -r requirements.txt (line 151))\n", + " Downloading tifffile-2022.5.4-py3-none-any.whl (195 kB)\n", + "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m195.6/195.6 kB\u001b[0m \u001b[31m25.2 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", + "\u001b[?25hCollecting tomli==2.0.1 (from -r requirements.txt (line 153))\n", + " Downloading tomli-2.0.1-py3-none-any.whl (12 kB)\n", + "Requirement already satisfied: torch==2.0.1 in /usr/local/lib/python3.8/site-packages (from -r requirements.txt (line 155)) (2.0.1+cu118)\n", + "Requirement already satisfied: torchvision==0.15.2 in /usr/local/lib/python3.8/site-packages (from -r requirements.txt (line 161)) (0.15.2+cu118)\n", + "Collecting tqdm==4.64.0 (from -r requirements.txt (line 163))\n", + " Downloading tqdm-4.64.0-py2.py3-none-any.whl (78 kB)\n", + "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m78.4/78.4 kB\u001b[0m \u001b[31m11.0 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", + "\u001b[?25hCollecting typing-extensions==4.3.0 (from -r requirements.txt (line 165))\n", + " Downloading typing_extensions-4.3.0-py3-none-any.whl (25 kB)\n", + "Collecting urllib3==1.26.17 (from -r requirements.txt (line 167))\n", + " Obtaining dependency information for urllib3==1.26.17 from https://files.pythonhosted.org/packages/48/fe/a5c6cc46e9fe9171d7ecf0f33ee7aae14642f8d74baa7af4d7840f9358be/urllib3-1.26.17-py2.py3-none-any.whl.metadata\n", + " Downloading urllib3-1.26.17-py2.py3-none-any.whl.metadata (48 kB)\n", + "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m48.7/48.7 kB\u001b[0m \u001b[31m6.7 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", + "\u001b[?25hRequirement already satisfied: setuptools in /usr/local/lib/python3.8/site-packages (from numba==0.55.2->-r requirements.txt (line 70)) (68.0.0)\n", + "Requirement already satisfied: triton==2.0.0 in /usr/local/lib/python3.8/site-packages (from torch==2.0.1->-r requirements.txt (line 155)) (2.0.0)\n", + "Requirement already satisfied: cmake in /usr/local/lib/python3.8/site-packages (from triton==2.0.0->torch==2.0.1->-r requirements.txt (line 155)) (3.25.0)\n", + "Requirement already satisfied: lit in /usr/local/lib/python3.8/site-packages (from triton==2.0.0->torch==2.0.1->-r requirements.txt (line 155)) (15.0.7)\n", + "Downloading charset_normalizer-3.2.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (199 kB)\n", + "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m199.1/199.1 kB\u001b[0m \u001b[31m22.2 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", + "\u001b[?25hDownloading customtkinter-5.2.0-py3-none-any.whl (295 kB)\n", + "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m295.6/295.6 kB\u001b[0m \u001b[31m37.9 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", + "\u001b[?25hDownloading exceptiongroup-1.1.2-py3-none-any.whl (14 kB)\n", + "Downloading filelock-3.12.2-py3-none-any.whl (10 kB)\n", + "Downloading MarkupSafe-2.1.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (25 kB)\n", + "Downloading mediapipe-0.10.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (33.5 MB)\n", + "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m33.5/33.5 MB\u001b[0m \u001b[31m45.9 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", + "\u001b[?25hDownloading Pillow-10.0.1-cp38-cp38-manylinux_2_28_x86_64.whl (3.6 MB)\n", + "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m3.6/3.6 MB\u001b[0m \u001b[31m99.8 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", + "\u001b[?25hDownloading pluggy-1.2.0-py3-none-any.whl (17 kB)\n", + "Downloading pytest-7.4.0-py3-none-any.whl (323 kB)\n", + "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m323.6/323.6 kB\u001b[0m \u001b[31m36.3 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", + "\u001b[?25hDownloading urllib3-1.26.17-py2.py3-none-any.whl (143 kB)\n", + "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m143.4/143.4 kB\u001b[0m \u001b[31m20.0 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", + "\u001b[?25hBuilding wheels for collected packages: dlib, face-alignment\n", + " Building wheel for dlib (setup.py) ... \u001b[?25l\u001b[?25hdone\n", + " Created wheel for dlib: filename=dlib-19.19.0-cp38-cp38-linux_x86_64.whl size=4335307 sha256=df15b755faffd0ce17011805f4075b437695dc3edfc62ed7faeb3b68861608e5\n", + " Stored in directory: /root/.cache/pip/wheels/2b/8e/32/1f50a12053770bfe9a1bc2569c41b7ca4fb44ea69c52778c6b\n", + " Building wheel for face-alignment (setup.py) ... \u001b[?25l\u001b[?25hdone\n", + " Created wheel for face-alignment: filename=face_alignment-1.3.3-py2.py3-none-any.whl size=27543 sha256=03fc1e827955e15d1da9a5bed1f3254738208766111d84ea0497b085970c873b\n", + " Stored in directory: /root/.cache/pip/wheels/19/54/00/316f002d7fd459a8de025fb13eb6f0b4bd87761d3acaff9daa\n", + "Successfully built dlib face-alignment\n", + "Installing collected packages: flatbuffers, dlib, urllib3, typing-extensions, tqdm, tomli, pyyaml, python-dateutil, pyparsing, protobuf, pluggy, pillow, numpy, networkx, markupsafe, kiwisolver, iniconfig, idna, fonttools, filelock, exceptiongroup, darkdetect, cycler, colorama, click, charset-normalizer, attrs, absl-py, tifffile, sounddevice, scipy, pywavelets, packaging, opencv-python, opencv-contrib-python, onnxruntime, numba, imageio, customtkinter, scikit-image, pytest, matplotlib, mediapipe, kornia, face-alignment\n", + " Attempting uninstall: flatbuffers\n", + " Found existing installation: flatbuffers 23.5.26\n", + " Uninstalling flatbuffers-23.5.26:\n", + " Successfully uninstalled flatbuffers-23.5.26\n", + " Attempting uninstall: urllib3\n", + " Found existing installation: urllib3 1.25.8\n", + " Uninstalling urllib3-1.25.8:\n", + " Successfully uninstalled urllib3-1.25.8\n", + " Attempting uninstall: typing-extensions\n", + " Found existing installation: typing_extensions 4.4.0\n", + " Uninstalling typing_extensions-4.4.0:\n", + " Successfully uninstalled typing_extensions-4.4.0\n", + " Attempting uninstall: tqdm\n", + " Found existing installation: tqdm 4.65.0\n", + " Uninstalling tqdm-4.65.0:\n", + " Successfully uninstalled tqdm-4.65.0\n", + " Attempting uninstall: protobuf\n", + " Found existing installation: protobuf 4.24.4\n", + " Uninstalling protobuf-4.24.4:\n", + " Successfully uninstalled protobuf-4.24.4\n", + " Attempting uninstall: pluggy\n", + " Found existing installation: pluggy 1.0.0\n", + " Uninstalling pluggy-1.0.0:\n", + " Successfully uninstalled pluggy-1.0.0\n", + " Attempting uninstall: pillow\n", + " Found existing installation: Pillow 9.3.0\n", + " Uninstalling Pillow-9.3.0:\n", + " Successfully uninstalled Pillow-9.3.0\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: networkx\n", + " Found existing installation: networkx 3.0\n", + " Uninstalling networkx-3.0:\n", + " Successfully uninstalled networkx-3.0\n", + " Attempting uninstall: markupsafe\n", + " Found existing installation: MarkupSafe 2.1.2\n", + " Uninstalling MarkupSafe-2.1.2:\n", + " Successfully uninstalled MarkupSafe-2.1.2\n", + " Attempting uninstall: idna\n", + " Found existing installation: idna 3.4\n", + " Uninstalling idna-3.4:\n", + " Successfully uninstalled idna-3.4\n", + " Attempting uninstall: filelock\n", + " Found existing installation: filelock 3.9.0\n", + " Uninstalling filelock-3.9.0:\n", + " Successfully uninstalled filelock-3.9.0\n", + " Attempting uninstall: charset-normalizer\n", + " Found existing installation: charset-normalizer 2.0.4\n", + " Uninstalling charset-normalizer-2.0.4:\n", + " Successfully uninstalled charset-normalizer-2.0.4\n", + " Attempting uninstall: packaging\n", + " Found existing installation: packaging 23.1\n", + " Uninstalling packaging-23.1:\n", + " Successfully uninstalled packaging-23.1\n", + "Successfully installed absl-py-1.1.0 attrs-21.4.0 charset-normalizer-3.2.0 click-8.0.2 colorama-0.4.6 customtkinter-5.2.0 cycler-0.11.0 darkdetect-0.8.0 dlib-19.19.0 exceptiongroup-1.1.2 face-alignment-1.3.3 filelock-3.12.2 flatbuffers-2.0 fonttools-4.34.4 idna-2.10 imageio-2.19.3 iniconfig-2.0.0 kiwisolver-1.4.3 kornia-0.6.5 markupsafe-2.1.3 matplotlib-3.5.2 mediapipe-0.10.3 networkx-2.8.4 numba-0.55.2 numpy-1.22.0 onnxruntime-1.9.0 opencv-contrib-python-4.5.5.62 opencv-python-4.5.5.62 packaging-21.3 pillow-10.0.1 pluggy-1.2.0 protobuf-3.20.2 pyparsing-3.0.9 pytest-7.4.0 python-dateutil-2.8.2 pywavelets-1.3.0 pyyaml-5.4.1 scikit-image-0.19.1 scipy-1.10.0 sounddevice-0.4.6 tifffile-2022.5.4 tomli-2.0.1 tqdm-4.64.0 typing-extensions-4.3.0 urllib3-1.26.17\n", + "\u001b[33mWARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv\u001b[0m\u001b[33m\n", + "\u001b[0m" + ] + }, + { + "output_type": "display_data", + "data": { + "application/vnd.colab-display-data+json": { + "pip_warning": { + "packages": [ + "dateutil" + ] + } + } + }, + "metadata": {} + }, + { + "output_type": "stream", + "name": "stdout", + "text": [ + "/bin/bash: /usr/local/lib/libtinfo.so.6: no version information available (required by /bin/bash)\n", + "Obtaining file:///content/dot\n", + " Installing build dependencies ... \u001b[?25l\u001b[?25hdone\n", + " Checking if build backend supports build_editable ... \u001b[?25l\u001b[?25hdone\n", + " Getting requirements to build editable ... \u001b[?25l\u001b[?25hdone\n", + " Preparing editable metadata (pyproject.toml) ... \u001b[?25l\u001b[?25hdone\n", + "Requirement already satisfied: click in /usr/local/lib/python3.8/site-packages (from dot==1.1.0) (8.0.2)\n", + "Requirement already satisfied: dlib in /usr/local/lib/python3.8/site-packages (from dot==1.1.0) (19.19.0)\n", + "Requirement already satisfied: face-alignment in /usr/local/lib/python3.8/site-packages (from dot==1.1.0) (1.3.3)\n", + "Requirement already satisfied: kornia in /usr/local/lib/python3.8/site-packages (from dot==1.1.0) (0.6.5)\n", + "Requirement already satisfied: mediapipe in /usr/local/lib/python3.8/site-packages (from dot==1.1.0) (0.10.3)\n", + "Requirement already satisfied: numpy in /usr/local/lib/python3.8/site-packages (from dot==1.1.0) (1.22.0)\n", + "Requirement already satisfied: onnxruntime in /usr/local/lib/python3.8/site-packages (from dot==1.1.0) (1.9.0)\n", + "Requirement already satisfied: opencv-contrib-python in /usr/local/lib/python3.8/site-packages (from dot==1.1.0) (4.5.5.62)\n", + "Requirement already satisfied: opencv-python in /usr/local/lib/python3.8/site-packages (from dot==1.1.0) (4.5.5.62)\n", + "Requirement already satisfied: Pillow in /usr/local/lib/python3.8/site-packages (from dot==1.1.0) (10.0.1)\n", + "Requirement already satisfied: protobuf in /usr/local/lib/python3.8/site-packages (from dot==1.1.0) (3.20.2)\n", + "Requirement already satisfied: PyYAML in /usr/local/lib/python3.8/site-packages (from dot==1.1.0) (5.4.1)\n", + "Requirement already satisfied: requests in /usr/local/lib/python3.8/site-packages (from dot==1.1.0) (2.31.0)\n", + "Requirement already satisfied: scikit-image in /usr/local/lib/python3.8/site-packages (from dot==1.1.0) (0.19.1)\n", + "Requirement already satisfied: scipy in /usr/local/lib/python3.8/site-packages (from dot==1.1.0) (1.10.0)\n", + "Requirement already satisfied: torch==2.0.1 in /usr/local/lib/python3.8/site-packages (from dot==1.1.0) (2.0.1+cu118)\n", + "Requirement already satisfied: torchvision==0.15.2 in /usr/local/lib/python3.8/site-packages (from dot==1.1.0) (0.15.2+cu118)\n", + "Requirement already satisfied: customtkinter in /usr/local/lib/python3.8/site-packages (from dot==1.1.0) (5.2.0)\n", + "Requirement already satisfied: pytest in /usr/local/lib/python3.8/site-packages (from dot==1.1.0) (7.4.0)\n", + "Requirement already satisfied: filelock in /usr/local/lib/python3.8/site-packages (from torch==2.0.1->dot==1.1.0) (3.12.2)\n", + "Requirement already satisfied: typing-extensions in /usr/local/lib/python3.8/site-packages (from torch==2.0.1->dot==1.1.0) (4.3.0)\n", + "Requirement already satisfied: sympy in /usr/local/lib/python3.8/site-packages (from torch==2.0.1->dot==1.1.0) (1.12)\n", + "Requirement already satisfied: networkx in /usr/local/lib/python3.8/site-packages (from torch==2.0.1->dot==1.1.0) (2.8.4)\n", + "Requirement already satisfied: jinja2 in /usr/local/lib/python3.8/site-packages (from torch==2.0.1->dot==1.1.0) (3.1.2)\n", + "Requirement already satisfied: triton==2.0.0 in /usr/local/lib/python3.8/site-packages (from torch==2.0.1->dot==1.1.0) (2.0.0)\n", + "Requirement already satisfied: cmake in /usr/local/lib/python3.8/site-packages (from triton==2.0.0->torch==2.0.1->dot==1.1.0) (3.25.0)\n", + "Requirement already satisfied: lit in /usr/local/lib/python3.8/site-packages (from triton==2.0.0->torch==2.0.1->dot==1.1.0) (15.0.7)\n", + "Requirement already satisfied: darkdetect in /usr/local/lib/python3.8/site-packages (from customtkinter->dot==1.1.0) (0.8.0)\n", + "Requirement already satisfied: tqdm in /usr/local/lib/python3.8/site-packages (from face-alignment->dot==1.1.0) (4.64.0)\n", + "Requirement already satisfied: numba in /usr/local/lib/python3.8/site-packages (from face-alignment->dot==1.1.0) (0.55.2)\n", + "Requirement already satisfied: packaging in /usr/local/lib/python3.8/site-packages (from kornia->dot==1.1.0) (21.3)\n", + "Requirement already satisfied: absl-py in /usr/local/lib/python3.8/site-packages (from mediapipe->dot==1.1.0) (1.1.0)\n", + "Requirement already satisfied: attrs>=19.1.0 in /usr/local/lib/python3.8/site-packages (from mediapipe->dot==1.1.0) (21.4.0)\n", + "Requirement already satisfied: flatbuffers>=2.0 in /usr/local/lib/python3.8/site-packages (from mediapipe->dot==1.1.0) (2.0)\n", + "Requirement already satisfied: matplotlib in /usr/local/lib/python3.8/site-packages (from mediapipe->dot==1.1.0) (3.5.2)\n", + "Requirement already satisfied: sounddevice>=0.4.4 in /usr/local/lib/python3.8/site-packages (from mediapipe->dot==1.1.0) (0.4.6)\n", + "Requirement already satisfied: iniconfig in /usr/local/lib/python3.8/site-packages (from pytest->dot==1.1.0) (2.0.0)\n", + "Requirement already satisfied: pluggy<2.0,>=0.12 in /usr/local/lib/python3.8/site-packages (from pytest->dot==1.1.0) (1.2.0)\n", + "Requirement already satisfied: exceptiongroup>=1.0.0rc8 in /usr/local/lib/python3.8/site-packages (from pytest->dot==1.1.0) (1.1.2)\n", + "Requirement already satisfied: tomli>=1.0.0 in /usr/local/lib/python3.8/site-packages (from pytest->dot==1.1.0) (2.0.1)\n", + "Requirement already satisfied: charset-normalizer<4,>=2 in /usr/local/lib/python3.8/site-packages (from requests->dot==1.1.0) (3.2.0)\n", + "Requirement already satisfied: idna<4,>=2.5 in /usr/local/lib/python3.8/site-packages (from requests->dot==1.1.0) (2.10)\n", + "Requirement already satisfied: urllib3<3,>=1.21.1 in /usr/local/lib/python3.8/site-packages (from requests->dot==1.1.0) (1.26.17)\n", + "Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.8/site-packages (from requests->dot==1.1.0) (2023.7.22)\n", + "Requirement already satisfied: imageio>=2.4.1 in /usr/local/lib/python3.8/site-packages (from scikit-image->dot==1.1.0) (2.19.3)\n", + "Requirement already satisfied: tifffile>=2019.7.26 in /usr/local/lib/python3.8/site-packages (from scikit-image->dot==1.1.0) (2022.5.4)\n", + "Requirement already satisfied: PyWavelets>=1.1.1 in /usr/local/lib/python3.8/site-packages (from scikit-image->dot==1.1.0) (1.3.0)\n", + "Requirement already satisfied: pyparsing!=3.0.5,>=2.0.2 in /usr/local/lib/python3.8/site-packages (from packaging->kornia->dot==1.1.0) (3.0.9)\n", + "Requirement already satisfied: CFFI>=1.0 in /usr/local/lib/python3.8/site-packages (from sounddevice>=0.4.4->mediapipe->dot==1.1.0) (1.15.1)\n", + "Requirement already satisfied: MarkupSafe>=2.0 in /usr/local/lib/python3.8/site-packages (from jinja2->torch==2.0.1->dot==1.1.0) (2.1.3)\n", + "Requirement already satisfied: cycler>=0.10 in /usr/local/lib/python3.8/site-packages (from matplotlib->mediapipe->dot==1.1.0) (0.11.0)\n", + "Requirement already satisfied: fonttools>=4.22.0 in /usr/local/lib/python3.8/site-packages (from matplotlib->mediapipe->dot==1.1.0) (4.34.4)\n", + "Requirement already satisfied: kiwisolver>=1.0.1 in /usr/local/lib/python3.8/site-packages (from matplotlib->mediapipe->dot==1.1.0) (1.4.3)\n", + "Requirement already satisfied: python-dateutil>=2.7 in /usr/local/lib/python3.8/site-packages (from matplotlib->mediapipe->dot==1.1.0) (2.8.2)\n", + "Requirement already satisfied: llvmlite<0.39,>=0.38.0rc1 in /usr/local/lib/python3.8/site-packages (from numba->face-alignment->dot==1.1.0) (0.38.1)\n", + "Requirement already satisfied: setuptools in /usr/local/lib/python3.8/site-packages (from numba->face-alignment->dot==1.1.0) (68.0.0)\n", + "Requirement already satisfied: mpmath>=0.19 in /usr/local/lib/python3.8/site-packages (from sympy->torch==2.0.1->dot==1.1.0) (1.3.0)\n", + "Requirement already satisfied: pycparser in /usr/local/lib/python3.8/site-packages (from CFFI>=1.0->sounddevice>=0.4.4->mediapipe->dot==1.1.0) (2.21)\n", + "Requirement already satisfied: six>=1.5 in /usr/local/lib/python3.8/site-packages (from python-dateutil>=2.7->matplotlib->mediapipe->dot==1.1.0) (1.16.0)\n", + "Building wheels for collected packages: dot\n", + " Building editable for dot (pyproject.toml) ... \u001b[?25l\u001b[?25hdone\n", + " Created wheel for dot: filename=dot-1.1.0-0.editable-py3-none-any.whl size=8436 sha256=a16e3a7a5001d7d8fbe049af23b4b413659a14c72873d744f2e3658feebf351e\n", + " Stored in directory: /tmp/pip-ephem-wheel-cache-u17udi_z/wheels/95/9f/46/753598c47299021ffeb65bed1b1893ac88324f4e169356e665\n", + "Successfully built dot\n", + "Installing collected packages: dot\n", + "Successfully installed dot-1.1.0\n", + "\u001b[33mWARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv\u001b[0m\u001b[33m\n", + "\u001b[0m" + ] + } + ], + "source": [ + "# update base conda environment: install python=3.8 + cudatoolkit=11.8\n", + "!conda install python=3.8 cudatoolkit=11.8\n", + "\n", + "# install pip requirements\n", + "!pip install llvmlite==0.38.1 onnxruntime-gpu==1.9.0\n", + "!pip install torch==2.0.1+cu118 torchvision==0.15.2+cu118 torchaudio==2.0.2 --index-url https://download.pytorch.org/whl/cu118\n", + "!pip install -r requirements.txt\n", + "\n", + "# install dot\n", + "!pip install -e .\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "id": "cuCaEkOiWIqy" + }, + "source": [ + "## Step 2 - Download Pretrained models" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "colab": { + "base_uri": "https://localhost:8080/" + }, + "id": "RVQqmGmsWIqy", + "outputId": "3c61a843-985e-4e32-c8d5-ebf542f1cb82" + }, + "outputs": [ + { + "output_type": "stream", + "name": "stdout", + "text": [ + "/content/dot\n", + "/bin/bash: /usr/local/lib/libtinfo.so.6: no version information available (required by /bin/bash)\n", + "/bin/bash: /usr/local/lib/libtinfo.so.6: no version information available (required by /bin/bash)\n", + "Downloading...\n", + "From: https://drive.google.com/uc?id=1Qaf9hE62XSvgmxR43dfiwEPWWS_dXSCE\n", + "To: /content/dot/dot_model_checkpoints.zip\n", + "100% 2.36G/2.36G [00:30<00:00, 76.4MB/s]\n", + "/bin/bash: /usr/local/lib/libtinfo.so.6: no version information available (required by /bin/bash)\n", + "Archive: dot_model_checkpoints.zip\n", + " creating: saved_models/faceswap_cv/\n", + " inflating: saved_models/faceswap_cv/shape_predictor_68_face_landmarks.dat \n", + " creating: saved_models/fomm/\n", + " inflating: saved_models/fomm/vox-adv-cpk.pth.tar \n", + " creating: saved_models/gpen/\n", + " creating: saved_models/gpen/weights/\n", + " inflating: saved_models/gpen/weights/GPEN-BFR-256.pth \n", + " inflating: saved_models/gpen/weights/GPEN-BFR-512.pth \n", + " inflating: saved_models/gpen/weights/GPEN-Inpainting-1024.pth \n", + " inflating: saved_models/gpen/weights/RetinaFace-R50.pth \n", + " creating: saved_models/simswap/\n", + " creating: saved_models/simswap/arcface_model/\n", + " inflating: saved_models/simswap/arcface_model/arcface_checkpoint.tar \n", + " creating: saved_models/simswap/checkpoints/\n", + " creating: saved_models/simswap/checkpoints/512/\n", + " inflating: saved_models/simswap/checkpoints/512/550000_net_G.pth \n", + " creating: saved_models/simswap/checkpoints/people/\n", + " inflating: saved_models/simswap/checkpoints/people/550000_net_G.pth \n", + " extracting: saved_models/simswap/checkpoints/people/iter.txt \n", + " inflating: saved_models/simswap/checkpoints/people/latest_net_D1.pth \n", + " inflating: saved_models/simswap/checkpoints/people/latest_net_D2.pth \n", + " inflating: saved_models/simswap/checkpoints/people/latest_net_G.pth \n", + " inflating: saved_models/simswap/checkpoints/people/loss_log.txt \n", + " inflating: saved_models/simswap/checkpoints/people/opt.txt \n", + " creating: saved_models/simswap/insightface_func/\n", + " creating: saved_models/simswap/insightface_func/models/\n", + " creating: saved_models/simswap/insightface_func/models/antelope/\n", + " inflating: saved_models/simswap/insightface_func/models/antelope/glintr100.onnx \n", + " inflating: saved_models/simswap/insightface_func/models/antelope/scrfd_10g_bnkps.onnx \n", + " creating: saved_models/simswap/parsing_model/\n", + " inflating: saved_models/simswap/parsing_model/BIS18.pt \n", + " creating: saved_models/simswap/parsing_model/checkpoint/\n", + " inflating: saved_models/simswap/parsing_model/checkpoint/79999_iter.pth \n", + "/bin/bash: /usr/local/lib/libtinfo.so.6: no version information available (required by /bin/bash)\n" + ] + } + ], + "source": [ + "%cd /content/dot\n", + "\n", + "# download binaries\n", + "!gdown 1Qaf9hE62XSvgmxR43dfiwEPWWS_dXSCE\n", + "\n", + "# unzip binaries\n", + "!unzip dot_model_checkpoints.zip\n", + "\n", + "# clean-up\n", + "!rm -rf *.z*\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "id": "IEYtimAjWIqz" + }, + "source": [ + "## Step 3: Run dot on image and video files instead of camera feed\n", + "\n", + "### Using SimSwap on Images\n" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "id": "cA0H6ynvWIq0", + "colab": { + "base_uri": "https://localhost:8080/" + }, + "outputId": "8f779835-8f00-41c8-ac79-e7b72dbf5227" + }, + "outputs": [ + { + "output_type": "stream", + "name": "stdout", + "text": [ + "/bin/bash: /usr/local/lib/libtinfo.so.6: no version information available (required by /bin/bash)\n", + "INFO: Created TensorFlow Lite XNNPACK delegate for CPU.\n", + "Downloading: \"https://download.pytorch.org/models/resnet18-5c106cde.pth\" to /root/.cache/torch/hub/checkpoints/resnet18-5c106cde.pth\n", + "100% 44.7M/44.7M [00:00<00:00, 140MB/s]\n", + "0: Performed face swap ('data/Leonardo Dicaprio.jpg', 'data/eminem.jpg') saved to image_simswap_output/21105810.jpg\n", + "1: Performed face swap ('data/Joe Biden.jpg', 'data/schwarzenegger.png') saved to image_simswap_output/31108101.jpg\n", + "2: Performed face swap ('data/Tom Cruise.jpg', 'data/Leonardo Dicaprio.jpg') saved to image_simswap_output/1037907.jpg\n", + "3: Performed face swap ('data/schwarzenegger.png', 'data/Joe Biden.jpg') saved to image_simswap_output/672049.jpg\n", + "4: Performed face swap ('data/David Beckham.jpg', 'data/David Beckham.jpg') saved to image_simswap_output/248473.jpg\n", + "5: Performed face swap ('data/obama.jpg', 'data/Tom Cruise.jpg') saved to image_simswap_output/1017391.jpg\n", + "6: Performed face swap ('data/schwarzenegger.png', 'data/ronaldo.png') saved to image_simswap_output/848782.jpg\n", + "7: Performed face swap ('data/mona.jpg', 'data/David Beckham.jpg') saved to image_simswap_output/173054.jpg\n", + "8: Performed face swap ('data/obama.jpg', 'data/einstein.jpg') saved to image_simswap_output/412239.jpg\n", + "9: Performed face swap ('data/ronaldo.png', 'data/ronaldo.png') saved to image_simswap_output/45810910.jpg\n", + "10: Performed face swap ('data/potter.jpg', 'data/Tom Cruise.jpg') saved to image_simswap_output/408778.jpg\n", + "11: Performed face swap ('data/einstein.jpg', 'data/Tom Cruise.jpg') saved to image_simswap_output/615468.jpg\n", + "12: Performed face swap ('data/ronaldo.png', 'data/obama.jpg') saved to image_simswap_output/626107.jpg\n", + "13: Performed face swap ('data/obama.jpg', 'data/potter.jpg') saved to image_simswap_output/404115.jpg\n", + "14: Performed face swap ('data/Brad Pitt.jpg', 'data/mona.jpg') saved to image_simswap_output/9071027.jpg\n", + "15: Performed face swap ('data/Brad Pitt.jpg', 'data/Pewdiepie.jpg') saved to image_simswap_output/471588.jpg\n", + "16: Performed face swap ('data/David Beckham.jpg', 'data/Joe Biden.jpg') saved to image_simswap_output/2910674.jpg\n", + "17: Performed face swap ('data/eminem.jpg', 'data/David Beckham.jpg') saved to image_simswap_output/355928.jpg\n", + "18: Performed face swap ('data/David Beckham.jpg', 'data/obama.jpg') saved to image_simswap_output/885678.jpg\n", + "19: Performed face swap ('data/mona.jpg', 'data/einstein.jpg') saved to image_simswap_output/878011.jpg\n", + "20: Performed face swap ('data/Brad Pitt.jpg', 'data/obama.jpg') saved to image_simswap_output/2047105.jpg\n", + "21: Performed face swap ('data/Pewdiepie.jpg', 'data/Brad Pitt.jpg') saved to image_simswap_output/811244.jpg\n", + "22: Performed face swap ('data/ronaldo.png', 'data/potter.jpg') saved to image_simswap_output/363091.jpg\n", + "23: Performed face swap ('data/obama.jpg', 'data/obama.jpg') saved to image_simswap_output/4101712.jpg\n", + "24: Performed face swap ('data/potter.jpg', 'data/einstein.jpg') saved to image_simswap_output/8856110.jpg\n", + "25: Performed face swap ('data/schwarzenegger.png', 'data/schwarzenegger.png') saved to image_simswap_output/31010910.jpg\n", + "26: Performed face swap ('data/Leonardo Dicaprio.jpg', 'data/Tom Cruise.jpg') saved to image_simswap_output/6010317.jpg\n", + "27: Performed face swap ('data/potter.jpg', 'data/mona.jpg') saved to image_simswap_output/741599.jpg\n", + "28: Performed face swap ('data/mona.jpg', 'data/Markiplier.jpg') saved to image_simswap_output/203179.jpg\n", + "29: Performed face swap ('data/Joe Biden.jpg', 'data/Brad Pitt.jpg') saved to image_simswap_output/333289.jpg\n", + "30: Performed face swap ('data/eminem.jpg', 'data/Markiplier.jpg') saved to image_simswap_output/625441.jpg\n", + "31: Performed face swap ('data/David Beckham.jpg', 'data/jobs.jpg') saved to image_simswap_output/2463107.jpg\n", + "32: Performed face swap ('data/schwarzenegger.png', 'data/einstein.jpg') saved to image_simswap_output/779597.jpg\n", + "33: Performed face swap ('data/eminem.jpg', 'data/obama.jpg') saved to image_simswap_output/11101057.jpg\n", + "34: Performed face swap ('data/Brad Pitt.jpg', 'data/eminem.jpg') saved to image_simswap_output/918773.jpg\n", + "35: Performed face swap ('data/David Beckham.jpg', 'data/schwarzenegger.png') saved to image_simswap_output/4110695.jpg\n", + "36: Performed face swap ('data/obama.jpg', 'data/Joe Biden.jpg') saved to image_simswap_output/7710988.jpg\n", + "37: Performed face swap ('data/obama.jpg', 'data/Markiplier.jpg') saved to image_simswap_output/10574110.jpg\n", + "38: Performed face swap ('data/obama.jpg', 'data/schwarzenegger.png') saved to image_simswap_output/1028506.jpg\n", + "39: Performed face swap ('data/jobs.jpg', 'data/Tom Cruise.jpg') saved to image_simswap_output/417350.jpg\n", + "40: Performed face swap ('data/Tom Cruise.jpg', 'data/eminem.jpg') saved to image_simswap_output/51101058.jpg\n", + "41: Performed face swap ('data/Joe Biden.jpg', 'data/Joe Biden.jpg') saved to image_simswap_output/3819110.jpg\n", + "42: Performed face swap ('data/Pewdiepie.jpg', 'data/ronaldo.png') saved to image_simswap_output/765082.jpg\n", + "43: Performed face swap ('data/Markiplier.jpg', 'data/ronaldo.png') saved to image_simswap_output/197544.jpg\n", + "44: Performed face swap ('data/ronaldo.png', 'data/jobs.jpg') saved to image_simswap_output/330823.jpg\n", + "45: Performed face swap ('data/einstein.jpg', 'data/Leonardo Dicaprio.jpg') saved to image_simswap_output/10088710.jpg\n", + "46: Performed face swap ('data/Markiplier.jpg', 'data/mona.jpg') saved to image_simswap_output/777337.jpg\n", + "47: Performed face swap ('data/schwarzenegger.png', 'data/obama.jpg') saved to image_simswap_output/141431.jpg\n", + "48: Performed face swap ('data/einstein.jpg', 'data/mona.jpg') saved to image_simswap_output/912604.jpg\n", + "49: Performed face swap ('data/jobs.jpg', 'data/schwarzenegger.png') saved to image_simswap_output/326091.jpg\n", + "50: Performed face swap ('data/eminem.jpg', 'data/jobs.jpg') saved to image_simswap_output/119748.jpg\n", + "51: Performed face swap ('data/Markiplier.jpg', 'data/eminem.jpg') saved to image_simswap_output/4873010.jpg\n", + "52: Performed face swap ('data/Markiplier.jpg', 'data/potter.jpg') saved to image_simswap_output/659735.jpg\n", + "53: Performed face swap ('data/Joe Biden.jpg', 'data/Pewdiepie.jpg') saved to image_simswap_output/665270.jpg\n", + "54: Performed face swap ('data/Leonardo Dicaprio.jpg', 'data/obama.jpg') saved to image_simswap_output/8103310.jpg\n", + "55: Performed face swap ('data/David Beckham.jpg', 'data/Leonardo Dicaprio.jpg') saved to image_simswap_output/1595710.jpg\n", + "56: Performed face swap ('data/potter.jpg', 'data/David Beckham.jpg') saved to image_simswap_output/7991063.jpg\n", + "57: Performed face swap ('data/Tom Cruise.jpg', 'data/obama.jpg') saved to image_simswap_output/975943.jpg\n", + "58: Performed face swap ('data/Leonardo Dicaprio.jpg', 'data/Brad Pitt.jpg') saved to image_simswap_output/369994.jpg\n", + "59: Performed face swap ('data/potter.jpg', 'data/Markiplier.jpg') saved to image_simswap_output/799490.jpg\n", + "60: Performed face swap ('data/Tom Cruise.jpg', 'data/mona.jpg') saved to image_simswap_output/8310473.jpg\n", + "61: Performed face swap ('data/David Beckham.jpg', 'data/potter.jpg') saved to image_simswap_output/264425.jpg\n", + "62: Performed face swap ('data/schwarzenegger.png', 'data/Markiplier.jpg') saved to image_simswap_output/257674.jpg\n", + "63: Performed face swap ('data/eminem.jpg', 'data/schwarzenegger.png') saved to image_simswap_output/747728.jpg\n", + "64: Performed face swap ('data/obama.jpg', 'data/David Beckham.jpg') saved to image_simswap_output/427144.jpg\n", + "65: Performed face swap ('data/Markiplier.jpg', 'data/obama.jpg') saved to image_simswap_output/047812.jpg\n", + "66: Performed face swap ('data/Brad Pitt.jpg', 'data/Joe Biden.jpg') saved to image_simswap_output/108994.jpg\n", + "67: Performed face swap ('data/David Beckham.jpg', 'data/eminem.jpg') saved to image_simswap_output/048042.jpg\n", + "68: Performed face swap ('data/einstein.jpg', 'data/David Beckham.jpg') saved to image_simswap_output/655669.jpg\n", + "69: Performed face swap ('data/jobs.jpg', 'data/ronaldo.png') saved to image_simswap_output/537210.jpg\n", + "70: Performed face swap ('data/Pewdiepie.jpg', 'data/David Beckham.jpg') saved to image_simswap_output/506869.jpg\n", + "71: Performed face swap ('data/Markiplier.jpg', 'data/David Beckham.jpg') saved to image_simswap_output/860112.jpg\n", + "72: Performed face swap ('data/Leonardo Dicaprio.jpg', 'data/ronaldo.png') saved to image_simswap_output/291697.jpg\n", + "73: Performed face swap ('data/schwarzenegger.png', 'data/Pewdiepie.jpg') saved to image_simswap_output/551444.jpg\n", + "74: Performed face swap ('data/obama.jpg', 'data/mona.jpg') saved to image_simswap_output/133214.jpg\n", + "75: Performed face swap ('data/Pewdiepie.jpg', 'data/Leonardo Dicaprio.jpg') saved to image_simswap_output/60101070.jpg\n", + "76: Performed face swap ('data/Leonardo Dicaprio.jpg', 'data/Joe Biden.jpg') saved to image_simswap_output/655041.jpg\n", + "77: Performed face swap ('data/potter.jpg', 'data/jobs.jpg') saved to image_simswap_output/906668.jpg\n", + "78: Performed face swap ('data/ronaldo.png', 'data/mona.jpg') saved to image_simswap_output/6004106.jpg\n", + "79: Performed face swap ('data/Tom Cruise.jpg', 'data/David Beckham.jpg') saved to image_simswap_output/3810318.jpg\n", + "80: Performed face swap ('data/potter.jpg', 'data/Joe Biden.jpg') saved to image_simswap_output/2254710.jpg\n", + "81: Performed face swap ('data/Leonardo Dicaprio.jpg', 'data/mona.jpg') saved to image_simswap_output/4781110.jpg\n", + "82: Performed face swap ('data/Leonardo Dicaprio.jpg', 'data/Pewdiepie.jpg') saved to image_simswap_output/537636.jpg\n", + "83: Performed face swap ('data/Brad Pitt.jpg', 'data/Tom Cruise.jpg') saved to image_simswap_output/836066.jpg\n", + "84: Performed face swap ('data/mona.jpg', 'data/Joe Biden.jpg') saved to image_simswap_output/653814.jpg\n", + "85: Performed face swap ('data/potter.jpg', 'data/schwarzenegger.png') saved to image_simswap_output/6736010.jpg\n", + "86: Performed face swap ('data/Joe Biden.jpg', 'data/Tom Cruise.jpg') saved to image_simswap_output/1077798.jpg\n", + "87: Performed face swap ('data/Tom Cruise.jpg', 'data/schwarzenegger.png') saved to image_simswap_output/6875710.jpg\n", + "88: Performed face swap ('data/Pewdiepie.jpg', 'data/Tom Cruise.jpg') saved to image_simswap_output/512062.jpg\n", + "89: Performed face swap ('data/Markiplier.jpg', 'data/schwarzenegger.png') saved to image_simswap_output/085946.jpg\n", + "90: Performed face swap ('data/Joe Biden.jpg', 'data/David Beckham.jpg') saved to image_simswap_output/150716.jpg\n", + "91: Performed face swap ('data/Joe Biden.jpg', 'data/jobs.jpg') saved to image_simswap_output/155524.jpg\n", + "92: Performed face swap ('data/eminem.jpg', 'data/Brad Pitt.jpg') saved to image_simswap_output/310367.jpg\n", + "93: Performed face swap ('data/jobs.jpg', 'data/Brad Pitt.jpg') saved to image_simswap_output/000324.jpg\n", + "94: Performed face swap ('data/potter.jpg', 'data/obama.jpg') saved to image_simswap_output/022637.jpg\n", + "95: Performed face swap ('data/jobs.jpg', 'data/eminem.jpg') saved to image_simswap_output/901037.jpg\n", + "96: Performed face swap ('data/Pewdiepie.jpg', 'data/Joe Biden.jpg') saved to image_simswap_output/7662102.jpg\n", + "97: Performed face swap ('data/mona.jpg', 'data/obama.jpg') saved to image_simswap_output/3710750.jpg\n", + "98: Performed face swap ('data/eminem.jpg', 'data/einstein.jpg') saved to image_simswap_output/733681.jpg\n", + "99: Performed face swap ('data/Tom Cruise.jpg', 'data/ronaldo.png') saved to image_simswap_output/10051057.jpg\n", + "100: Performed face swap ('data/Markiplier.jpg', 'data/Brad Pitt.jpg') saved to image_simswap_output/674984.jpg\n", + "101: Performed face swap ('data/obama.jpg', 'data/jobs.jpg') saved to image_simswap_output/1025430.jpg\n", + "102: Performed face swap ('data/Markiplier.jpg', 'data/Pewdiepie.jpg') saved to image_simswap_output/1054718.jpg\n", + "103: Performed face swap ('data/Pewdiepie.jpg', 'data/Markiplier.jpg') saved to image_simswap_output/4811104.jpg\n", + "104: Performed face swap ('data/Brad Pitt.jpg', 'data/Markiplier.jpg') saved to image_simswap_output/212583.jpg\n", + "105: Performed face swap ('data/Brad Pitt.jpg', 'data/schwarzenegger.png') saved to image_simswap_output/091397.jpg\n", + "106: Performed face swap ('data/jobs.jpg', 'data/Markiplier.jpg') saved to image_simswap_output/137371.jpg\n", + "107: Performed face swap ('data/Leonardo Dicaprio.jpg', 'data/Leonardo Dicaprio.jpg') saved to image_simswap_output/467458.jpg\n", + "108: Performed face swap ('data/Joe Biden.jpg', 'data/eminem.jpg') saved to image_simswap_output/99710910.jpg\n", + "109: Performed face swap ('data/Brad Pitt.jpg', 'data/potter.jpg') saved to image_simswap_output/724499.jpg\n", + "110: Performed face swap ('data/schwarzenegger.png', 'data/eminem.jpg') saved to image_simswap_output/523821.jpg\n", + "111: Performed face swap ('data/David Beckham.jpg', 'data/Pewdiepie.jpg') saved to image_simswap_output/721368.jpg\n", + "112: Performed face swap ('data/eminem.jpg', 'data/Joe Biden.jpg') saved to image_simswap_output/1053625.jpg\n", + "113: Performed face swap ('data/David Beckham.jpg', 'data/Tom Cruise.jpg') saved to image_simswap_output/1028291.jpg\n", + "114: Performed face swap ('data/Leonardo Dicaprio.jpg', 'data/David Beckham.jpg') saved to image_simswap_output/8102388.jpg\n", + "115: Performed face swap ('data/einstein.jpg', 'data/Joe Biden.jpg') saved to image_simswap_output/824061.jpg\n", + "116: Performed face swap ('data/jobs.jpg', 'data/mona.jpg') saved to image_simswap_output/622127.jpg\n", + "117: Performed face swap ('data/Joe Biden.jpg', 'data/potter.jpg') saved to image_simswap_output/050645.jpg\n", + "118: Performed face swap ('data/eminem.jpg', 'data/eminem.jpg') saved to image_simswap_output/3104832.jpg\n", + "119: Performed face swap ('data/potter.jpg', 'data/ronaldo.png') saved to image_simswap_output/11046100.jpg\n", + "120: Performed face swap ('data/David Beckham.jpg', 'data/einstein.jpg') saved to image_simswap_output/323988.jpg\n", + "121: Performed face swap ('data/einstein.jpg', 'data/obama.jpg') saved to image_simswap_output/5510885.jpg\n", + "122: Performed face swap ('data/mona.jpg', 'data/jobs.jpg') saved to image_simswap_output/2010286.jpg\n", + "123: Performed face swap ('data/Tom Cruise.jpg', 'data/jobs.jpg') saved to image_simswap_output/573302.jpg\n", + "124: Performed face swap ('data/einstein.jpg', 'data/jobs.jpg') saved to image_simswap_output/51005810.jpg\n", + "125: Performed face swap ('data/ronaldo.png', 'data/Brad Pitt.jpg') saved to image_simswap_output/2386109.jpg\n", + "126: Performed face swap ('data/Brad Pitt.jpg', 'data/Leonardo Dicaprio.jpg') saved to image_simswap_output/790346.jpg\n", + "127: Performed face swap ('data/Pewdiepie.jpg', 'data/schwarzenegger.png') saved to image_simswap_output/2196107.jpg\n", + "128: Performed face swap ('data/Markiplier.jpg', 'data/Markiplier.jpg') saved to image_simswap_output/424870.jpg\n", + "129: Performed face swap ('data/schwarzenegger.png', 'data/Tom Cruise.jpg') saved to image_simswap_output/3778210.jpg\n", + "130: Performed face swap ('data/eminem.jpg', 'data/ronaldo.png') saved to image_simswap_output/509470.jpg\n", + "131: Performed face swap ('data/ronaldo.png', 'data/Leonardo Dicaprio.jpg') saved to image_simswap_output/1012826.jpg\n", + "132: Performed face swap ('data/Pewdiepie.jpg', 'data/eminem.jpg') saved to image_simswap_output/75103110.jpg\n", + "133: Performed face swap ('data/eminem.jpg', 'data/Leonardo Dicaprio.jpg') saved to image_simswap_output/2901084.jpg\n", + "134: Performed face swap ('data/schwarzenegger.png', 'data/Brad Pitt.jpg') saved to image_simswap_output/309183.jpg\n", + "135: Performed face swap ('data/Joe Biden.jpg', 'data/mona.jpg') saved to image_simswap_output/589523.jpg\n", + "136: Performed face swap ('data/schwarzenegger.png', 'data/jobs.jpg') saved to image_simswap_output/1076005.jpg\n", + "137: Performed face swap ('data/Leonardo Dicaprio.jpg', 'data/jobs.jpg') saved to image_simswap_output/511433.jpg\n", + "138: Performed face swap ('data/Tom Cruise.jpg', 'data/einstein.jpg') saved to image_simswap_output/9410664.jpg\n", + "139: Performed face swap ('data/Joe Biden.jpg', 'data/Leonardo Dicaprio.jpg') saved to image_simswap_output/962198.jpg\n", + "140: Performed face swap ('data/Leonardo Dicaprio.jpg', 'data/einstein.jpg') saved to image_simswap_output/440807.jpg\n", + "141: Performed face swap ('data/mona.jpg', 'data/ronaldo.png') saved to image_simswap_output/241032.jpg\n", + "142: Performed face swap ('data/Brad Pitt.jpg', 'data/jobs.jpg') saved to image_simswap_output/932512.jpg\n", + "143: Performed face swap ('data/Pewdiepie.jpg', 'data/jobs.jpg') saved to image_simswap_output/896163.jpg\n", + "144: Performed face swap ('data/Brad Pitt.jpg', 'data/einstein.jpg') saved to image_simswap_output/2901018.jpg\n", + "145: Performed face swap ('data/ronaldo.png', 'data/schwarzenegger.png') saved to image_simswap_output/4410579.jpg\n", + "146: Performed face swap ('data/einstein.jpg', 'data/potter.jpg') saved to image_simswap_output/328016.jpg\n", + "147: Performed face swap ('data/jobs.jpg', 'data/potter.jpg') saved to image_simswap_output/377521.jpg\n", + "148: Performed face swap ('data/einstein.jpg', 'data/eminem.jpg') saved to image_simswap_output/10210635.jpg\n", + "149: Performed face swap ('data/mona.jpg', 'data/potter.jpg') saved to image_simswap_output/729571.jpg\n", + "150: Performed face swap ('data/einstein.jpg', 'data/einstein.jpg') saved to image_simswap_output/787330.jpg\n", + "151: Performed face swap ('data/mona.jpg', 'data/Leonardo Dicaprio.jpg') saved to image_simswap_output/577650.jpg\n", + "152: Performed face swap ('data/David Beckham.jpg', 'data/Brad Pitt.jpg') saved to image_simswap_output/867876.jpg\n", + "153: Performed face swap ('data/obama.jpg', 'data/Leonardo Dicaprio.jpg') saved to image_simswap_output/031337.jpg\n", + "154: Performed face swap ('data/Pewdiepie.jpg', 'data/potter.jpg') saved to image_simswap_output/961031.jpg\n", + "155: Performed face swap ('data/mona.jpg', 'data/Pewdiepie.jpg') saved to image_simswap_output/505168.jpg\n", + "156: Performed face swap ('data/einstein.jpg', 'data/Brad Pitt.jpg') saved to image_simswap_output/579892.jpg\n", + "157: Performed face swap ('data/jobs.jpg', 'data/Joe Biden.jpg') saved to image_simswap_output/046442.jpg\n", + "158: Performed face swap ('data/potter.jpg', 'data/Brad Pitt.jpg') saved to image_simswap_output/1003247.jpg\n", + "159: Performed face swap ('data/Tom Cruise.jpg', 'data/Tom Cruise.jpg') saved to image_simswap_output/382537.jpg\n", + "160: Performed face swap ('data/ronaldo.png', 'data/eminem.jpg') saved to image_simswap_output/1475105.jpg\n", + "161: Performed face swap ('data/Leonardo Dicaprio.jpg', 'data/Markiplier.jpg') saved to image_simswap_output/836141.jpg\n", + "162: Performed face swap ('data/ronaldo.png', 'data/David Beckham.jpg') saved to image_simswap_output/561618.jpg\n", + "163: Performed face swap ('data/Brad Pitt.jpg', 'data/Brad Pitt.jpg') saved to image_simswap_output/1003911.jpg\n", + "164: Performed face swap ('data/schwarzenegger.png', 'data/David Beckham.jpg') saved to image_simswap_output/555363.jpg\n", + "165: Performed face swap ('data/Joe Biden.jpg', 'data/ronaldo.png') saved to image_simswap_output/246771.jpg\n", + "166: Performed face swap ('data/eminem.jpg', 'data/mona.jpg') saved to image_simswap_output/384306.jpg\n", + "167: Performed face swap ('data/ronaldo.png', 'data/Tom Cruise.jpg') saved to image_simswap_output/603739.jpg\n", + "168: Performed face swap ('data/eminem.jpg', 'data/Tom Cruise.jpg') saved to image_simswap_output/61045310.jpg\n", + "169: Performed face swap ('data/eminem.jpg', 'data/Pewdiepie.jpg') saved to image_simswap_output/4462100.jpg\n", + "170: Performed face swap ('data/mona.jpg', 'data/Brad Pitt.jpg') saved to image_simswap_output/537399.jpg\n", + "171: Performed face swap ('data/obama.jpg', 'data/eminem.jpg') saved to image_simswap_output/355544.jpg\n", + "172: Performed face swap ('data/obama.jpg', 'data/Pewdiepie.jpg') saved to image_simswap_output/10610721.jpg\n", + "173: Performed face swap ('data/Pewdiepie.jpg', 'data/mona.jpg') saved to image_simswap_output/123278.jpg\n", + "174: Performed face swap ('data/Pewdiepie.jpg', 'data/einstein.jpg') saved to image_simswap_output/1026796.jpg\n", + "175: Performed face swap ('data/mona.jpg', 'data/Tom Cruise.jpg') saved to image_simswap_output/2910487.jpg\n", + "176: Performed face swap ('data/obama.jpg', 'data/Brad Pitt.jpg') saved to image_simswap_output/016061.jpg\n", + "177: Performed face swap ('data/ronaldo.png', 'data/Joe Biden.jpg') saved to image_simswap_output/491671.jpg\n", + "178: Performed face swap ('data/einstein.jpg', 'data/Pewdiepie.jpg') saved to image_simswap_output/735498.jpg\n", + "179: Performed face swap ('data/Joe Biden.jpg', 'data/obama.jpg') saved to image_simswap_output/092719.jpg\n", + "180: Performed face swap ('data/eminem.jpg', 'data/potter.jpg') saved to image_simswap_output/492759.jpg\n", + "181: Performed face swap ('data/Markiplier.jpg', 'data/jobs.jpg') saved to image_simswap_output/670946.jpg\n", + "182: Performed face swap ('data/Leonardo Dicaprio.jpg', 'data/potter.jpg') saved to image_simswap_output/393047.jpg\n", + "183: Performed face swap ('data/Markiplier.jpg', 'data/Leonardo Dicaprio.jpg') saved to image_simswap_output/027133.jpg\n", + "184: Performed face swap ('data/David Beckham.jpg', 'data/ronaldo.png') saved to image_simswap_output/565647.jpg\n", + "185: Performed face swap ('data/Tom Cruise.jpg', 'data/Joe Biden.jpg') saved to image_simswap_output/862783.jpg\n", + "186: Performed face swap ('data/Joe Biden.jpg', 'data/Markiplier.jpg') saved to image_simswap_output/878725.jpg\n", + "187: Performed face swap ('data/jobs.jpg', 'data/einstein.jpg') saved to image_simswap_output/6433010.jpg\n", + "188: Performed face swap ('data/jobs.jpg', 'data/David Beckham.jpg') saved to image_simswap_output/1097502.jpg\n", + "189: Performed face swap ('data/ronaldo.png', 'data/Markiplier.jpg') saved to image_simswap_output/10401050.jpg\n", + "190: Performed face swap ('data/Tom Cruise.jpg', 'data/Brad Pitt.jpg') saved to image_simswap_output/909266.jpg\n", + "191: Performed face swap ('data/Tom Cruise.jpg', 'data/potter.jpg') saved to image_simswap_output/1059415.jpg\n", + "192: Performed face swap ('data/Brad Pitt.jpg', 'data/ronaldo.png') saved to image_simswap_output/4210981.jpg\n", + "193: Performed face swap ('data/Leonardo Dicaprio.jpg', 'data/schwarzenegger.png') saved to image_simswap_output/10681001.jpg\n", + "194: Performed face swap ('data/jobs.jpg', 'data/Leonardo Dicaprio.jpg') saved to image_simswap_output/1043521.jpg\n", + "195: Performed face swap ('data/mona.jpg', 'data/schwarzenegger.png') saved to image_simswap_output/048709.jpg\n", + "196: Performed face swap ('data/David Beckham.jpg', 'data/Markiplier.jpg') saved to image_simswap_output/6510731.jpg\n", + "197: Performed face swap ('data/Tom Cruise.jpg', 'data/Markiplier.jpg') saved to image_simswap_output/051860.jpg\n", + "198: Performed face swap ('data/David Beckham.jpg', 'data/mona.jpg') saved to image_simswap_output/558451.jpg\n", + "199: Performed face swap ('data/Markiplier.jpg', 'data/einstein.jpg') saved to image_simswap_output/2945010.jpg\n", + "200: Performed face swap ('data/einstein.jpg', 'data/schwarzenegger.png') saved to image_simswap_output/551752.jpg\n", + "201: Performed face swap ('data/ronaldo.png', 'data/einstein.jpg') saved to image_simswap_output/1011238.jpg\n", + "202: Performed face swap ('data/mona.jpg', 'data/mona.jpg') saved to image_simswap_output/61076109.jpg\n", + "203: Performed face swap ('data/Pewdiepie.jpg', 'data/Pewdiepie.jpg') saved to image_simswap_output/490611.jpg\n", + "204: Performed face swap ('data/schwarzenegger.png', 'data/Leonardo Dicaprio.jpg') saved to image_simswap_output/1074562.jpg\n", + "205: Performed face swap ('data/Markiplier.jpg', 'data/Tom Cruise.jpg') saved to image_simswap_output/407419.jpg\n", + "206: Performed face swap ('data/Tom Cruise.jpg', 'data/Pewdiepie.jpg') saved to image_simswap_output/61016510.jpg\n", + "207: Performed face swap ('data/Joe Biden.jpg', 'data/einstein.jpg') saved to image_simswap_output/1012106.jpg\n", + "208: Performed face swap ('data/potter.jpg', 'data/Pewdiepie.jpg') saved to image_simswap_output/112293.jpg\n", + "209: Performed face swap ('data/einstein.jpg', 'data/Markiplier.jpg') saved to image_simswap_output/743894.jpg\n", + "210: Performed face swap ('data/schwarzenegger.png', 'data/mona.jpg') saved to image_simswap_output/694182.jpg\n", + "211: Performed face swap ('data/schwarzenegger.png', 'data/potter.jpg') saved to image_simswap_output/725161.jpg\n", + "212: Performed face swap ('data/mona.jpg', 'data/eminem.jpg') saved to image_simswap_output/197641.jpg\n", + "213: Performed face swap ('data/potter.jpg', 'data/potter.jpg') saved to image_simswap_output/71101052.jpg\n", + "214: Performed face swap ('data/einstein.jpg', 'data/ronaldo.png') saved to image_simswap_output/66610910.jpg\n", + "215: Performed face swap ('data/ronaldo.png', 'data/Pewdiepie.jpg') saved to image_simswap_output/324911.jpg\n", + "216: Performed face swap ('data/Markiplier.jpg', 'data/Joe Biden.jpg') saved to image_simswap_output/51010842.jpg\n", + "217: Performed face swap ('data/obama.jpg', 'data/ronaldo.png') saved to image_simswap_output/755592.jpg\n", + "218: Performed face swap ('data/Pewdiepie.jpg', 'data/obama.jpg') saved to image_simswap_output/745214.jpg\n", + "219: Performed face swap ('data/jobs.jpg', 'data/obama.jpg') saved to image_simswap_output/802134.jpg\n", + "220: Performed face swap ('data/Brad Pitt.jpg', 'data/David Beckham.jpg') saved to image_simswap_output/2310477.jpg\n", + "221: Performed face swap ('data/jobs.jpg', 'data/Pewdiepie.jpg') saved to image_simswap_output/325165.jpg\n", + "222: Performed face swap ('data/potter.jpg', 'data/Leonardo Dicaprio.jpg') saved to image_simswap_output/9210635.jpg\n", + "223: Performed face swap ('data/potter.jpg', 'data/eminem.jpg') saved to image_simswap_output/6188910.jpg\n", + "224: Performed face swap ('data/jobs.jpg', 'data/jobs.jpg') saved to image_simswap_output/478175.jpg\n" + ] + } + ], + "source": [ + "!dot \\\n", + "-c ./configs/simswap.yaml \\\n", + "--target \"data/\" \\\n", + "--source \"data/\" \\\n", + "--save_folder \"image_simswap_output/\" \\\n", + "--use_image \\\n", + "--use_gpu\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "id": "MKbRDeSAWIq0" + }, + "source": [ + "### Using SimSwap on Videos" + ] + }, + { + "cell_type": "code", + "source": [ + "!dot \\\n", + "-c ./configs/simswap.yaml \\\n", + "--source \"data/\" \\\n", + "--target \"data/\" \\\n", + "--save_folder \"video_simswap_output/\" \\\n", + "--limit 1 \\\n", + "--use_video \\\n", + "--use_gpu" + ], + "metadata": { + "colab": { + "base_uri": "https://localhost:8080/" + }, + "id": "rJqqmy2vD8uf", + "outputId": "eb4a7d07-732f-4f96-e1c8-40e097c49df1" + }, + "execution_count": null, + "outputs": [ + { + "output_type": "stream", + "name": "stdout", + "text": [ + "/bin/bash: /usr/local/lib/libtinfo.so.6: no version information available (required by /bin/bash)\n", + "INFO: Created TensorFlow Lite XNNPACK delegate for CPU.\n", + "Total source images: 15\n", + "Total target videos: 1\n", + "Total number of face-swaps: 1\n", + " 0% 0/1 [00:00