├── IP_LAP_Train.ipynb ├── README.md └── IP_LAP_GFPGAN.ipynb /IP_LAP_Train.ipynb: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # IP_LAP_GFPGAN 2 | This is the Colab run script for IP-LAP. 3 | ## Inference 4 | ### Please click on the Colab link below to inference. 5 | 6 | [![Open In Colab][colab-badge]][colab-notebook] 7 | 8 | [colab-notebook]: 9 | [colab-badge]: 10 | 11 | *** 12 | ## Train 13 | ### Please click on the Colab link below to Train. 14 | 15 | [![Open In Colab][colab-badge]][colab-notebook] 16 | 17 | [colab-notebook]: 18 | [colab-badge]: 19 | 20 | *** 21 | 22 | ## Useful links: 23 | https://github.com/Weizhi-Zhong/IP_LAP 24 | https://github.com/Rudrabha/Wav2Lip 25 | https://github.com/primepake/wav2lip_288x288 26 | https://github.com/nghiakvnvsd/wav2lip384 27 | https://github.com/vinthony/video-retalking 28 | ### 29 | ### 30 | 31 | *** 32 | 33 | ### Project made by Lu Rui from Langzizhixin Technology company in Chengdu, China. 34 | ### Code 2023 35 | -------------------------------------------------------------------------------- /IP_LAP_GFPGAN.ipynb: -------------------------------------------------------------------------------- 1 | {"cells":[{"cell_type":"code","execution_count":1,"metadata":{"executionInfo":{"elapsed":14,"status":"ok","timestamp":1692505885868,"user":{"displayName":"rui lu","userId":"15695518765939055507"},"user_tz":-480},"id":"gyMjfIQPLrR7"},"outputs":[],"source":["#@title 一、查看显卡情况\n","# !nvidia-smi"]},{"cell_type":"code","execution_count":2,"metadata":{"colab":{"base_uri":"https://localhost:8080/"},"executionInfo":{"elapsed":14,"status":"ok","timestamp":1692505885869,"user":{"displayName":"rui lu","userId":"15695518765939055507"},"user_tz":-480},"id":"LMIpU4kXLSRa","outputId":"19525a03-2589-4420-ff9d-b30d537abee3"},"outputs":[{"output_type":"stream","name":"stdout","text":["Cloning into 'IP_LAP'...\n","remote: Enumerating objects: 127, done.\u001b[K\n","remote: Counting objects: 100% (46/46), done.\u001b[K\n","remote: Compressing objects: 100% (43/43), done.\u001b[K\n","remote: Total 127 (delta 30), reused 3 (delta 3), pack-reused 81\u001b[K\n","Receiving objects: 100% (127/127), 6.71 MiB | 22.90 MiB/s, done.\n","Resolving deltas: 100% (46/46), done.\n"]}],"source":["#@title 二、下载源码\n","!git clone https://github.com/Weizhi-Zhong/IP_LAP"]},{"cell_type":"code","execution_count":3,"metadata":{"colab":{"base_uri":"https://localhost:8080/"},"executionInfo":{"elapsed":39146,"status":"ok","timestamp":1692505925009,"user":{"displayName":"rui lu","userId":"15695518765939055507"},"user_tz":-480},"id":"Db0k8TWbM7oa","outputId":"4d016392-64ba-4eac-b440-4945fa3073b8"},"outputs":[{"output_type":"stream","name":"stdout","text":["--2023-08-20 04:31:25-- https://repo.anaconda.com/miniconda/Miniconda3-py37_4.8.2-Linux-x86_64.sh\n","Resolving repo.anaconda.com (repo.anaconda.com)... 104.16.131.3, 104.16.130.3, 2606:4700::6810:8203, ...\n","Connecting to repo.anaconda.com (repo.anaconda.com)|104.16.131.3|:443... connected.\n","HTTP request sent, awaiting response... 200 OK\n","Length: 85055499 (81M) [application/x-sh]\n","Saving to: ‘Miniconda3-py37_4.8.2-Linux-x86_64.sh’\n","\n","Miniconda3-py37_4.8 100%[===================>] 81.12M 209MB/s in 0.4s \n","\n","2023-08-20 04:31:26 (209 MB/s) - ‘Miniconda3-py37_4.8.2-Linux-x86_64.sh’ saved [85055499/85055499]\n","\n","PREFIX=/usr/local\n","Unpacking payload ...\n","Collecting package metadata (current_repodata.json): - \b\b\\ \b\bdone\n","Solving environment: / \b\b- \b\b\\ \b\bdone\n","\n","## Package Plan ##\n","\n"," environment location: /usr/local\n","\n"," added / updated specs:\n"," - _libgcc_mutex==0.1=main\n"," - asn1crypto==1.3.0=py37_0\n"," - ca-certificates==2020.1.1=0\n"," - certifi==2019.11.28=py37_0\n"," - cffi==1.14.0=py37h2e261b9_0\n"," - chardet==3.0.4=py37_1003\n"," - conda-package-handling==1.6.0=py37h7b6447c_0\n"," - conda==4.8.2=py37_0\n"," - cryptography==2.8=py37h1ba5d50_0\n"," - idna==2.8=py37_0\n"," - ld_impl_linux-64==2.33.1=h53a641e_7\n"," - libedit==3.1.20181209=hc058e9b_0\n"," - libffi==3.2.1=hd88cf55_4\n"," - libgcc-ng==9.1.0=hdf63c60_0\n"," - libstdcxx-ng==9.1.0=hdf63c60_0\n"," - ncurses==6.2=he6710b0_0\n"," - openssl==1.1.1d=h7b6447c_4\n"," - pip==20.0.2=py37_1\n"," - pycosat==0.6.3=py37h7b6447c_0\n"," - pycparser==2.19=py37_0\n"," - pyopenssl==19.1.0=py37_0\n"," - pysocks==1.7.1=py37_0\n"," - python==3.7.6=h0371630_2\n"," - readline==7.0=h7b6447c_5\n"," - requests==2.22.0=py37_1\n"," - ruamel_yaml==0.15.87=py37h7b6447c_0\n"," - setuptools==45.2.0=py37_0\n"," - six==1.14.0=py37_0\n"," - sqlite==3.31.1=h7b6447c_0\n"," - tk==8.6.8=hbc83047_0\n"," - tqdm==4.42.1=py_0\n"," - urllib3==1.25.8=py37_0\n"," - wheel==0.34.2=py37_0\n"," - xz==5.2.4=h14c3975_4\n"," - yaml==0.1.7=had09818_2\n"," - zlib==1.2.11=h7b6447c_3\n","\n","\n","The following NEW packages will be INSTALLED:\n","\n"," _libgcc_mutex pkgs/main/linux-64::_libgcc_mutex-0.1-main\n"," asn1crypto pkgs/main/linux-64::asn1crypto-1.3.0-py37_0\n"," ca-certificates pkgs/main/linux-64::ca-certificates-2020.1.1-0\n"," certifi pkgs/main/linux-64::certifi-2019.11.28-py37_0\n"," cffi pkgs/main/linux-64::cffi-1.14.0-py37h2e261b9_0\n"," chardet pkgs/main/linux-64::chardet-3.0.4-py37_1003\n"," conda pkgs/main/linux-64::conda-4.8.2-py37_0\n"," conda-package-han~ pkgs/main/linux-64::conda-package-handling-1.6.0-py37h7b6447c_0\n"," cryptography pkgs/main/linux-64::cryptography-2.8-py37h1ba5d50_0\n"," idna pkgs/main/linux-64::idna-2.8-py37_0\n"," ld_impl_linux-64 pkgs/main/linux-64::ld_impl_linux-64-2.33.1-h53a641e_7\n"," libedit pkgs/main/linux-64::libedit-3.1.20181209-hc058e9b_0\n"," libffi pkgs/main/linux-64::libffi-3.2.1-hd88cf55_4\n"," libgcc-ng pkgs/main/linux-64::libgcc-ng-9.1.0-hdf63c60_0\n"," libstdcxx-ng pkgs/main/linux-64::libstdcxx-ng-9.1.0-hdf63c60_0\n"," ncurses pkgs/main/linux-64::ncurses-6.2-he6710b0_0\n"," openssl pkgs/main/linux-64::openssl-1.1.1d-h7b6447c_4\n"," pip pkgs/main/linux-64::pip-20.0.2-py37_1\n"," pycosat pkgs/main/linux-64::pycosat-0.6.3-py37h7b6447c_0\n"," pycparser pkgs/main/linux-64::pycparser-2.19-py37_0\n"," pyopenssl pkgs/main/linux-64::pyopenssl-19.1.0-py37_0\n"," pysocks pkgs/main/linux-64::pysocks-1.7.1-py37_0\n"," python pkgs/main/linux-64::python-3.7.6-h0371630_2\n"," readline pkgs/main/linux-64::readline-7.0-h7b6447c_5\n"," requests pkgs/main/linux-64::requests-2.22.0-py37_1\n"," ruamel_yaml pkgs/main/linux-64::ruamel_yaml-0.15.87-py37h7b6447c_0\n"," setuptools pkgs/main/linux-64::setuptools-45.2.0-py37_0\n"," six pkgs/main/linux-64::six-1.14.0-py37_0\n"," sqlite pkgs/main/linux-64::sqlite-3.31.1-h7b6447c_0\n"," tk pkgs/main/linux-64::tk-8.6.8-hbc83047_0\n"," tqdm pkgs/main/noarch::tqdm-4.42.1-py_0\n"," urllib3 pkgs/main/linux-64::urllib3-1.25.8-py37_0\n"," wheel pkgs/main/linux-64::wheel-0.34.2-py37_0\n"," xz pkgs/main/linux-64::xz-5.2.4-h14c3975_4\n"," yaml pkgs/main/linux-64::yaml-0.1.7-had09818_2\n"," zlib pkgs/main/linux-64::zlib-1.2.11-h7b6447c_3\n","\n","\n","Preparing transaction: / \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\bdone\n","Executing transaction: | \b\b/ \b\b- \b\b\\ \b\b| \b\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","installation finished.\n","WARNING:\n"," You currently have a PYTHONPATH environment variable set. This may cause\n"," unexpected behavior when running the Python interpreter in Miniconda3.\n"," For best results, please verify that your PYTHONPATH only points to\n"," directories of packages that are compatible with the Python interpreter\n"," in Miniconda3: /usr/local\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\bdone\n","Solving environment: | \b\b/ \b\b- \b\bdone\n","\n","\n","==> WARNING: A newer version of conda exists. <==\n"," current version: 4.8.2\n"," latest version: 23.7.2\n","\n","Please update conda by running\n","\n"," $ conda update -n base -c defaults conda\n","\n","\n","\n","## Package Plan ##\n","\n"," environment location: /usr/local\n","\n"," added / updated specs:\n"," - python=3.7\n","\n","\n","The following packages will be downloaded:\n","\n"," package | build\n"," ---------------------------|-----------------\n"," ca-certificates-2023.05.30 | h06a4308_0 120 KB\n"," certifi-2020.6.20 | pyhd3eb1b0_3 155 KB\n"," openssl-1.1.1v | h7f8727e_0 3.7 MB\n"," ------------------------------------------------------------\n"," Total: 4.0 MB\n","\n","The following packages will be UPDATED:\n","\n"," ca-certificates 2020.1.1-0 --> 2023.05.30-h06a4308_0\n"," certifi pkgs/main/linux-64::certifi-2019.11.2~ --> pkgs/main/noarch::certifi-2020.6.20-pyhd3eb1b0_3\n"," openssl 1.1.1d-h7b6447c_4 --> 1.1.1v-h7f8727e_0\n","\n","\n","\n","Downloading and Extracting Packages\n","ca-certificates-2023 | 120 KB | : 100% 1.0/1 [00:00<00:00, 5.31it/s]\n","certifi-2020.6.20 | 155 KB | : 100% 1.0/1 [00:00<00:00, 7.24it/s]\n","openssl-1.1.1v | 3.7 MB | : 100% 1.0/1 [00:00<00:00, 3.99it/s]\n","Preparing transaction: | \b\bdone\n","Verifying transaction: - \b\bdone\n","Executing transaction: | \b\b/ \b\b- \b\b\\ \b\bdone\n","Python 3.7.6\n","Collecting package metadata (current_repodata.json): - \b\b\\ \b\b| \b\b/ \b\bdone\n","Solving environment: \\ \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\bdone\n","Solving environment: \\ \b\b| \b\b/ \b\b- \b\b\\ \b\bdone\n","\n","\n","==> WARNING: A newer version of conda exists. <==\n"," current version: 4.8.2\n"," latest version: 23.7.2\n","\n","Please update conda by running\n","\n"," $ conda update -n base -c defaults conda\n","\n","\n","\n","## Package Plan ##\n","\n"," environment location: /usr/local/envs/IP_LAP\n","\n"," added / updated specs:\n"," - python=3.7\n","\n","\n","The following packages will be downloaded:\n","\n"," package | build\n"," ---------------------------|-----------------\n"," _openmp_mutex-5.1 | 1_gnu 21 KB\n"," certifi-2022.12.7 | py37h06a4308_0 150 KB\n"," ld_impl_linux-64-2.38 | h1181459_1 654 KB\n"," libffi-3.4.4 | h6a678d5_0 142 KB\n"," libgcc-ng-11.2.0 | h1234567_1 5.3 MB\n"," libgomp-11.2.0 | h1234567_1 474 KB\n"," libstdcxx-ng-11.2.0 | h1234567_1 4.7 MB\n"," ncurses-6.4 | h6a678d5_0 914 KB\n"," pip-22.3.1 | py37h06a4308_0 2.7 MB\n"," python-3.7.16 | h7a1cb2a_0 44.8 MB\n"," readline-8.2 | h5eee18b_0 357 KB\n"," setuptools-65.6.3 | py37h06a4308_0 1.1 MB\n"," sqlite-3.41.2 | h5eee18b_0 1.2 MB\n"," tk-8.6.12 | h1ccaba5_0 3.0 MB\n"," wheel-0.38.4 | py37h06a4308_0 63 KB\n"," xz-5.4.2 | h5eee18b_0 642 KB\n"," zlib-1.2.13 | h5eee18b_0 103 KB\n"," ------------------------------------------------------------\n"," Total: 66.3 MB\n","\n","The following NEW packages will be INSTALLED:\n","\n"," _libgcc_mutex pkgs/main/linux-64::_libgcc_mutex-0.1-main\n"," _openmp_mutex pkgs/main/linux-64::_openmp_mutex-5.1-1_gnu\n"," ca-certificates pkgs/main/linux-64::ca-certificates-2023.05.30-h06a4308_0\n"," certifi pkgs/main/linux-64::certifi-2022.12.7-py37h06a4308_0\n"," ld_impl_linux-64 pkgs/main/linux-64::ld_impl_linux-64-2.38-h1181459_1\n"," libffi pkgs/main/linux-64::libffi-3.4.4-h6a678d5_0\n"," libgcc-ng pkgs/main/linux-64::libgcc-ng-11.2.0-h1234567_1\n"," libgomp pkgs/main/linux-64::libgomp-11.2.0-h1234567_1\n"," libstdcxx-ng pkgs/main/linux-64::libstdcxx-ng-11.2.0-h1234567_1\n"," ncurses pkgs/main/linux-64::ncurses-6.4-h6a678d5_0\n"," openssl pkgs/main/linux-64::openssl-1.1.1v-h7f8727e_0\n"," pip pkgs/main/linux-64::pip-22.3.1-py37h06a4308_0\n"," python pkgs/main/linux-64::python-3.7.16-h7a1cb2a_0\n"," readline pkgs/main/linux-64::readline-8.2-h5eee18b_0\n"," setuptools pkgs/main/linux-64::setuptools-65.6.3-py37h06a4308_0\n"," sqlite pkgs/main/linux-64::sqlite-3.41.2-h5eee18b_0\n"," tk pkgs/main/linux-64::tk-8.6.12-h1ccaba5_0\n"," wheel pkgs/main/linux-64::wheel-0.38.4-py37h06a4308_0\n"," xz pkgs/main/linux-64::xz-5.4.2-h5eee18b_0\n"," zlib pkgs/main/linux-64::zlib-1.2.13-h5eee18b_0\n","\n","\n","\n","Downloading and Extracting Packages\n","wheel-0.38.4 | 63 KB | : 100% 1.0/1 [00:00<00:00, 5.13it/s]\n","zlib-1.2.13 | 103 KB | : 100% 1.0/1 [00:00<00:00, 6.51it/s]\n","ncurses-6.4 | 914 KB | : 100% 1.0/1 [00:00<00:00, 3.05it/s]\n","certifi-2022.12.7 | 150 KB | : 100% 1.0/1 [00:00<00:00, 6.03it/s]\n","libstdcxx-ng-11.2.0 | 4.7 MB | : 100% 1.0/1 [00:00<00:00, 3.73it/s]\n","ld_impl_linux-64-2.3 | 654 KB | : 100% 1.0/1 [00:00<00:00, 6.05it/s]\n","libgomp-11.2.0 | 474 KB | : 100% 1.0/1 [00:00<00:00, 6.44it/s]\n","setuptools-65.6.3 | 1.1 MB | : 100% 1.0/1 [00:00<00:00, 4.74it/s]\n","tk-8.6.12 | 3.0 MB | : 100% 1.0/1 [00:00<00:00, 4.18it/s]\n","libffi-3.4.4 | 142 KB | : 100% 1.0/1 [00:00<00:00, 6.34it/s]\n","python-3.7.16 | 44.8 MB | : 100% 1.0/1 [00:01<00:00, 1.14s/it] \n","sqlite-3.41.2 | 1.2 MB | : 100% 1.0/1 [00:00<00:00, 5.66it/s]\n","libgcc-ng-11.2.0 | 5.3 MB | : 100% 1.0/1 [00:00<00:00, 3.63it/s]\n","pip-22.3.1 | 2.7 MB | : 100% 1.0/1 [00:00<00:00, 3.71it/s]\n","readline-8.2 | 357 KB | : 100% 1.0/1 [00:00<00:00, 6.32it/s]\n","xz-5.4.2 | 642 KB | : 100% 1.0/1 [00:00<00:00, 5.62it/s]\n","_openmp_mutex-5.1 | 21 KB | : 100% 1.0/1 [00:00<00:00, 6.93it/s]\n","Preparing transaction: / \b\b- \b\b\\ \b\bdone\n","Verifying transaction: / \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\b- \b\bdone\n","Executing transaction: | \b\b/ \b\b- \b\b\\ \b\b| \b\b/ \b\bdone\n","#\n","# To activate this environment, use\n","#\n","# $ conda activate IP_LAP\n","#\n","# To deactivate an active environment, use\n","#\n","# $ conda deactivate\n","\n"]}],"source":["#@title 三、安装虚拟环境\n","# Install Virtual Environment\n","# miniconda\n","!wget https://repo.anaconda.com/miniconda/Miniconda3-py37_4.8.2-Linux-x86_64.sh\n","!chmod +x Miniconda3-py37_4.8.2-Linux-x86_64.sh\n","!bash ./Miniconda3-py37_4.8.2-Linux-x86_64.sh -b -f -p /usr/local\n","import sys\n","sys.path.append('/usr/local/lib/python3.8/site-packages/')\n","!conda install python=3.7 -y\n","!python --version\n","!conda create --name IP_LAP python=3.7 -y\n","!source activate IP_LAP"]},{"cell_type":"code","execution_count":4,"metadata":{"colab":{"base_uri":"https://localhost:8080/","height":1000},"id":"e9DM5CAhBV-N","executionInfo":{"status":"ok","timestamp":1692506239005,"user_tz":-480,"elapsed":314036,"user":{"displayName":"rui lu","userId":"15695518765939055507"}},"outputId":"0a808c07-c45a-48e1-e3d1-917bfc19cddc"},"outputs":[{"output_type":"stream","name":"stdout","text":["/content/IP_LAP\n","Collecting typing_extensions==4.6.3\n"," Downloading typing_extensions-4.6.3-py3-none-any.whl (31 kB)\n","Collecting opencv-contrib-python==4.6.0.66\n"," Downloading opencv_contrib_python-4.6.0.66-cp36-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (67.1 MB)\n","\u001b[K |████████████████████████████████| 67.1 MB 38 kB/s \n","\u001b[?25hCollecting opencv-python==4.6.0.66\n"," Downloading opencv_python-4.6.0.66-cp36-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (60.9 MB)\n","\u001b[K |████████████████████████████████| 60.9 MB 1.2 MB/s \n","\u001b[?25hCollecting numpy==1.21.6\n"," Downloading numpy-1.21.6-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (15.7 MB)\n","\u001b[K |████████████████████████████████| 15.7 MB 50.3 MB/s \n","\u001b[?25hCollecting tqdm==4.64.1\n"," Downloading tqdm-4.64.1-py2.py3-none-any.whl (78 kB)\n","\u001b[K |████████████████████████████████| 78 kB 6.3 MB/s \n","\u001b[?25hInstalling collected packages: typing-extensions, numpy, opencv-contrib-python, opencv-python, tqdm\n"," Attempting uninstall: tqdm\n"," Found existing installation: tqdm 4.42.1\n"," Uninstalling tqdm-4.42.1:\n"," Successfully uninstalled tqdm-4.42.1\n","Successfully installed numpy-1.21.6 opencv-contrib-python-4.6.0.66 opencv-python-4.6.0.66 tqdm-4.64.1 typing-extensions-4.6.3\n","Collecting mediapipe==0.8.11\n"," Downloading mediapipe-0.8.11-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (31.5 MB)\n","\u001b[K |████████████████████████████████| 31.5 MB 1.4 MB/s \n","\u001b[?25hCollecting face-alignment==1.3.5\n"," Downloading face_alignment-1.3.5-py2.py3-none-any.whl (29 kB)\n","Collecting librosa==0.9.2\n"," Downloading librosa-0.9.2-py3-none-any.whl (214 kB)\n","\u001b[K |████████████████████████████████| 214 kB 60.3 MB/s \n","\u001b[?25hCollecting scipy==1.4.1\n"," Downloading scipy-1.4.1-cp37-cp37m-manylinux1_x86_64.whl (26.1 MB)\n","\u001b[K |████████████████████████████████| 26.1 MB 1.3 MB/s \n","\u001b[?25hCollecting attrs>=19.1.0\n"," Downloading attrs-23.1.0-py3-none-any.whl (61 kB)\n","\u001b[K |████████████████████████████████| 61 kB 7.9 MB/s \n","\u001b[?25hCollecting matplotlib\n"," Downloading matplotlib-3.5.3-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl (11.2 MB)\n","\u001b[K |████████████████████████████████| 11.2 MB 57.7 MB/s \n","\u001b[?25hRequirement already satisfied: opencv-contrib-python in /usr/local/lib/python3.7/site-packages (from mediapipe==0.8.11) (4.6.0.66)\n","Collecting absl-py\n"," Downloading absl_py-1.4.0-py3-none-any.whl (126 kB)\n","\u001b[K |████████████████████████████████| 126 kB 59.0 MB/s \n","\u001b[?25hCollecting protobuf<4,>=3.11\n"," Downloading protobuf-3.20.3-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl (1.0 MB)\n","\u001b[K |████████████████████████████████| 1.0 MB 55.6 MB/s \n","\u001b[?25hRequirement already satisfied: numpy in /usr/local/lib/python3.7/site-packages (from mediapipe==0.8.11) (1.21.6)\n","Collecting scikit-image\n"," Downloading scikit_image-0.19.3-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (13.5 MB)\n","\u001b[K |████████████████████████████████| 13.5 MB 54.0 MB/s \n","\u001b[?25hCollecting torch\n"," Downloading torch-1.13.1-cp37-cp37m-manylinux1_x86_64.whl (887.5 MB)\n","\u001b[K |████████████████████████████████| 887.5 MB 5.0 kB/s \n","\u001b[?25hRequirement already satisfied: opencv-python in /usr/local/lib/python3.7/site-packages (from face-alignment==1.3.5) (4.6.0.66)\n","Collecting numba\n"," Downloading numba-0.56.4-cp37-cp37m-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (3.5 MB)\n","\u001b[K |████████████████████████████████| 3.5 MB 48.0 MB/s \n","\u001b[?25hRequirement already satisfied: tqdm in /usr/local/lib/python3.7/site-packages (from face-alignment==1.3.5) (4.64.1)\n","Collecting scikit-learn>=0.19.1\n"," Downloading scikit_learn-1.0.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (24.8 MB)\n","\u001b[K |████████████████████████████████| 24.8 MB 1.4 MB/s \n","\u001b[?25hCollecting packaging>=20.0\n"," Downloading packaging-23.1-py3-none-any.whl (48 kB)\n","\u001b[K |████████████████████████████████| 48 kB 5.3 MB/s \n","\u001b[?25hCollecting resampy>=0.2.2\n"," Downloading resampy-0.4.2-py3-none-any.whl (3.1 MB)\n","\u001b[K |████████████████████████████████| 3.1 MB 42.9 MB/s \n","\u001b[?25hCollecting decorator>=4.0.10\n"," Downloading decorator-5.1.1-py3-none-any.whl (9.1 kB)\n","Collecting soundfile>=0.10.2\n"," Downloading soundfile-0.12.1-py2.py3-none-any.whl (24 kB)\n","Collecting audioread>=2.1.9\n"," Downloading audioread-3.0.0.tar.gz (377 kB)\n","\u001b[K |████████████████████████████████| 377 kB 68.4 MB/s \n","\u001b[?25hCollecting joblib>=0.14\n"," Downloading joblib-1.3.2-py3-none-any.whl (302 kB)\n","\u001b[K |████████████████████████████████| 302 kB 46.4 MB/s \n","\u001b[?25hCollecting pooch>=1.0\n"," Downloading pooch-1.7.0-py3-none-any.whl (60 kB)\n","\u001b[K |████████████████████████████████| 60 kB 8.4 MB/s \n","\u001b[?25hCollecting importlib-metadata; python_version < \"3.8\"\n"," Downloading importlib_metadata-6.7.0-py3-none-any.whl (22 kB)\n","Collecting fonttools>=4.22.0\n"," Downloading fonttools-4.38.0-py3-none-any.whl (965 kB)\n","\u001b[K |████████████████████████████████| 965 kB 65.3 MB/s \n","\u001b[?25hCollecting python-dateutil>=2.7\n"," Downloading python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)\n","\u001b[K |████████████████████████████████| 247 kB 63.5 MB/s \n","\u001b[?25hCollecting pillow>=6.2.0\n"," Downloading Pillow-9.5.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.3 MB)\n","\u001b[K |████████████████████████████████| 3.3 MB 57.3 MB/s \n","\u001b[?25hCollecting cycler>=0.10\n"," Downloading cycler-0.11.0-py3-none-any.whl (6.4 kB)\n","Collecting kiwisolver>=1.0.1\n"," Downloading kiwisolver-1.4.4-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl (1.1 MB)\n","\u001b[K |████████████████████████████████| 1.1 MB 59.2 MB/s \n","\u001b[?25hCollecting pyparsing>=2.2.1\n"," Downloading pyparsing-3.1.1-py3-none-any.whl (103 kB)\n","\u001b[K |████████████████████████████████| 103 kB 69.2 MB/s \n","\u001b[?25hCollecting imageio>=2.4.1\n"," Downloading imageio-2.31.1-py3-none-any.whl (313 kB)\n","\u001b[K |████████████████████████████████| 313 kB 68.3 MB/s \n","\u001b[?25hCollecting tifffile>=2019.7.26\n"," Downloading tifffile-2021.11.2-py3-none-any.whl (178 kB)\n","\u001b[K |████████████████████████████████| 178 kB 55.3 MB/s \n","\u001b[?25hCollecting networkx>=2.2\n"," Downloading networkx-2.6.3-py3-none-any.whl (1.9 MB)\n","\u001b[K |████████████████████████████████| 1.9 MB 56.5 MB/s \n","\u001b[?25hCollecting PyWavelets>=1.1.1\n"," Downloading PyWavelets-1.3.0-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (6.4 MB)\n","\u001b[K |████████████████████████████████| 6.4 MB 54.8 MB/s \n","\u001b[?25hCollecting nvidia-cublas-cu11==11.10.3.66; platform_system == \"Linux\"\n"," Downloading nvidia_cublas_cu11-11.10.3.66-py3-none-manylinux1_x86_64.whl (317.1 MB)\n","\u001b[K |████████████████████████████████| 317.1 MB 30 kB/s \n","\u001b[?25hCollecting nvidia-cudnn-cu11==8.5.0.96; platform_system == \"Linux\"\n"," Downloading nvidia_cudnn_cu11-8.5.0.96-2-py3-none-manylinux1_x86_64.whl (557.1 MB)\n","\u001b[K |████████████████████████████████| 557.1 MB 10 kB/s \n","\u001b[?25hRequirement already satisfied: typing-extensions in /usr/local/lib/python3.7/site-packages (from torch->face-alignment==1.3.5) (4.6.3)\n","Collecting nvidia-cuda-runtime-cu11==11.7.99; platform_system == \"Linux\"\n"," Downloading nvidia_cuda_runtime_cu11-11.7.99-py3-none-manylinux1_x86_64.whl (849 kB)\n","\u001b[K |████████████████████████████████| 849 kB 42.7 MB/s \n","\u001b[?25hCollecting nvidia-cuda-nvrtc-cu11==11.7.99; platform_system == \"Linux\"\n"," Downloading nvidia_cuda_nvrtc_cu11-11.7.99-2-py3-none-manylinux1_x86_64.whl (21.0 MB)\n","\u001b[K |████████████████████████████████| 21.0 MB 1.2 MB/s \n","\u001b[?25hCollecting llvmlite<0.40,>=0.39.0dev0\n"," Downloading llvmlite-0.39.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (34.6 MB)\n","\u001b[K |████████████████████████████████| 34.6 MB 93 kB/s \n","\u001b[?25hRequirement already satisfied: setuptools in /usr/local/lib/python3.7/site-packages (from numba->face-alignment==1.3.5) (45.2.0.post20200210)\n","Collecting threadpoolctl>=2.0.0\n"," Downloading threadpoolctl-3.1.0-py3-none-any.whl (14 kB)\n","Requirement already satisfied: cffi>=1.0 in /usr/local/lib/python3.7/site-packages (from soundfile>=0.10.2->librosa==0.9.2) (1.14.0)\n","Requirement already satisfied: requests>=2.19.0 in /usr/local/lib/python3.7/site-packages (from pooch>=1.0->librosa==0.9.2) (2.22.0)\n","Collecting platformdirs>=2.5.0\n"," Downloading platformdirs-3.10.0-py3-none-any.whl (17 kB)\n","Collecting zipp>=0.5\n"," Downloading zipp-3.15.0-py3-none-any.whl (6.8 kB)\n","Requirement already satisfied: six>=1.5 in /usr/local/lib/python3.7/site-packages (from python-dateutil>=2.7->matplotlib->mediapipe==0.8.11) (1.14.0)\n","Requirement already satisfied: wheel in /usr/local/lib/python3.7/site-packages (from nvidia-cublas-cu11==11.10.3.66; platform_system == \"Linux\"->torch->face-alignment==1.3.5) (0.34.2)\n","Requirement already satisfied: pycparser in /usr/local/lib/python3.7/site-packages (from cffi>=1.0->soundfile>=0.10.2->librosa==0.9.2) (2.19)\n","Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.7/site-packages (from requests>=2.19.0->pooch>=1.0->librosa==0.9.2) (2020.6.20)\n","Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in /usr/local/lib/python3.7/site-packages (from requests>=2.19.0->pooch>=1.0->librosa==0.9.2) (1.25.8)\n","Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /usr/local/lib/python3.7/site-packages (from requests>=2.19.0->pooch>=1.0->librosa==0.9.2) (3.0.4)\n","Requirement already satisfied: idna<2.9,>=2.5 in /usr/local/lib/python3.7/site-packages (from requests>=2.19.0->pooch>=1.0->librosa==0.9.2) (2.8)\n","Building wheels for collected packages: audioread\n"," Building wheel for audioread (setup.py) ... \u001b[?25l\u001b[?25hdone\n"," Created wheel for audioread: filename=audioread-3.0.0-py3-none-any.whl size=23692 sha256=d5e67c6c81a6af4f55bcccf0d6ef8b9718096368c9d0ea4407ec69df527c57d4\n"," Stored in directory: /root/.cache/pip/wheels/71/a4/fa/24175dada88ca37d7fd22ffec10b33cb0a4909d7d07f04101f\n","Successfully built audioread\n","\u001b[31mERROR: platformdirs 3.10.0 has requirement typing-extensions>=4.7.1; python_version < \"3.8\", but you'll have typing-extensions 4.6.3 which is incompatible.\u001b[0m\n","Installing collected packages: zipp, importlib-metadata, attrs, packaging, fonttools, python-dateutil, pillow, cycler, kiwisolver, pyparsing, matplotlib, absl-py, protobuf, mediapipe, scipy, imageio, tifffile, networkx, PyWavelets, scikit-image, nvidia-cublas-cu11, nvidia-cudnn-cu11, nvidia-cuda-runtime-cu11, nvidia-cuda-nvrtc-cu11, torch, llvmlite, numba, face-alignment, threadpoolctl, joblib, scikit-learn, resampy, decorator, soundfile, audioread, platformdirs, pooch, librosa\n","Successfully installed PyWavelets-1.3.0 absl-py-1.4.0 attrs-23.1.0 audioread-3.0.0 cycler-0.11.0 decorator-5.1.1 face-alignment-1.3.5 fonttools-4.38.0 imageio-2.31.1 importlib-metadata-6.7.0 joblib-1.3.2 kiwisolver-1.4.4 librosa-0.9.2 llvmlite-0.39.1 matplotlib-3.5.3 mediapipe-0.8.11 networkx-2.6.3 numba-0.56.4 nvidia-cublas-cu11-11.10.3.66 nvidia-cuda-nvrtc-cu11-11.7.99 nvidia-cuda-runtime-cu11-11.7.99 nvidia-cudnn-cu11-8.5.0.96 packaging-23.1 pillow-9.5.0 platformdirs-3.10.0 pooch-1.7.0 protobuf-3.20.3 pyparsing-3.1.1 python-dateutil-2.8.2 resampy-0.4.2 scikit-image-0.19.3 scikit-learn-1.0.2 scipy-1.4.1 soundfile-0.12.1 threadpoolctl-3.1.0 tifffile-2021.11.2 torch-1.13.1 zipp-3.15.0\n"]},{"output_type":"display_data","data":{"application/vnd.colab-display-data+json":{"pip_warning":{"packages":["cycler","dateutil","google","kiwisolver"]}}},"metadata":{}}],"source":["#@title 四、安装依赖\n","# 注释掉lws,不然会报错\n","%cd /content/IP_LAP\n","!pip install typing_extensions==4.6.3 opencv-contrib-python==4.6.0.66 opencv-python==4.6.0.66 numpy==1.21.6 tqdm==4.64.1\n","!pip install mediapipe==0.8.11 face-alignment==1.3.5 librosa==0.9.2 scipy==1.4.1"]},{"cell_type":"code","execution_count":5,"metadata":{"colab":{"base_uri":"https://localhost:8080/"},"id":"WIlENv2AtzTj","executionInfo":{"status":"ok","timestamp":1692506266402,"user_tz":-480,"elapsed":27420,"user":{"displayName":"rui lu","userId":"15695518765939055507"}},"outputId":"1faef34e-71cb-41b0-8fd4-3c81ecbd2a0e"},"outputs":[{"output_type":"stream","name":"stdout","text":["Collecting torchvision\n"," Downloading torchvision-0.14.1-cp37-cp37m-manylinux1_x86_64.whl (24.2 MB)\n","\u001b[K |████████████████████████████████| 24.2 MB 1.3 MB/s \n","\u001b[?25hCollecting lws==1.2.7\n"," Downloading lws-1.2.7.tar.gz (150 kB)\n","\u001b[K |████████████████████████████████| 150 kB 59.1 MB/s \n","\u001b[?25hRequirement already satisfied: typing-extensions in /usr/local/lib/python3.7/site-packages (from torchvision) (4.6.3)\n","Requirement already satisfied: torch==1.13.1 in /usr/local/lib/python3.7/site-packages (from torchvision) (1.13.1)\n","Requirement already satisfied: pillow!=8.3.*,>=5.3.0 in /usr/local/lib/python3.7/site-packages (from torchvision) (9.5.0)\n","Requirement already satisfied: numpy in /usr/local/lib/python3.7/site-packages (from torchvision) (1.21.6)\n","Requirement already satisfied: requests in /usr/local/lib/python3.7/site-packages (from torchvision) (2.22.0)\n","Requirement already satisfied: nvidia-cublas-cu11==11.10.3.66; platform_system == \"Linux\" in /usr/local/lib/python3.7/site-packages (from torch==1.13.1->torchvision) (11.10.3.66)\n","Requirement already satisfied: nvidia-cuda-runtime-cu11==11.7.99; platform_system == \"Linux\" in /usr/local/lib/python3.7/site-packages (from torch==1.13.1->torchvision) (11.7.99)\n","Requirement already satisfied: nvidia-cuda-nvrtc-cu11==11.7.99; platform_system == \"Linux\" in /usr/local/lib/python3.7/site-packages (from torch==1.13.1->torchvision) (11.7.99)\n","Requirement already satisfied: nvidia-cudnn-cu11==8.5.0.96; platform_system == \"Linux\" in /usr/local/lib/python3.7/site-packages (from torch==1.13.1->torchvision) (8.5.0.96)\n","Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in /usr/local/lib/python3.7/site-packages (from requests->torchvision) (1.25.8)\n","Requirement already satisfied: idna<2.9,>=2.5 in /usr/local/lib/python3.7/site-packages (from requests->torchvision) (2.8)\n","Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.7/site-packages (from requests->torchvision) (2020.6.20)\n","Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /usr/local/lib/python3.7/site-packages (from requests->torchvision) (3.0.4)\n","Requirement already satisfied: wheel in /usr/local/lib/python3.7/site-packages (from nvidia-cublas-cu11==11.10.3.66; platform_system == \"Linux\"->torch==1.13.1->torchvision) (0.34.2)\n","Requirement already satisfied: setuptools in /usr/local/lib/python3.7/site-packages (from nvidia-cublas-cu11==11.10.3.66; platform_system == \"Linux\"->torch==1.13.1->torchvision) (45.2.0.post20200210)\n","Building wheels for collected packages: lws\n"," Building wheel for lws (setup.py) ... \u001b[?25l\u001b[?25hdone\n"," Created wheel for lws: filename=lws-1.2.7-cp37-cp37m-linux_x86_64.whl size=777309 sha256=a176693d255f6fa594b42fc1a6c9b8f64f66b76af580050272004244507bcead\n"," Stored in directory: /root/.cache/pip/wheels/49/64/9f/41e688cdc1770edf29e40b9cb2cc3ecbbae522eb969a74653a\n","Successfully built lws\n","Installing collected packages: torchvision, lws\n","Successfully installed lws-1.2.7 torchvision-0.14.1\n"]}],"source":["# 安装torchvision\n","!pip install torchvision lws==1.2.7"]},{"cell_type":"code","execution_count":6,"metadata":{"colab":{"base_uri":"https://localhost:8080/"},"id":"44bkBcL1LrtJ","executionInfo":{"status":"ok","timestamp":1692506276016,"user_tz":-480,"elapsed":9627,"user":{"displayName":"rui lu","userId":"15695518765939055507"}},"outputId":"6167f27a-fa86-4502-b1e6-51dbc2368eea"},"outputs":[{"output_type":"stream","name":"stdout","text":["/content/IP_LAP/test/checkpoints\n","Downloading...\n","From: https://drive.google.com/uc?id=1E2DF_v46Kt0nKHgpFYFFXn1_EQoAtXSo\n","To: /content/IP_LAP/test/checkpoints/landmarkgenerator_checkpoint.pth\n","100% 167M/167M [00:03<00:00, 53.5MB/s]\n","Downloading...\n","From: https://drive.google.com/uc?id=13PFJQNv_9g6Y_l7XeLpipy3GAaig-U6g\n","To: /content/IP_LAP/test/checkpoints/renderer_checkpoint.pth\n","100% 308M/308M [00:04<00:00, 76.7MB/s]\n"]}],"source":["#@title 五、下载预训练模型\n","# # 这里需要提前将权重上传到网盘,再进行下载,我这边用的是我自己的分享链接,后期后关闭\n","%cd /content/IP_LAP/test/checkpoints\n","!gdown https://drive.google.com/uc\\?id\\=1E2DF_v46Kt0nKHgpFYFFXn1_EQoAtXSo\n","!gdown https://drive.google.com/uc\\?id\\=13PFJQNv_9g6Y_l7XeLpipy3GAaig-U6g"]},{"cell_type":"code","source":["# ##############\n","# # 下载自己训练的模型\n","# ##############\n","# %cd /content/IP_LAP/test/checkpoints\n","# !gdown https://drive.google.com/uc\\?id\\=1U4F7rbxjfZ1ei7pX6KRs0XvQw2XurgyG\n","# !gdown https://drive.google.com/uc\\?id\\=17Araz6nJx1_u6-FSMJWVma-DZ7BvJkJh"],"metadata":{"id":"WtiyDkbPNzQl"},"execution_count":null,"outputs":[]},{"cell_type":"code","execution_count":8,"metadata":{"id":"d6cKLTe8Nsna","colab":{"base_uri":"https://localhost:8080/"},"executionInfo":{"status":"ok","timestamp":1692509227228,"user_tz":-480,"elapsed":746916,"user":{"displayName":"rui lu","userId":"15695518765939055507"}},"outputId":"f92553ed-9515-4f63-9e44-51ee495b47f2"},"outputs":[{"output_type":"stream","name":"stdout","text":["/content/IP_LAP\n"," landmark_generator_model loaded from : /content/IP_LAP/test/checkpoints/landmarkgenerator_checkpoint.pth\n"," renderer loaded from : /content/IP_LAP/test/checkpoints/renderer_checkpoint.pth\n","Load checkpoint from: /content/IP_LAP/test/checkpoints/landmarkgenerator_checkpoint.pth\n","/usr/local/lib/python3.7/site-packages/torchvision/models/_utils.py:209: UserWarning: The parameter 'pretrained' is deprecated since 0.13 and may be removed in the future, please use 'weights' instead.\n"," f\"The parameter '{pretrained_param}' is deprecated since 0.13 and may be removed in the future, \"\n","/usr/local/lib/python3.7/site-packages/torchvision/models/_utils.py:223: UserWarning: Arguments other than a weight enum or `None` for 'weights' are deprecated since 0.13 and may be removed in the future. The current behavior is equivalent to passing `weights=VGG19_Weights.IMAGENET1K_V1`. You can also use `weights=VGG19_Weights.DEFAULT` to get the most up-to-date weights.\n"," warnings.warn(msg)\n","Perceptual loss:\n","\tMode: vgg19\n","Load checkpoint from: /content/IP_LAP/test/checkpoints/renderer_checkpoint.pth\n","Reading video frames ... from /content/IP_LAP/test/template_video/987.mp4\n","/content/IP_LAP/models/audio.py:198: FutureWarning: Pass sr=16000, n_fft=800 as keyword args. From version 0.10 passing these as positional arguments will result in an error\n"," fmin=hp.fmin, fmax=hp.fmax)\n","INFO: Created TensorFlow Lite XNNPACK delegate for CPU.\n"," 0% 0/733 [00:00=1.17 in /usr/local/lib/python3.7/site-packages (from basicsr) (1.21.6)\n","Requirement already satisfied: opencv-python in /usr/local/lib/python3.7/site-packages (from basicsr) (4.6.0.66)\n","Requirement already satisfied: Pillow in /usr/local/lib/python3.7/site-packages (from basicsr) (9.5.0)\n","Collecting pyyaml\n"," Downloading PyYAML-6.0.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (670 kB)\n","\u001b[K |████████████████████████████████| 670 kB 59.1 MB/s \n","\u001b[?25hRequirement already satisfied: requests in /usr/local/lib/python3.7/site-packages (from basicsr) (2.22.0)\n","Requirement already satisfied: scikit-image in /usr/local/lib/python3.7/site-packages (from basicsr) (0.19.3)\n","Requirement already satisfied: scipy in /usr/local/lib/python3.7/site-packages (from basicsr) (1.4.1)\n","Collecting tb-nightly\n"," Downloading tb_nightly-2.12.0a20230113-py3-none-any.whl (5.7 MB)\n","\u001b[K |████████████████████████████████| 5.7 MB 52.6 MB/s \n","\u001b[?25hRequirement already satisfied: torch>=1.7 in /usr/local/lib/python3.7/site-packages (from basicsr) (1.13.1)\n","Requirement already satisfied: torchvision in /usr/local/lib/python3.7/site-packages (from basicsr) (0.14.1)\n","Requirement already satisfied: tqdm in /usr/local/lib/python3.7/site-packages (from basicsr) (4.64.1)\n","Collecting yapf\n"," Downloading yapf-0.40.1-py3-none-any.whl (250 kB)\n","\u001b[K |████████████████████████████████| 250 kB 61.0 MB/s \n","\u001b[?25hCollecting filterpy\n"," Downloading filterpy-1.4.5.zip (177 kB)\n","\u001b[K |████████████████████████████████| 177 kB 54.0 MB/s \n","\u001b[?25hRequirement already satisfied: numba in /usr/local/lib/python3.7/site-packages (from facexlib) (0.56.4)\n","Collecting websockets>=10.0\n"," Downloading websockets-11.0.3-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (129 kB)\n","\u001b[K |████████████████████████████████| 129 kB 55.8 MB/s \n","\u001b[?25hCollecting pandas\n"," Downloading pandas-1.3.5-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (11.3 MB)\n","\u001b[K |████████████████████████████████| 11.3 MB 38.2 MB/s \n","\u001b[?25hCollecting ffmpy\n"," Downloading ffmpy-0.3.1.tar.gz (5.5 kB)\n","Requirement already satisfied: matplotlib in /usr/local/lib/python3.7/site-packages (from gradio) (3.5.3)\n","Collecting markdown-it-py[linkify]>=2.0.0\n"," Downloading markdown_it_py-2.2.0-py3-none-any.whl (84 kB)\n","\u001b[K |████████████████████████████████| 84 kB 3.4 MB/s \n","\u001b[?25hCollecting pydub\n"," Downloading pydub-0.25.1-py2.py3-none-any.whl (32 kB)\n","Collecting fastapi\n"," Downloading fastapi-0.101.1-py3-none-any.whl (65 kB)\n","\u001b[K |████████████████████████████████| 65 kB 4.1 MB/s \n","\u001b[?25hCollecting aiohttp\n"," Downloading aiohttp-3.8.5-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (976 kB)\n","\u001b[K |████████████████████████████████| 976 kB 50.6 MB/s \n","\u001b[?25hCollecting semantic-version\n"," Downloading semantic_version-2.10.0-py2.py3-none-any.whl (15 kB)\n","Collecting altair>=4.2.0\n"," Downloading altair-5.0.1-py3-none-any.whl (471 kB)\n","\u001b[K |████████████████████████████████| 471 kB 57.0 MB/s \n","\u001b[?25hCollecting orjson\n"," Downloading orjson-3.9.5-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (139 kB)\n","\u001b[K |████████████████████████████████| 139 kB 53.8 MB/s \n","\u001b[?25hCollecting pygments>=2.12.0\n"," Downloading Pygments-2.16.1-py3-none-any.whl (1.2 MB)\n","\u001b[K |████████████████████████████████| 1.2 MB 44.5 MB/s \n","\u001b[?25hCollecting python-multipart\n"," Downloading python_multipart-0.0.6-py3-none-any.whl (45 kB)\n","\u001b[K |████████████████████████████████| 45 kB 3.5 MB/s \n","\u001b[?25hRequirement already satisfied: typing-extensions in /usr/local/lib/python3.7/site-packages (from gradio) (4.6.3)\n","Collecting httpx\n"," Downloading httpx-0.24.1-py3-none-any.whl (75 kB)\n","\u001b[K |████████████████████████████████| 75 kB 4.2 MB/s \n","\u001b[?25hCollecting aiofiles\n"," Downloading aiofiles-23.2.1-py3-none-any.whl (15 kB)\n","Collecting markupsafe\n"," Downloading MarkupSafe-2.1.3-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (25 kB)\n","Collecting pydantic\n"," Downloading pydantic-2.2.0-py3-none-any.whl (373 kB)\n","\u001b[K |████████████████████████████████| 373 kB 37.0 MB/s \n","\u001b[?25hCollecting jinja2\n"," Downloading Jinja2-3.1.2-py3-none-any.whl (133 kB)\n","\u001b[K |████████████████████████████████| 133 kB 39.2 MB/s \n","\u001b[?25hCollecting mdit-py-plugins<=0.3.3\n"," Downloading mdit_py_plugins-0.3.3-py3-none-any.whl (50 kB)\n","\u001b[K |████████████████████████████████| 50 kB 5.8 MB/s \n","\u001b[?25hCollecting gradio-client>=0.2.6\n"," Downloading gradio_client-0.2.6-py3-none-any.whl (288 kB)\n","\u001b[K |████████████████████████████████| 288 kB 41.4 MB/s \n","\u001b[?25hCollecting uvicorn>=0.14.0\n"," Downloading uvicorn-0.22.0-py3-none-any.whl (58 kB)\n","\u001b[K |████████████████████████████████| 58 kB 5.9 MB/s \n","\u001b[?25hCollecting huggingface-hub>=0.14.0\n"," Downloading huggingface_hub-0.16.4-py3-none-any.whl (268 kB)\n","\u001b[K |████████████████████████████████| 268 kB 43.3 MB/s \n","\u001b[?25hRequirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.7/site-packages (from requests->basicsr) (2020.6.20)\n","Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in /usr/local/lib/python3.7/site-packages (from requests->basicsr) (1.25.8)\n","Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /usr/local/lib/python3.7/site-packages (from requests->basicsr) (3.0.4)\n","Requirement already satisfied: idna<2.9,>=2.5 in /usr/local/lib/python3.7/site-packages (from requests->basicsr) (2.8)\n","Requirement already satisfied: networkx>=2.2 in /usr/local/lib/python3.7/site-packages (from scikit-image->basicsr) (2.6.3)\n","Requirement already satisfied: packaging>=20.0 in /usr/local/lib/python3.7/site-packages (from scikit-image->basicsr) (23.1)\n","Requirement already satisfied: tifffile>=2019.7.26 in /usr/local/lib/python3.7/site-packages (from scikit-image->basicsr) (2021.11.2)\n","Requirement already satisfied: PyWavelets>=1.1.1 in /usr/local/lib/python3.7/site-packages (from scikit-image->basicsr) (1.3.0)\n","Requirement already satisfied: imageio>=2.4.1 in /usr/local/lib/python3.7/site-packages (from scikit-image->basicsr) (2.31.1)\n","Collecting tensorboard-data-server<0.7.0,>=0.6.0\n"," Downloading tensorboard_data_server-0.6.1-py3-none-manylinux2010_x86_64.whl (4.9 MB)\n","\u001b[K |████████████████████████████████| 4.9 MB 40.6 MB/s \n","\u001b[?25hCollecting google-auth<3,>=1.6.3\n"," Downloading google_auth-2.22.0-py2.py3-none-any.whl (181 kB)\n","\u001b[K |████████████████████████████████| 181 kB 41.9 MB/s \n","\u001b[?25hCollecting google-auth-oauthlib<0.5,>=0.4.1\n"," Downloading google_auth_oauthlib-0.4.6-py2.py3-none-any.whl (18 kB)\n","Collecting werkzeug>=1.0.1\n"," Downloading Werkzeug-2.2.3-py3-none-any.whl (233 kB)\n","\u001b[K |████████████████████████████████| 233 kB 45.2 MB/s \n","\u001b[?25hRequirement already satisfied: wheel>=0.26 in /usr/local/lib/python3.7/site-packages (from tb-nightly->basicsr) (0.34.2)\n","Collecting grpcio>=1.24.3\n"," Downloading grpcio-1.57.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.3 MB)\n","\u001b[K |████████████████████████████████| 5.3 MB 41.0 MB/s \n","\u001b[?25hRequirement already satisfied: setuptools>=41.0.0 in /usr/local/lib/python3.7/site-packages (from tb-nightly->basicsr) (45.2.0.post20200210)\n","Requirement already satisfied: absl-py>=0.4 in /usr/local/lib/python3.7/site-packages (from tb-nightly->basicsr) (1.4.0)\n","Requirement already satisfied: protobuf<4,>=3.9.2 in /usr/local/lib/python3.7/site-packages (from tb-nightly->basicsr) (3.20.3)\n","Collecting markdown>=2.6.8\n"," Downloading Markdown-3.4.4-py3-none-any.whl (94 kB)\n","\u001b[K |████████████████████████████████| 94 kB 2.7 MB/s \n","\u001b[?25hCollecting tensorboard-plugin-wit>=1.6.0\n"," Downloading tensorboard_plugin_wit-1.8.1-py3-none-any.whl (781 kB)\n","\u001b[K |████████████████████████████████| 781 kB 48.7 MB/s \n","\u001b[?25hRequirement already satisfied: nvidia-cudnn-cu11==8.5.0.96; platform_system == \"Linux\" in /usr/local/lib/python3.7/site-packages (from torch>=1.7->basicsr) (8.5.0.96)\n","Requirement already satisfied: nvidia-cublas-cu11==11.10.3.66; platform_system == \"Linux\" in /usr/local/lib/python3.7/site-packages (from torch>=1.7->basicsr) (11.10.3.66)\n","Requirement already satisfied: nvidia-cuda-runtime-cu11==11.7.99; platform_system == \"Linux\" in /usr/local/lib/python3.7/site-packages (from torch>=1.7->basicsr) (11.7.99)\n","Requirement already satisfied: nvidia-cuda-nvrtc-cu11==11.7.99; platform_system == \"Linux\" in /usr/local/lib/python3.7/site-packages (from torch>=1.7->basicsr) (11.7.99)\n","Collecting tomli>=2.0.1\n"," Downloading tomli-2.0.1-py3-none-any.whl (12 kB)\n","Requirement already satisfied: importlib-metadata>=6.6.0 in /usr/local/lib/python3.7/site-packages (from yapf->basicsr) (6.7.0)\n","Requirement already satisfied: platformdirs>=3.5.1 in /usr/local/lib/python3.7/site-packages (from yapf->basicsr) (3.10.0)\n","Requirement already satisfied: llvmlite<0.40,>=0.39.0dev0 in /usr/local/lib/python3.7/site-packages (from numba->facexlib) (0.39.1)\n","Collecting pytz>=2017.3\n"," Downloading pytz-2023.3-py2.py3-none-any.whl (502 kB)\n","\u001b[K |████████████████████████████████| 502 kB 45.4 MB/s \n","\u001b[?25hRequirement already satisfied: python-dateutil>=2.7.3 in /usr/local/lib/python3.7/site-packages (from pandas->gradio) (2.8.2)\n","Requirement already satisfied: fonttools>=4.22.0 in /usr/local/lib/python3.7/site-packages (from matplotlib->gradio) (4.38.0)\n","Requirement already satisfied: cycler>=0.10 in /usr/local/lib/python3.7/site-packages (from matplotlib->gradio) (0.11.0)\n","Requirement already satisfied: kiwisolver>=1.0.1 in /usr/local/lib/python3.7/site-packages (from matplotlib->gradio) (1.4.4)\n","Requirement already satisfied: pyparsing>=2.2.1 in /usr/local/lib/python3.7/site-packages (from matplotlib->gradio) (3.1.1)\n","Collecting mdurl~=0.1\n"," Downloading mdurl-0.1.2-py3-none-any.whl (10.0 kB)\n","Collecting linkify-it-py<3,>=1; extra == \"linkify\"\n"," Downloading linkify_it_py-2.0.2-py3-none-any.whl (19 kB)\n","Collecting starlette<0.28.0,>=0.27.0\n"," Downloading starlette-0.27.0-py3-none-any.whl (66 kB)\n","\u001b[K |████████████████████████████████| 66 kB 5.8 MB/s \n","\u001b[?25hCollecting yarl<2.0,>=1.0\n"," Downloading yarl-1.9.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (236 kB)\n","\u001b[K |████████████████████████████████| 236 kB 50.2 MB/s \n","\u001b[?25hCollecting multidict<7.0,>=4.5\n"," Downloading multidict-6.0.4-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (94 kB)\n","\u001b[K |████████████████████████████████| 94 kB 4.1 MB/s \n","\u001b[?25hCollecting async-timeout<5.0,>=4.0.0a3\n"," Downloading async_timeout-4.0.3-py3-none-any.whl (5.7 kB)\n","Collecting asynctest==0.13.0; python_version < \"3.8\"\n"," Downloading asynctest-0.13.0-py3-none-any.whl (26 kB)\n","Requirement already satisfied: attrs>=17.3.0 in /usr/local/lib/python3.7/site-packages (from aiohttp->gradio) (23.1.0)\n","Collecting frozenlist>=1.1.1\n"," Downloading frozenlist-1.3.3-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (148 kB)\n","\u001b[K |████████████████████████████████| 148 kB 56.4 MB/s \n","\u001b[?25hCollecting charset-normalizer<4.0,>=2.0\n"," Downloading charset_normalizer-3.2.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (175 kB)\n","\u001b[K |████████████████████████████████| 175 kB 56.5 MB/s \n","\u001b[?25hCollecting aiosignal>=1.1.2\n"," Downloading aiosignal-1.3.1-py3-none-any.whl (7.6 kB)\n","Collecting toolz\n"," Downloading toolz-0.12.0-py3-none-any.whl (55 kB)\n","\u001b[K |████████████████████████████████| 55 kB 4.4 MB/s \n","\u001b[?25hCollecting jsonschema>=3.0\n"," Downloading jsonschema-4.17.3-py3-none-any.whl (90 kB)\n","\u001b[K |████████████████████████████████| 90 kB 9.8 MB/s \n","\u001b[?25hCollecting sniffio\n"," Downloading sniffio-1.3.0-py3-none-any.whl (10 kB)\n","Collecting httpcore<0.18.0,>=0.15.0\n"," Downloading httpcore-0.17.3-py3-none-any.whl (74 kB)\n","\u001b[K |████████████████████████████████| 74 kB 3.3 MB/s \n","\u001b[?25hCollecting pydantic-core==2.6.0\n"," Downloading pydantic_core-2.6.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.9 MB)\n","\u001b[K |████████████████████████████████| 1.9 MB 51.9 MB/s \n","\u001b[?25hCollecting annotated-types>=0.4.0\n"," Downloading annotated_types-0.5.0-py3-none-any.whl (11 kB)\n","Collecting fsspec\n"," Downloading fsspec-2023.1.0-py3-none-any.whl (143 kB)\n","\u001b[K |████████████████████████████████| 143 kB 57.2 MB/s \n","\u001b[?25hCollecting click>=7.0\n"," Downloading click-8.1.7-py3-none-any.whl (97 kB)\n","\u001b[K |████████████████████████████████| 97 kB 7.7 MB/s \n","\u001b[?25hCollecting h11>=0.8\n"," Downloading h11-0.14.0-py3-none-any.whl (58 kB)\n","\u001b[K |████████████████████████████████| 58 kB 6.4 MB/s \n","\u001b[?25hCollecting filelock\n"," Downloading filelock-3.12.2-py3-none-any.whl (10 kB)\n","Collecting rsa<5,>=3.1.4\n"," Downloading rsa-4.9-py3-none-any.whl (34 kB)\n","Collecting cachetools<6.0,>=2.0.0\n"," Downloading cachetools-5.3.1-py3-none-any.whl (9.3 kB)\n","Collecting pyasn1-modules>=0.2.1\n"," Downloading pyasn1_modules-0.3.0-py2.py3-none-any.whl (181 kB)\n","\u001b[K |████████████████████████████████| 181 kB 46.9 MB/s \n","\u001b[?25hRequirement already satisfied: six>=1.9.0 in /usr/local/lib/python3.7/site-packages (from google-auth<3,>=1.6.3->tb-nightly->basicsr) (1.14.0)\n","Collecting requests-oauthlib>=0.7.0\n"," Downloading requests_oauthlib-1.3.1-py2.py3-none-any.whl (23 kB)\n","Requirement already satisfied: zipp>=0.5 in /usr/local/lib/python3.7/site-packages (from importlib-metadata>=6.6.0->yapf->basicsr) (3.15.0)\n","Collecting uc-micro-py\n"," Downloading uc_micro_py-1.0.2-py3-none-any.whl (6.2 kB)\n","Collecting anyio<5,>=3.4.0\n"," Downloading anyio-3.7.1-py3-none-any.whl (80 kB)\n","\u001b[K |████████████████████████████████| 80 kB 8.2 MB/s \n","\u001b[?25hCollecting importlib-resources>=1.4.0; python_version < \"3.9\"\n"," Downloading importlib_resources-5.12.0-py3-none-any.whl (36 kB)\n","Collecting pkgutil-resolve-name>=1.3.10; python_version < \"3.9\"\n"," Downloading pkgutil_resolve_name-1.3.10-py3-none-any.whl (4.7 kB)\n","Collecting pyrsistent!=0.17.0,!=0.17.1,!=0.17.2,>=0.14.0\n"," Downloading pyrsistent-0.19.3-py3-none-any.whl (57 kB)\n","\u001b[K |████████████████████████████████| 57 kB 5.4 MB/s \n","\u001b[?25hCollecting pyasn1>=0.1.3\n"," Downloading pyasn1-0.5.0-py2.py3-none-any.whl (83 kB)\n","\u001b[K |████████████████████████████████| 83 kB 2.6 MB/s \n","\u001b[?25hCollecting oauthlib>=3.0.0\n"," Downloading oauthlib-3.2.2-py3-none-any.whl (151 kB)\n","\u001b[K |████████████████████████████████| 151 kB 51.1 MB/s \n","\u001b[?25hCollecting exceptiongroup; python_version < \"3.11\"\n"," Downloading exceptiongroup-1.1.3-py3-none-any.whl (14 kB)\n","Building wheels for collected packages: basicsr, future, filterpy, ffmpy\n"," Building wheel for basicsr (setup.py) ... \u001b[?25l\u001b[?25hdone\n"," Created wheel for basicsr: filename=basicsr-1.4.2-py3-none-any.whl size=214829 sha256=79715ebd8c13d1e012e374db7a220caf4376d376e3ff89c68673f1a31c92be0a\n"," Stored in directory: /root/.cache/pip/wheels/2c/b3/4a/e2bc545f98417b6766ca50dd82b2a1f2b37780c68d41da9ca9\n"," Building wheel for future (setup.py) ... \u001b[?25l\u001b[?25hdone\n"," Created wheel for future: filename=future-0.18.3-py3-none-any.whl size=492025 sha256=0e907c9283c89739368fba9e1684784def7a31496050e1b6c201aea57b8fb06d\n"," Stored in directory: /root/.cache/pip/wheels/fa/cd/1f/c6b7b50b564983bf3011e8fc75d06047ddc50c07f6e3660b00\n"," Building wheel for filterpy (setup.py) ... \u001b[?25l\u001b[?25hdone\n"," Created wheel for filterpy: filename=filterpy-1.4.5-py3-none-any.whl size=110449 sha256=bbabaef7fd0d5056b59bea6135d27e91adf193bb3a53c118d4ecd96eaf51abfc\n"," Stored in directory: /root/.cache/pip/wheels/ce/e0/ee/a2b3c5caab3418c1ccd8c4de573d4cbe13315d7e8b0a55fbc2\n"," Building wheel for ffmpy (setup.py) ... \u001b[?25l\u001b[?25hdone\n"," Created wheel for ffmpy: filename=ffmpy-0.3.1-py3-none-any.whl size=5580 sha256=b089ec40f1f6cf4d957dd917a7f4d1920bf374285e7ac26407142a66302c35f5\n"," Stored in directory: /root/.cache/pip/wheels/e7/85/80/52fc98d22e539825cb6529779ae360ed46f0eecfea1a01f200\n","Successfully built basicsr future filterpy ffmpy\n","Installing collected packages: addict, future, lmdb, pyyaml, tensorboard-data-server, pyasn1, rsa, cachetools, pyasn1-modules, google-auth, oauthlib, requests-oauthlib, google-auth-oauthlib, markupsafe, werkzeug, grpcio, markdown, tensorboard-plugin-wit, tb-nightly, tomli, yapf, basicsr, filterpy, facexlib, websockets, pytz, pandas, ffmpy, mdurl, uc-micro-py, linkify-it-py, markdown-it-py, pydub, pydantic-core, annotated-types, pydantic, exceptiongroup, sniffio, anyio, starlette, fastapi, multidict, yarl, async-timeout, asynctest, frozenlist, charset-normalizer, aiosignal, aiohttp, semantic-version, toolz, importlib-resources, pkgutil-resolve-name, pyrsistent, jsonschema, jinja2, altair, orjson, pygments, python-multipart, h11, httpcore, httpx, aiofiles, mdit-py-plugins, filelock, fsspec, huggingface-hub, gradio-client, click, uvicorn, gradio\n","Successfully installed addict-2.4.0 aiofiles-23.2.1 aiohttp-3.8.5 aiosignal-1.3.1 altair-5.0.1 annotated-types-0.5.0 anyio-3.7.1 async-timeout-4.0.3 asynctest-0.13.0 basicsr-1.4.2 cachetools-5.3.1 charset-normalizer-3.2.0 click-8.1.7 exceptiongroup-1.1.3 facexlib-0.3.0 fastapi-0.101.1 ffmpy-0.3.1 filelock-3.12.2 filterpy-1.4.5 frozenlist-1.3.3 fsspec-2023.1.0 future-0.18.3 google-auth-2.22.0 google-auth-oauthlib-0.4.6 gradio-3.34.0 gradio-client-0.2.6 grpcio-1.57.0 h11-0.14.0 httpcore-0.17.3 httpx-0.24.1 huggingface-hub-0.16.4 importlib-resources-5.12.0 jinja2-3.1.2 jsonschema-4.17.3 linkify-it-py-2.0.2 lmdb-1.4.1 markdown-3.4.4 markdown-it-py-2.2.0 markupsafe-2.1.3 mdit-py-plugins-0.3.3 mdurl-0.1.2 multidict-6.0.4 oauthlib-3.2.2 orjson-3.9.5 pandas-1.3.5 pkgutil-resolve-name-1.3.10 pyasn1-0.5.0 pyasn1-modules-0.3.0 pydantic-2.2.0 pydantic-core-2.6.0 pydub-0.25.1 pygments-2.16.1 pyrsistent-0.19.3 python-multipart-0.0.6 pytz-2023.3 pyyaml-6.0.1 requests-oauthlib-1.3.1 rsa-4.9 semantic-version-2.10.0 sniffio-1.3.0 starlette-0.27.0 tb-nightly-2.12.0a20230113 tensorboard-data-server-0.6.1 tensorboard-plugin-wit-1.8.1 tomli-2.0.1 toolz-0.12.0 uc-micro-py-1.0.2 uvicorn-0.22.0 websockets-11.0.3 werkzeug-2.2.3 yapf-0.40.1 yarl-1.9.2\n"]},{"output_type":"display_data","data":{"application/vnd.colab-display-data+json":{"pip_warning":{"packages":["pygments"]}}},"metadata":{}},{"output_type":"stream","name":"stdout","text":["Requirement already satisfied: basicsr>=1.4.2 in /usr/local/lib/python3.7/site-packages (from -r requirements.txt (line 1)) (1.4.2)\n","Requirement already satisfied: facexlib>=0.2.5 in /usr/local/lib/python3.7/site-packages (from -r requirements.txt (line 2)) (0.3.0)\n","Requirement already satisfied: lmdb in /usr/local/lib/python3.7/site-packages (from -r requirements.txt (line 3)) (1.4.1)\n","Requirement already satisfied: numpy in /usr/local/lib/python3.7/site-packages (from -r requirements.txt (line 4)) (1.21.6)\n","Requirement already satisfied: opencv-python in /usr/local/lib/python3.7/site-packages (from -r requirements.txt (line 5)) (4.6.0.66)\n","Requirement already satisfied: pyyaml in /usr/local/lib/python3.7/site-packages (from -r requirements.txt (line 6)) (6.0.1)\n","Requirement already satisfied: scipy in /usr/local/lib/python3.7/site-packages (from -r requirements.txt (line 7)) (1.4.1)\n","Requirement already satisfied: tb-nightly in /usr/local/lib/python3.7/site-packages (from -r requirements.txt (line 8)) (2.12.0a20230113)\n","Requirement already satisfied: torch>=1.7 in /usr/local/lib/python3.7/site-packages (from -r requirements.txt (line 9)) (1.13.1)\n","Requirement already satisfied: torchvision in /usr/local/lib/python3.7/site-packages (from -r requirements.txt (line 10)) (0.14.1)\n","Requirement already satisfied: tqdm in /usr/local/lib/python3.7/site-packages (from -r requirements.txt (line 11)) (4.64.1)\n","Requirement already satisfied: yapf in /usr/local/lib/python3.7/site-packages (from -r requirements.txt (line 12)) (0.40.1)\n","Requirement already satisfied: addict in /usr/local/lib/python3.7/site-packages (from basicsr>=1.4.2->-r requirements.txt (line 1)) (2.4.0)\n","Requirement already satisfied: future in /usr/local/lib/python3.7/site-packages (from basicsr>=1.4.2->-r requirements.txt (line 1)) (0.18.3)\n","Requirement already satisfied: Pillow in /usr/local/lib/python3.7/site-packages (from basicsr>=1.4.2->-r requirements.txt (line 1)) (9.5.0)\n","Requirement already satisfied: scikit-image in /usr/local/lib/python3.7/site-packages (from basicsr>=1.4.2->-r requirements.txt (line 1)) (0.19.3)\n","Requirement already satisfied: requests in /usr/local/lib/python3.7/site-packages (from basicsr>=1.4.2->-r requirements.txt (line 1)) (2.22.0)\n","Requirement already satisfied: filterpy in /usr/local/lib/python3.7/site-packages (from facexlib>=0.2.5->-r requirements.txt (line 2)) (1.4.5)\n","Requirement already satisfied: numba in /usr/local/lib/python3.7/site-packages (from facexlib>=0.2.5->-r requirements.txt (line 2)) (0.56.4)\n","Requirement already satisfied: markdown>=2.6.8 in /usr/local/lib/python3.7/site-packages (from tb-nightly->-r requirements.txt (line 8)) (3.4.4)\n","Requirement already satisfied: protobuf<4,>=3.9.2 in /usr/local/lib/python3.7/site-packages (from tb-nightly->-r requirements.txt (line 8)) (3.20.3)\n","Requirement already satisfied: setuptools>=41.0.0 in /usr/local/lib/python3.7/site-packages (from tb-nightly->-r requirements.txt (line 8)) (45.2.0.post20200210)\n","Requirement already satisfied: google-auth<3,>=1.6.3 in /usr/local/lib/python3.7/site-packages (from tb-nightly->-r requirements.txt (line 8)) (2.22.0)\n","Requirement already satisfied: tensorboard-plugin-wit>=1.6.0 in /usr/local/lib/python3.7/site-packages (from tb-nightly->-r requirements.txt (line 8)) (1.8.1)\n","Requirement already satisfied: wheel>=0.26 in /usr/local/lib/python3.7/site-packages (from tb-nightly->-r requirements.txt (line 8)) (0.34.2)\n","Requirement already satisfied: google-auth-oauthlib<0.5,>=0.4.1 in /usr/local/lib/python3.7/site-packages (from tb-nightly->-r requirements.txt (line 8)) (0.4.6)\n","Requirement already satisfied: tensorboard-data-server<0.7.0,>=0.6.0 in /usr/local/lib/python3.7/site-packages (from tb-nightly->-r requirements.txt (line 8)) (0.6.1)\n","Requirement already satisfied: absl-py>=0.4 in /usr/local/lib/python3.7/site-packages (from tb-nightly->-r requirements.txt (line 8)) (1.4.0)\n","Requirement already satisfied: werkzeug>=1.0.1 in /usr/local/lib/python3.7/site-packages (from tb-nightly->-r requirements.txt (line 8)) (2.2.3)\n","Requirement already satisfied: grpcio>=1.24.3 in /usr/local/lib/python3.7/site-packages (from tb-nightly->-r requirements.txt (line 8)) (1.57.0)\n","Requirement already satisfied: nvidia-cuda-nvrtc-cu11==11.7.99; platform_system == \"Linux\" in /usr/local/lib/python3.7/site-packages (from torch>=1.7->-r requirements.txt (line 9)) (11.7.99)\n","Requirement already satisfied: nvidia-cudnn-cu11==8.5.0.96; platform_system == \"Linux\" in /usr/local/lib/python3.7/site-packages (from torch>=1.7->-r requirements.txt (line 9)) (8.5.0.96)\n","Requirement already satisfied: nvidia-cuda-runtime-cu11==11.7.99; platform_system == \"Linux\" in /usr/local/lib/python3.7/site-packages (from torch>=1.7->-r requirements.txt (line 9)) (11.7.99)\n","Requirement already satisfied: typing-extensions in /usr/local/lib/python3.7/site-packages (from torch>=1.7->-r requirements.txt (line 9)) (4.6.3)\n","Requirement already satisfied: nvidia-cublas-cu11==11.10.3.66; platform_system == \"Linux\" in /usr/local/lib/python3.7/site-packages (from torch>=1.7->-r requirements.txt (line 9)) (11.10.3.66)\n","Requirement already satisfied: platformdirs>=3.5.1 in /usr/local/lib/python3.7/site-packages (from yapf->-r requirements.txt (line 12)) (3.10.0)\n","Requirement already satisfied: tomli>=2.0.1 in /usr/local/lib/python3.7/site-packages (from yapf->-r requirements.txt (line 12)) (2.0.1)\n","Requirement already satisfied: importlib-metadata>=6.6.0 in /usr/local/lib/python3.7/site-packages (from yapf->-r requirements.txt (line 12)) (6.7.0)\n","Requirement already satisfied: tifffile>=2019.7.26 in /usr/local/lib/python3.7/site-packages (from scikit-image->basicsr>=1.4.2->-r requirements.txt (line 1)) (2021.11.2)\n","Requirement already satisfied: packaging>=20.0 in /usr/local/lib/python3.7/site-packages (from scikit-image->basicsr>=1.4.2->-r requirements.txt (line 1)) (23.1)\n","Requirement already satisfied: imageio>=2.4.1 in /usr/local/lib/python3.7/site-packages (from scikit-image->basicsr>=1.4.2->-r requirements.txt (line 1)) (2.31.1)\n","Requirement already satisfied: networkx>=2.2 in /usr/local/lib/python3.7/site-packages (from scikit-image->basicsr>=1.4.2->-r requirements.txt (line 1)) (2.6.3)\n","Requirement already satisfied: PyWavelets>=1.1.1 in /usr/local/lib/python3.7/site-packages (from scikit-image->basicsr>=1.4.2->-r requirements.txt (line 1)) (1.3.0)\n","Requirement already satisfied: idna<2.9,>=2.5 in /usr/local/lib/python3.7/site-packages (from requests->basicsr>=1.4.2->-r requirements.txt (line 1)) (2.8)\n","Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.7/site-packages (from requests->basicsr>=1.4.2->-r requirements.txt (line 1)) (2020.6.20)\n","Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in /usr/local/lib/python3.7/site-packages (from requests->basicsr>=1.4.2->-r requirements.txt (line 1)) (1.25.8)\n","Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /usr/local/lib/python3.7/site-packages (from requests->basicsr>=1.4.2->-r requirements.txt (line 1)) (3.0.4)\n","Requirement already satisfied: matplotlib in /usr/local/lib/python3.7/site-packages (from filterpy->facexlib>=0.2.5->-r requirements.txt (line 2)) (3.5.3)\n","Requirement already satisfied: llvmlite<0.40,>=0.39.0dev0 in /usr/local/lib/python3.7/site-packages (from numba->facexlib>=0.2.5->-r requirements.txt (line 2)) (0.39.1)\n","Requirement already satisfied: rsa<5,>=3.1.4 in /usr/local/lib/python3.7/site-packages (from google-auth<3,>=1.6.3->tb-nightly->-r requirements.txt (line 8)) (4.9)\n","Requirement already satisfied: pyasn1-modules>=0.2.1 in /usr/local/lib/python3.7/site-packages (from google-auth<3,>=1.6.3->tb-nightly->-r requirements.txt (line 8)) (0.3.0)\n","Requirement already satisfied: six>=1.9.0 in /usr/local/lib/python3.7/site-packages (from google-auth<3,>=1.6.3->tb-nightly->-r requirements.txt (line 8)) (1.14.0)\n","Requirement already satisfied: cachetools<6.0,>=2.0.0 in /usr/local/lib/python3.7/site-packages (from google-auth<3,>=1.6.3->tb-nightly->-r requirements.txt (line 8)) (5.3.1)\n","Requirement already satisfied: requests-oauthlib>=0.7.0 in /usr/local/lib/python3.7/site-packages (from google-auth-oauthlib<0.5,>=0.4.1->tb-nightly->-r requirements.txt (line 8)) (1.3.1)\n","Requirement already satisfied: MarkupSafe>=2.1.1 in /usr/local/lib/python3.7/site-packages (from werkzeug>=1.0.1->tb-nightly->-r requirements.txt (line 8)) (2.1.3)\n","Requirement already satisfied: zipp>=0.5 in /usr/local/lib/python3.7/site-packages (from importlib-metadata>=6.6.0->yapf->-r requirements.txt (line 12)) (3.15.0)\n","Requirement already satisfied: pyparsing>=2.2.1 in /usr/local/lib/python3.7/site-packages (from matplotlib->filterpy->facexlib>=0.2.5->-r requirements.txt (line 2)) (3.1.1)\n","Requirement already satisfied: python-dateutil>=2.7 in /usr/local/lib/python3.7/site-packages (from matplotlib->filterpy->facexlib>=0.2.5->-r requirements.txt (line 2)) (2.8.2)\n","Requirement already satisfied: fonttools>=4.22.0 in /usr/local/lib/python3.7/site-packages (from matplotlib->filterpy->facexlib>=0.2.5->-r requirements.txt (line 2)) (4.38.0)\n","Requirement already satisfied: cycler>=0.10 in /usr/local/lib/python3.7/site-packages (from matplotlib->filterpy->facexlib>=0.2.5->-r requirements.txt (line 2)) (0.11.0)\n","Requirement already satisfied: kiwisolver>=1.0.1 in /usr/local/lib/python3.7/site-packages (from matplotlib->filterpy->facexlib>=0.2.5->-r requirements.txt (line 2)) (1.4.4)\n","Requirement already satisfied: pyasn1>=0.1.3 in /usr/local/lib/python3.7/site-packages (from rsa<5,>=3.1.4->google-auth<3,>=1.6.3->tb-nightly->-r requirements.txt (line 8)) (0.5.0)\n","Requirement already satisfied: oauthlib>=3.0.0 in /usr/local/lib/python3.7/site-packages (from requests-oauthlib>=0.7.0->google-auth-oauthlib<0.5,>=0.4.1->tb-nightly->-r requirements.txt (line 8)) (3.2.2)\n","running develop\n","running egg_info\n","creating gfpgan.egg-info\n","writing gfpgan.egg-info/PKG-INFO\n","writing dependency_links to gfpgan.egg-info/dependency_links.txt\n","writing requirements to gfpgan.egg-info/requires.txt\n","writing top-level names to gfpgan.egg-info/top_level.txt\n","writing manifest file 'gfpgan.egg-info/SOURCES.txt'\n","reading manifest file 'gfpgan.egg-info/SOURCES.txt'\n","reading manifest template 'MANIFEST.in'\n","warning: no files found matching 'inputs/*'\n","writing manifest file 'gfpgan.egg-info/SOURCES.txt'\n","running build_ext\n","Creating /usr/local/lib/python3.7/site-packages/gfpgan.egg-link (link to .)\n","Adding gfpgan 1.3.8 to easy-install.pth file\n","\n","Installed /content/GFPGAN\n","Processing dependencies for gfpgan==1.3.8\n","error: typing-extensions 4.6.3 is installed but typing-extensions>=4.7.1; python_version < \"3.8\" is required by {'platformdirs'}\n","--2023-08-18 01:46:28-- https://github.com/TencentARC/GFPGAN/releases/download/v1.3.0/GFPGANv1.3.pth\n","Resolving github.com (github.com)... 20.205.243.166\n","Connecting to github.com (github.com)|20.205.243.166|:443... connected.\n","HTTP request sent, awaiting response... 302 Found\n","Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/349321229/e9847322-b8b1-4ec2-9620-5146eb8a9e4b?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230818%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230818T014429Z&X-Amz-Expires=300&X-Amz-Signature=b4d5ea87706d1f31a9e34970dc53b7cbac05c9bd567d30652f5ffc9a15bc3a31&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=349321229&response-content-disposition=attachment%3B%20filename%3DGFPGANv1.3.pth&response-content-type=application%2Foctet-stream [following]\n","--2023-08-18 01:46:28-- https://objects.githubusercontent.com/github-production-release-asset-2e65be/349321229/e9847322-b8b1-4ec2-9620-5146eb8a9e4b?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230818%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230818T014429Z&X-Amz-Expires=300&X-Amz-Signature=b4d5ea87706d1f31a9e34970dc53b7cbac05c9bd567d30652f5ffc9a15bc3a31&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=349321229&response-content-disposition=attachment%3B%20filename%3DGFPGANv1.3.pth&response-content-type=application%2Foctet-stream\n","Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.108.133, 185.199.109.133, 185.199.110.133, ...\n","Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.108.133|:443... connected.\n","HTTP request sent, awaiting response... 200 OK\n","Length: 348632874 (332M) [application/octet-stream]\n","Saving to: ‘/content/GFPGAN/experiments/pretrained_models/GFPGANv1.3.pth’\n","\n","GFPGANv1.3.pth 100%[===================>] 332.48M 14.9MB/s in 16s \n","\n","2023-08-18 01:46:44 (20.6 MB/s) - ‘/content/GFPGAN/experiments/pretrained_models/GFPGANv1.3.pth’ saved [348632874/348632874]\n","\n"]}],"source":["#@title 七、安装GFPGAN\n","# 下载GFPGAN的源码\n","%cd /content\n","!git clone https://github.com/TencentARC/GFPGAN\n","\n","# 安装依赖并下载Wav2Lip-GFPGAN的权重\n","%cd /content/GFPGAN\n","!pip install basicsr facexlib gradio\n","!pip install -r requirements.txt\n","!python setup.py develop\n","!wget https://github.com/TencentARC/GFPGAN/releases/download/v1.3.0/GFPGANv1.3.pth -P '/content/GFPGAN/experiments/pretrained_models'"]},{"cell_type":"code","source":["#@title 八、进行超分处理\n","%cd /content\n","!rm -rf images\n","!rm -rf hd_images\n","!rm -rf output\n","!mkdir output\n","!mkdir hd_images\n","!mkdir images\n","\n","# 自行更改视频路径 帧率-r 25 # -r 30\n","!ffmpeg -i /content/IP_LAP/test_result/output.mp4 -r 25 /content/images/%5d.png\n","\n","# 提取视频中的音频,用于后续处理\n","!ffmpeg -i /content/IP_LAP/test_result/4444result_N_25_Nl_15.mp4 /content/output/final.mp3\n","\n","# 运行GFPGAN推理,-s 2 改成 -s 1 ,下调上采样\n","%cd /content/GFPGAN\n","!python inference_gfpgan.py -i /content/images -o /content/hd_images -v 1.3 -s 1 --only_center_face --bg_upsampler None\n","\n","# 合并成高清视频\n","# ffmpeg 将文件中每一帧图片合并成mp4 ,帧率-r 25 # -r 30\n","%cd /content/hd_images/restored_imgs\n","!ffmpeg -framerate 25 -i %05d.png -pix_fmt yuv420p /content/hd_images/results.mp4\n","%cd /content\n","# 音视频合成\n","!ffmpeg -i /content/hd_images/results.mp4 -i /content/output/final.mp3 -c copy /content/output/final.mp4\n","print('恭喜您高清数字人视频合并成功,')\n"],"metadata":{"colab":{"base_uri":"https://localhost:8080/"},"id":"kijL7Wr2Yi0N","executionInfo":{"status":"ok","timestamp":1692325482977,"user_tz":-480,"elapsed":631375,"user":{"displayName":"rui lu","userId":"15695518765939055507"}},"outputId":"6d51571f-37f6-443c-afda-291209d475c4"},"execution_count":null,"outputs":[{"output_type":"stream","name":"stdout","text":["/content\n","ffmpeg version 4.4.2-0ubuntu0.22.04.1 Copyright (c) 2000-2021 the FFmpeg developers\n"," built with gcc 11 (Ubuntu 11.2.0-19ubuntu1)\n"," configuration: --prefix=/usr --extra-version=0ubuntu0.22.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared\n"," libavutil 56. 70.100 / 56. 70.100\n"," libavcodec 58.134.100 / 58.134.100\n"," libavformat 58. 76.100 / 58. 76.100\n"," libavdevice 58. 13.100 / 58. 13.100\n"," libavfilter 7.110.100 / 7.110.100\n"," libswscale 5. 9.100 / 5. 9.100\n"," libswresample 3. 9.100 / 3. 9.100\n"," libpostproc 55. 9.100 / 55. 9.100\n","Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/content/IP_LAP/test_result/output.mp4':\n"," Metadata:\n"," major_brand : isom\n"," minor_version : 512\n"," compatible_brands: isomiso2mp41\n"," encoder : Lavf59.27.100\n"," Duration: 00:00:24.56, start: 0.000000, bitrate: 2385 kb/s\n"," Stream #0:0(und): Video: mpeg4 (Simple Profile) (mp4v / 0x7634706D), yuv420p, 1080x1080 [SAR 1:1 DAR 1:1], 2384 kb/s, 25 fps, 25 tbr, 12800 tbn, 25 tbc (default)\n"," Metadata:\n"," handler_name : VideoHandler\n"," vendor_id : [0][0][0][0]\n","Stream mapping:\n"," Stream #0:0 -> #0:0 (mpeg4 (native) -> png (native))\n","Press [q] to stop, [?] for help\n","Output #0, image2, to '/content/images/%5d.png':\n"," Metadata:\n"," major_brand : isom\n"," minor_version : 512\n"," compatible_brands: isomiso2mp41\n"," encoder : Lavf58.76.100\n"," Stream #0:0(und): Video: png, rgb24(pc, gbr/unknown/unknown, progressive), 1080x1080 [SAR 1:1 DAR 1:1], q=2-31, 200 kb/s, 25 fps, 25 tbn (default)\n"," Metadata:\n"," handler_name : VideoHandler\n"," vendor_id : [0][0][0][0]\n"," encoder : Lavc58.134.100 png\n","frame= 614 fps= 11 q=-0.0 Lsize=N/A time=00:00:24.56 bitrate=N/A speed=0.448x \n","video:444168kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown\n","ffmpeg version 4.4.2-0ubuntu0.22.04.1 Copyright (c) 2000-2021 the FFmpeg developers\n"," built with gcc 11 (Ubuntu 11.2.0-19ubuntu1)\n"," configuration: --prefix=/usr --extra-version=0ubuntu0.22.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared\n"," libavutil 56. 70.100 / 56. 70.100\n"," libavcodec 58.134.100 / 58.134.100\n"," libavformat 58. 76.100 / 58. 76.100\n"," libavdevice 58. 13.100 / 58. 13.100\n"," libavfilter 7.110.100 / 7.110.100\n"," libswscale 5. 9.100 / 5. 9.100\n"," libswresample 3. 9.100 / 3. 9.100\n"," libpostproc 55. 9.100 / 55. 9.100\n","Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/content/IP_LAP/test_result/4444result_N_25_Nl_15.mp4':\n"," Metadata:\n"," major_brand : isom\n"," minor_version : 512\n"," compatible_brands: isomiso2avc1mp41\n"," encoder : Lavf58.76.100\n"," Duration: 00:00:24.71, start: 0.000000, bitrate: 2144 kb/s\n"," Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 2160x1080 [SAR 1:1 DAR 2:1], 2026 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)\n"," Metadata:\n"," handler_name : VideoHandler\n"," vendor_id : [0][0][0][0]\n"," Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 123 kb/s (default)\n"," Metadata:\n"," handler_name : SoundHandler\n"," vendor_id : [0][0][0][0]\n","Stream mapping:\n"," Stream #0:1 -> #0:0 (aac (native) -> mp3 (libmp3lame))\n","Press [q] to stop, [?] for help\n","Output #0, mp3, to '/content/output/final.mp3':\n"," Metadata:\n"," major_brand : isom\n"," minor_version : 512\n"," compatible_brands: isomiso2avc1mp41\n"," TSSE : Lavf58.76.100\n"," Stream #0:0(und): Audio: mp3, 44100 Hz, stereo, fltp (default)\n"," Metadata:\n"," handler_name : SoundHandler\n"," vendor_id : [0][0][0][0]\n"," encoder : Lavc58.134.100 libmp3lame\n","size= 387kB time=00:00:24.71 bitrate= 128.4kbits/s speed=44.3x \n","video:0kB audio:387kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.089848%\n","/content/GFPGAN\n","/usr/local/lib/python3.7/site-packages/torchvision/models/_utils.py:209: UserWarning: The parameter 'pretrained' is deprecated since 0.13 and may be removed in the future, please use 'weights' instead.\n"," f\"The parameter '{pretrained_param}' is deprecated since 0.13 and may be removed in the future, \"\n","/usr/local/lib/python3.7/site-packages/torchvision/models/_utils.py:223: UserWarning: Arguments other than a weight enum or `None` for 'weights' are deprecated since 0.13 and may be removed in the future. The current behavior is equivalent to passing `weights=None`.\n"," warnings.warn(msg)\n","Downloading: \"https://github.com/xinntao/facexlib/releases/download/v0.1.0/detection_Resnet50_Final.pth\" to /content/GFPGAN/gfpgan/weights/detection_Resnet50_Final.pth\n","\n","100% 104M/104M [00:07<00:00, 15.6MB/s]\n","Downloading: \"https://github.com/xinntao/facexlib/releases/download/v0.2.2/parsing_parsenet.pth\" to /content/GFPGAN/gfpgan/weights/parsing_parsenet.pth\n","\n","100% 81.4M/81.4M [00:00<00:00, 169MB/s]\n","Processing 00001.png ...\n","Processing 00002.png ...\n","Processing 00003.png ...\n","Processing 00004.png ...\n","Processing 00005.png ...\n","Processing 00006.png ...\n","Processing 00007.png ...\n","Processing 00008.png ...\n","Processing 00009.png ...\n","Processing 00010.png ...\n","Processing 00011.png ...\n","Processing 00012.png ...\n","Processing 00013.png ...\n","Processing 00014.png ...\n","Processing 00015.png ...\n","Processing 00016.png ...\n","Processing 00017.png ...\n","Processing 00018.png ...\n","Processing 00019.png ...\n","Processing 00020.png ...\n","Processing 00021.png ...\n","Processing 00022.png ...\n","Processing 00023.png ...\n","Processing 00024.png ...\n","Processing 00025.png ...\n","Processing 00026.png ...\n","Processing 00027.png ...\n","Processing 00028.png ...\n","Processing 00029.png ...\n","Processing 00030.png ...\n","Processing 00031.png ...\n","Processing 00032.png ...\n","Processing 00033.png ...\n","Processing 00034.png ...\n","Processing 00035.png ...\n","Processing 00036.png ...\n","Processing 00037.png ...\n","Processing 00038.png ...\n","Processing 00039.png ...\n","Processing 00040.png ...\n","Processing 00041.png ...\n","Processing 00042.png ...\n","Processing 00043.png ...\n","Processing 00044.png ...\n","Processing 00045.png ...\n","Processing 00046.png ...\n","Processing 00047.png ...\n","Processing 00048.png ...\n","Processing 00049.png ...\n","Processing 00050.png ...\n","Processing 00051.png ...\n","Processing 00052.png ...\n","Processing 00053.png ...\n","Processing 00054.png ...\n","Processing 00055.png ...\n","Processing 00056.png ...\n","Processing 00057.png ...\n","Processing 00058.png ...\n","Processing 00059.png ...\n","Processing 00060.png ...\n","Processing 00061.png ...\n","Processing 00062.png ...\n","Processing 00063.png ...\n","Processing 00064.png ...\n","Processing 00065.png ...\n","Processing 00066.png ...\n","Processing 00067.png ...\n","Processing 00068.png ...\n","Processing 00069.png ...\n","Processing 00070.png ...\n","Processing 00071.png ...\n","Processing 00072.png ...\n","Processing 00073.png ...\n","Processing 00074.png ...\n","Processing 00075.png ...\n","Processing 00076.png ...\n","Processing 00077.png ...\n","Processing 00078.png ...\n","Processing 00079.png ...\n","Processing 00080.png ...\n","Processing 00081.png ...\n","Processing 00082.png ...\n","Processing 00083.png ...\n","Processing 00084.png ...\n","Processing 00085.png ...\n","Processing 00086.png ...\n","Processing 00087.png ...\n","Processing 00088.png ...\n","Processing 00089.png ...\n","Processing 00090.png ...\n","Processing 00091.png ...\n","Processing 00092.png ...\n","Processing 00093.png ...\n","Processing 00094.png ...\n","Processing 00095.png ...\n","Processing 00096.png ...\n","Processing 00097.png ...\n","Processing 00098.png ...\n","Processing 00099.png ...\n","Processing 00100.png ...\n","Processing 00101.png ...\n","Processing 00102.png ...\n","Processing 00103.png ...\n","Processing 00104.png ...\n","Processing 00105.png ...\n","Processing 00106.png ...\n","Processing 00107.png ...\n","Processing 00108.png ...\n","Processing 00109.png ...\n","Processing 00110.png ...\n","Processing 00111.png ...\n","Processing 00112.png ...\n","Processing 00113.png ...\n","Processing 00114.png ...\n","Processing 00115.png ...\n","Processing 00116.png ...\n","Processing 00117.png ...\n","Processing 00118.png ...\n","Processing 00119.png ...\n","Processing 00120.png ...\n","Processing 00121.png ...\n","Processing 00122.png ...\n","Processing 00123.png ...\n","Processing 00124.png ...\n","Processing 00125.png ...\n","Processing 00126.png ...\n","Processing 00127.png ...\n","Processing 00128.png ...\n","Processing 00129.png ...\n","Processing 00130.png ...\n","Processing 00131.png ...\n","Processing 00132.png ...\n","Processing 00133.png ...\n","Processing 00134.png ...\n","Processing 00135.png ...\n","Processing 00136.png ...\n","Processing 00137.png ...\n","Processing 00138.png ...\n","Processing 00139.png ...\n","Processing 00140.png ...\n","Processing 00141.png ...\n","Processing 00142.png ...\n","Processing 00143.png ...\n","Processing 00144.png ...\n","Processing 00145.png ...\n","Processing 00146.png ...\n","Processing 00147.png ...\n","Processing 00148.png ...\n","Processing 00149.png ...\n","Processing 00150.png ...\n","Processing 00151.png ...\n","Processing 00152.png ...\n","Processing 00153.png ...\n","Processing 00154.png ...\n","Processing 00155.png ...\n","Processing 00156.png ...\n","Processing 00157.png ...\n","Processing 00158.png ...\n","Processing 00159.png ...\n","Processing 00160.png ...\n","Processing 00161.png ...\n","Processing 00162.png ...\n","Processing 00163.png ...\n","Processing 00164.png ...\n","Processing 00165.png ...\n","Processing 00166.png ...\n","Processing 00167.png ...\n","Processing 00168.png ...\n","Processing 00169.png ...\n","Processing 00170.png ...\n","Processing 00171.png ...\n","Processing 00172.png ...\n","Processing 00173.png ...\n","Processing 00174.png ...\n","Processing 00175.png ...\n","Processing 00176.png ...\n","Processing 00177.png ...\n","Processing 00178.png ...\n","Processing 00179.png ...\n","Processing 00180.png ...\n","Processing 00181.png ...\n","Processing 00182.png ...\n","Processing 00183.png ...\n","Processing 00184.png ...\n","Processing 00185.png ...\n","Processing 00186.png ...\n","Processing 00187.png ...\n","Processing 00188.png ...\n","Processing 00189.png ...\n","Processing 00190.png ...\n","Processing 00191.png ...\n","Processing 00192.png ...\n","Processing 00193.png ...\n","Processing 00194.png ...\n","Processing 00195.png ...\n","Processing 00196.png ...\n","Processing 00197.png ...\n","Processing 00198.png ...\n","Processing 00199.png ...\n","Processing 00200.png ...\n","Processing 00201.png ...\n","Processing 00202.png ...\n","Processing 00203.png ...\n","Processing 00204.png ...\n","Processing 00205.png ...\n","Processing 00206.png ...\n","Processing 00207.png ...\n","Processing 00208.png ...\n","Processing 00209.png ...\n","Processing 00210.png ...\n","Processing 00211.png ...\n","Processing 00212.png ...\n","Processing 00213.png ...\n","Processing 00214.png ...\n","Processing 00215.png ...\n","Processing 00216.png ...\n","Processing 00217.png ...\n","Processing 00218.png ...\n","Processing 00219.png ...\n","Processing 00220.png ...\n","Processing 00221.png ...\n","Processing 00222.png ...\n","Processing 00223.png ...\n","Processing 00224.png ...\n","Processing 00225.png ...\n","Processing 00226.png ...\n","Processing 00227.png ...\n","Processing 00228.png ...\n","Processing 00229.png ...\n","Processing 00230.png ...\n","Processing 00231.png ...\n","Processing 00232.png ...\n","Processing 00233.png ...\n","Processing 00234.png ...\n","Processing 00235.png ...\n","Processing 00236.png ...\n","Processing 00237.png ...\n","Processing 00238.png ...\n","Processing 00239.png ...\n","Processing 00240.png ...\n","Processing 00241.png ...\n","Processing 00242.png ...\n","Processing 00243.png ...\n","Processing 00244.png ...\n","Processing 00245.png ...\n","Processing 00246.png ...\n","Processing 00247.png ...\n","Processing 00248.png ...\n","Processing 00249.png ...\n","Processing 00250.png ...\n","Processing 00251.png ...\n","Processing 00252.png ...\n","Processing 00253.png ...\n","Processing 00254.png ...\n","Processing 00255.png ...\n","Processing 00256.png ...\n","Processing 00257.png ...\n","Processing 00258.png ...\n","Processing 00259.png ...\n","Processing 00260.png ...\n","Processing 00261.png ...\n","Processing 00262.png ...\n","Processing 00263.png ...\n","Processing 00264.png ...\n","Processing 00265.png ...\n","Processing 00266.png ...\n","Processing 00267.png ...\n","Processing 00268.png ...\n","Processing 00269.png ...\n","Processing 00270.png ...\n","Processing 00271.png ...\n","Processing 00272.png ...\n","Processing 00273.png ...\n","Processing 00274.png ...\n","Processing 00275.png ...\n","Processing 00276.png ...\n","Processing 00277.png ...\n","Processing 00278.png ...\n","Processing 00279.png ...\n","Processing 00280.png ...\n","Processing 00281.png ...\n","Processing 00282.png ...\n","Processing 00283.png ...\n","Processing 00284.png ...\n","Processing 00285.png ...\n","Processing 00286.png ...\n","Processing 00287.png ...\n","Processing 00288.png ...\n","Processing 00289.png ...\n","Processing 00290.png ...\n","Processing 00291.png ...\n","Processing 00292.png ...\n","Processing 00293.png ...\n","Processing 00294.png ...\n","Processing 00295.png ...\n","Processing 00296.png ...\n","Processing 00297.png ...\n","Processing 00298.png ...\n","Processing 00299.png ...\n","Processing 00300.png ...\n","Processing 00301.png ...\n","Processing 00302.png ...\n","Processing 00303.png ...\n","Processing 00304.png ...\n","Processing 00305.png ...\n","Processing 00306.png ...\n","Processing 00307.png ...\n","Processing 00308.png ...\n","Processing 00309.png ...\n","Processing 00310.png ...\n","Processing 00311.png ...\n","Processing 00312.png ...\n","Processing 00313.png ...\n","Processing 00314.png ...\n","Processing 00315.png ...\n","Processing 00316.png ...\n","Processing 00317.png ...\n","Processing 00318.png ...\n","Processing 00319.png ...\n","Processing 00320.png ...\n","Processing 00321.png ...\n","Processing 00322.png ...\n","Processing 00323.png ...\n","Processing 00324.png ...\n","Processing 00325.png ...\n","Processing 00326.png ...\n","Processing 00327.png ...\n","Processing 00328.png ...\n","Processing 00329.png ...\n","Processing 00330.png ...\n","Processing 00331.png ...\n","Processing 00332.png ...\n","Processing 00333.png ...\n","Processing 00334.png ...\n","Processing 00335.png ...\n","Processing 00336.png ...\n","Processing 00337.png ...\n","Processing 00338.png ...\n","Processing 00339.png ...\n","Processing 00340.png ...\n","Processing 00341.png ...\n","Processing 00342.png ...\n","Processing 00343.png ...\n","Processing 00344.png ...\n","Processing 00345.png ...\n","Processing 00346.png ...\n","Processing 00347.png ...\n","Processing 00348.png ...\n","Processing 00349.png ...\n","Processing 00350.png ...\n","Processing 00351.png ...\n","Processing 00352.png ...\n","Processing 00353.png ...\n","Processing 00354.png ...\n","Processing 00355.png ...\n","Processing 00356.png ...\n","Processing 00357.png ...\n","Processing 00358.png ...\n","Processing 00359.png ...\n","Processing 00360.png ...\n","Processing 00361.png ...\n","Processing 00362.png ...\n","Processing 00363.png ...\n","Processing 00364.png ...\n","Processing 00365.png ...\n","Processing 00366.png ...\n","Processing 00367.png ...\n","Processing 00368.png ...\n","Processing 00369.png ...\n","Processing 00370.png ...\n","Processing 00371.png ...\n","Processing 00372.png ...\n","Processing 00373.png ...\n","Processing 00374.png ...\n","Processing 00375.png ...\n","Processing 00376.png ...\n","Processing 00377.png ...\n","Processing 00378.png ...\n","Processing 00379.png ...\n","Processing 00380.png ...\n","Processing 00381.png ...\n","Processing 00382.png ...\n","Processing 00383.png ...\n","Processing 00384.png ...\n","Processing 00385.png ...\n","Processing 00386.png ...\n","Processing 00387.png ...\n","Processing 00388.png ...\n","Processing 00389.png ...\n","Processing 00390.png ...\n","Processing 00391.png ...\n","Processing 00392.png ...\n","Processing 00393.png ...\n","Processing 00394.png ...\n","Processing 00395.png ...\n","Processing 00396.png ...\n","Processing 00397.png ...\n","Processing 00398.png ...\n","Processing 00399.png ...\n","Processing 00400.png ...\n","Processing 00401.png ...\n","Processing 00402.png ...\n","Processing 00403.png ...\n","Processing 00404.png ...\n","Processing 00405.png ...\n","Processing 00406.png ...\n","Processing 00407.png ...\n","Processing 00408.png ...\n","Processing 00409.png ...\n","Processing 00410.png ...\n","Processing 00411.png ...\n","Processing 00412.png ...\n","Processing 00413.png ...\n","Processing 00414.png ...\n","Processing 00415.png ...\n","Processing 00416.png ...\n","Processing 00417.png ...\n","Processing 00418.png ...\n","Processing 00419.png ...\n","Processing 00420.png ...\n","Processing 00421.png ...\n","Processing 00422.png ...\n","Processing 00423.png ...\n","Processing 00424.png ...\n","Processing 00425.png ...\n","Processing 00426.png ...\n","Processing 00427.png ...\n","Processing 00428.png ...\n","Processing 00429.png ...\n","Processing 00430.png ...\n","Processing 00431.png ...\n","Processing 00432.png ...\n","Processing 00433.png ...\n","Processing 00434.png ...\n","Processing 00435.png ...\n","Processing 00436.png ...\n","Processing 00437.png ...\n","Processing 00438.png ...\n","Processing 00439.png ...\n","Processing 00440.png ...\n","Processing 00441.png ...\n","Processing 00442.png ...\n","Processing 00443.png ...\n","Processing 00444.png ...\n","Processing 00445.png ...\n","Processing 00446.png ...\n","Processing 00447.png ...\n","Processing 00448.png ...\n","Processing 00449.png ...\n","Processing 00450.png ...\n","Processing 00451.png ...\n","Processing 00452.png ...\n","Processing 00453.png ...\n","Processing 00454.png ...\n","Processing 00455.png ...\n","Processing 00456.png ...\n","Processing 00457.png ...\n","Processing 00458.png ...\n","Processing 00459.png ...\n","Processing 00460.png ...\n","Processing 00461.png ...\n","Processing 00462.png ...\n","Processing 00463.png ...\n","Processing 00464.png ...\n","Processing 00465.png ...\n","Processing 00466.png ...\n","Processing 00467.png ...\n","Processing 00468.png ...\n","Processing 00469.png ...\n","Processing 00470.png ...\n","Processing 00471.png ...\n","Processing 00472.png ...\n","Processing 00473.png ...\n","Processing 00474.png ...\n","Processing 00475.png ...\n","Processing 00476.png ...\n","Processing 00477.png ...\n","Processing 00478.png ...\n","Processing 00479.png ...\n","Processing 00480.png ...\n","Processing 00481.png ...\n","Processing 00482.png ...\n","Processing 00483.png ...\n","Processing 00484.png ...\n","Processing 00485.png ...\n","Processing 00486.png ...\n","Processing 00487.png ...\n","Processing 00488.png ...\n","Processing 00489.png ...\n","Processing 00490.png ...\n","Processing 00491.png ...\n","Processing 00492.png ...\n","Processing 00493.png ...\n","Processing 00494.png ...\n","Processing 00495.png ...\n","Processing 00496.png ...\n","Processing 00497.png ...\n","Processing 00498.png ...\n","Processing 00499.png ...\n","Processing 00500.png ...\n","Processing 00501.png ...\n","Processing 00502.png ...\n","Processing 00503.png ...\n","Processing 00504.png ...\n","Processing 00505.png ...\n","Processing 00506.png ...\n","Processing 00507.png ...\n","Processing 00508.png ...\n","Processing 00509.png ...\n","Processing 00510.png ...\n","Processing 00511.png ...\n","Processing 00512.png ...\n","Processing 00513.png ...\n","Processing 00514.png ...\n","Processing 00515.png ...\n","Processing 00516.png ...\n","Processing 00517.png ...\n","Processing 00518.png ...\n","Processing 00519.png ...\n","Processing 00520.png ...\n","Processing 00521.png ...\n","Processing 00522.png ...\n","Processing 00523.png ...\n","Processing 00524.png ...\n","Processing 00525.png ...\n","Processing 00526.png ...\n","Processing 00527.png ...\n","Processing 00528.png ...\n","Processing 00529.png ...\n","Processing 00530.png ...\n","Processing 00531.png ...\n","Processing 00532.png ...\n","Processing 00533.png ...\n","Processing 00534.png ...\n","Processing 00535.png ...\n","Processing 00536.png ...\n","Processing 00537.png ...\n","Processing 00538.png ...\n","Processing 00539.png ...\n","Processing 00540.png ...\n","Processing 00541.png ...\n","Processing 00542.png ...\n","Processing 00543.png ...\n","Processing 00544.png ...\n","Processing 00545.png ...\n","Processing 00546.png ...\n","Processing 00547.png ...\n","Processing 00548.png ...\n","Processing 00549.png ...\n","Processing 00550.png ...\n","Processing 00551.png ...\n","Processing 00552.png ...\n","Processing 00553.png ...\n","Processing 00554.png ...\n","Processing 00555.png ...\n","Processing 00556.png ...\n","Processing 00557.png ...\n","Processing 00558.png ...\n","Processing 00559.png ...\n","Processing 00560.png ...\n","Processing 00561.png ...\n","Processing 00562.png ...\n","Processing 00563.png ...\n","Processing 00564.png ...\n","Processing 00565.png ...\n","Processing 00566.png ...\n","Processing 00567.png ...\n","Processing 00568.png ...\n","Processing 00569.png ...\n","Processing 00570.png ...\n","Processing 00571.png ...\n","Processing 00572.png ...\n","Processing 00573.png ...\n","Processing 00574.png ...\n","Processing 00575.png ...\n","Processing 00576.png ...\n","Processing 00577.png ...\n","Processing 00578.png ...\n","Processing 00579.png ...\n","Processing 00580.png ...\n","Processing 00581.png ...\n","Processing 00582.png ...\n","Processing 00583.png ...\n","Processing 00584.png ...\n","Processing 00585.png ...\n","Processing 00586.png ...\n","Processing 00587.png ...\n","Processing 00588.png ...\n","Processing 00589.png ...\n","Processing 00590.png ...\n","Processing 00591.png ...\n","Processing 00592.png ...\n","Processing 00593.png ...\n","Processing 00594.png ...\n","Processing 00595.png ...\n","Processing 00596.png ...\n","Processing 00597.png ...\n","Processing 00598.png ...\n","Processing 00599.png ...\n","Processing 00600.png ...\n","Processing 00601.png ...\n","Processing 00602.png ...\n","Processing 00603.png ...\n","Processing 00604.png ...\n","Processing 00605.png ...\n","Processing 00606.png ...\n","Processing 00607.png ...\n","Processing 00608.png ...\n","Processing 00609.png ...\n","Processing 00610.png ...\n","Processing 00611.png ...\n","Processing 00612.png ...\n","Processing 00613.png ...\n","Processing 00614.png ...\n","Results are in the [/content/hd_images] folder.\n","/content/hd_images/restored_imgs\n","ffmpeg version 4.4.2-0ubuntu0.22.04.1 Copyright (c) 2000-2021 the FFmpeg developers\n"," built with gcc 11 (Ubuntu 11.2.0-19ubuntu1)\n"," configuration: --prefix=/usr --extra-version=0ubuntu0.22.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared\n"," libavutil 56. 70.100 / 56. 70.100\n"," libavcodec 58.134.100 / 58.134.100\n"," libavformat 58. 76.100 / 58. 76.100\n"," libavdevice 58. 13.100 / 58. 13.100\n"," libavfilter 7.110.100 / 7.110.100\n"," libswscale 5. 9.100 / 5. 9.100\n"," libswresample 3. 9.100 / 3. 9.100\n"," libpostproc 55. 9.100 / 55. 9.100\n","Input #0, image2, from '%05d.png':\n"," Duration: 00:00:24.56, start: 0.000000, bitrate: N/A\n"," Stream #0:0: Video: png, rgb24(pc), 1080x1080, 25 fps, 25 tbr, 25 tbn, 25 tbc\n","Stream mapping:\n"," Stream #0:0 -> #0:0 (png (native) -> h264 (libx264))\n","Press [q] to stop, [?] for help\n","\u001b[1;36m[libx264 @ 0x56728398a700] \u001b[0musing cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2 AVX512\n","\u001b[1;36m[libx264 @ 0x56728398a700] \u001b[0mprofile High, level 3.2, 4:2:0, 8-bit\n","\u001b[1;36m[libx264 @ 0x56728398a700] \u001b[0m264 - core 163 r3060 5db6aa6 - H.264/MPEG-4 AVC codec - Copyleft 2003-2021 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=3 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00\n","Output #0, mp4, to '/content/hd_images/results.mp4':\n"," Metadata:\n"," encoder : Lavf58.76.100\n"," Stream #0:0: Video: h264 (avc1 / 0x31637661), yuv420p(tv, progressive), 1080x1080, q=2-31, 25 fps, 12800 tbn\n"," Metadata:\n"," encoder : Lavc58.134.100 libx264\n"," Side data:\n"," cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A\n","frame= 614 fps=8.9 q=-1.0 Lsize= 4330kB time=00:00:24.44 bitrate=1451.3kbits/s speed=0.356x \n","video:4322kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.183141%\n","\u001b[1;36m[libx264 @ 0x56728398a700] \u001b[0mframe I:4 Avg QP:17.82 size: 34174\n","\u001b[1;36m[libx264 @ 0x56728398a700] \u001b[0mframe P:180 Avg QP:21.14 size: 13834\n","\u001b[1;36m[libx264 @ 0x56728398a700] \u001b[0mframe B:430 Avg QP:23.05 size: 4181\n","\u001b[1;36m[libx264 @ 0x56728398a700] \u001b[0mconsecutive B-frames: 4.6% 3.6% 7.8% 84.0%\n","\u001b[1;36m[libx264 @ 0x56728398a700] \u001b[0mmb I I16..4: 31.6% 61.7% 6.7%\n","\u001b[1;36m[libx264 @ 0x56728398a700] \u001b[0mmb P I16..4: 5.8% 18.3% 0.4% P16..4: 30.2% 8.3% 3.4% 0.0% 0.0% skip:33.6%\n","\u001b[1;36m[libx264 @ 0x56728398a700] \u001b[0mmb B I16..4: 0.8% 2.7% 0.0% B16..8: 31.2% 2.8% 0.3% direct: 0.9% skip:61.2% L0:50.6% L1:47.5% BI: 1.8%\n","\u001b[1;36m[libx264 @ 0x56728398a700] \u001b[0m8x8 transform intra:74.2% inter:90.1%\n","\u001b[1;36m[libx264 @ 0x56728398a700] \u001b[0mcoded y,uvDC,uvAC intra: 32.8% 44.2% 5.5% inter: 6.5% 8.0% 0.1%\n","\u001b[1;36m[libx264 @ 0x56728398a700] \u001b[0mi16 v,h,dc,p: 47% 29% 13% 12%\n","\u001b[1;36m[libx264 @ 0x56728398a700] \u001b[0mi8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 32% 18% 35% 2% 3% 4% 2% 2% 2%\n","\u001b[1;36m[libx264 @ 0x56728398a700] \u001b[0mi4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 38% 20% 12% 2% 8% 9% 5% 4% 2%\n","\u001b[1;36m[libx264 @ 0x56728398a700] \u001b[0mi8c dc,h,v,p: 51% 23% 22% 4%\n","\u001b[1;36m[libx264 @ 0x56728398a700] \u001b[0mWeighted P-Frames: Y:2.2% UV:0.0%\n","\u001b[1;36m[libx264 @ 0x56728398a700] \u001b[0mref P L0: 64.9% 11.1% 17.7% 6.1% 0.2%\n","\u001b[1;36m[libx264 @ 0x56728398a700] \u001b[0mref B L0: 86.7% 10.9% 2.4%\n","\u001b[1;36m[libx264 @ 0x56728398a700] \u001b[0mref B L1: 94.5% 5.5%\n","\u001b[1;36m[libx264 @ 0x56728398a700] \u001b[0mkb/s:1441.32\n","/content\n","ffmpeg version 4.4.2-0ubuntu0.22.04.1 Copyright (c) 2000-2021 the FFmpeg developers\n"," built with gcc 11 (Ubuntu 11.2.0-19ubuntu1)\n"," configuration: --prefix=/usr --extra-version=0ubuntu0.22.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared\n"," libavutil 56. 70.100 / 56. 70.100\n"," libavcodec 58.134.100 / 58.134.100\n"," libavformat 58. 76.100 / 58. 76.100\n"," libavdevice 58. 13.100 / 58. 13.100\n"," libavfilter 7.110.100 / 7.110.100\n"," libswscale 5. 9.100 / 5. 9.100\n"," libswresample 3. 9.100 / 3. 9.100\n"," libpostproc 55. 9.100 / 55. 9.100\n","Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/content/hd_images/results.mp4':\n"," Metadata:\n"," major_brand : isom\n"," minor_version : 512\n"," compatible_brands: isomiso2avc1mp41\n"," encoder : Lavf58.76.100\n"," Duration: 00:00:24.56, start: 0.000000, bitrate: 1444 kb/s\n"," Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1080x1080, 1441 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)\n"," Metadata:\n"," handler_name : VideoHandler\n"," vendor_id : [0][0][0][0]\n","Input #1, mp3, from '/content/output/final.mp3':\n"," Metadata:\n"," major_brand : isom\n"," minor_version : 512\n"," compatible_brands: isomiso2avc1mp41\n"," encoder : Lavf58.76.100\n"," Duration: 00:00:24.76, start: 0.025057, bitrate: 128 kb/s\n"," Stream #1:0: Audio: mp3, 44100 Hz, stereo, fltp, 128 kb/s\n"," Metadata:\n"," encoder : Lavc58.13\n","Output #0, mp4, to '/content/output/final.mp4':\n"," Metadata:\n"," major_brand : isom\n"," minor_version : 512\n"," compatible_brands: isomiso2avc1mp41\n"," encoder : Lavf58.76.100\n"," Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1080x1080, q=2-31, 1441 kb/s, 25 fps, 25 tbr, 12800 tbn, 12800 tbc (default)\n"," Metadata:\n"," handler_name : VideoHandler\n"," vendor_id : [0][0][0][0]\n"," Stream #0:1: Audio: mp3 (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s\n"," Metadata:\n"," encoder : Lavc58.13\n","Stream mapping:\n"," Stream #0:0 -> #0:0 (copy)\n"," Stream #1:0 -> #0:1 (copy)\n","Press [q] to stop, [?] for help\n","frame= 614 fps=0.0 q=-1.0 Lsize= 4732kB time=00:00:24.71 bitrate=1568.7kbits/s speed= 465x \n","video:4322kB audio:387kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.500086%\n","恭喜您高清数字人视频合并成功,\n"]}]}],"metadata":{"accelerator":"GPU","colab":{"provenance":[{"file_id":"1bY0Kw2oWWrpKS6ne-TBCbW-iFyXIrRR7","timestamp":1680665453952}],"authorship_tag":"ABX9TyOlHLCs2bXjwKedIbDCa8Aq"},"gpuClass":"standard","kernelspec":{"display_name":"Python 3","name":"python3"},"language_info":{"name":"python"}},"nbformat":4,"nbformat_minor":0} --------------------------------------------------------------------------------