From acf83aa213ab700db499dac76987e4081ddb2cc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cdavid=E2=80=9C?= Date: Mon, 16 Mar 2020 22:47:29 +0800 Subject: [PATCH] add Course 125 --- code/Course_123.ipynb | 910 ------------------------------------------ 1 file changed, 910 deletions(-) delete mode 100644 code/Course_123.ipynb diff --git a/code/Course_123.ipynb b/code/Course_123.ipynb deleted file mode 100644 index facf21a..0000000 --- a/code/Course_123.ipynb +++ /dev/null @@ -1,910 +0,0 @@ -{ - "nbformat": 4, - "nbformat_minor": 0, - "metadata": { - "colab": { - "name": "DeepFaceLab_Colab.ipynb", - "provenance": [], - "collapsed_sections": [], - "toc_visible": true - }, - "kernelspec": { - "name": "python3", - "display_name": "Python 3" - }, - "accelerator": "GPU" - }, - "cells": [ - { - "cell_type": "markdown", - "metadata": { - "id": "view-in-github", - "colab_type": "text" - }, - "source": [ - "\"Open" - ] - }, - { - "cell_type": "code", - "metadata": { - "id": "AmGMbWZef1XI", - "colab_type": "code", - "colab": { - "base_uri": "https://localhost:8080/", - "height": 318 - }, - "outputId": "bfc686a3-4337-4f19-9e5e-dbec93bdebc8" - }, - "source": [ - "#@title 查看GPU \n", - "! /opt/bin/nvidia-smi" - ], - "execution_count": 12, - "outputs": [ - { - "output_type": "stream", - "text": [ - "Tue Mar 3 16:41:50 2020 \n", - "+-----------------------------------------------------------------------------+\n", - "| NVIDIA-SMI 418.67 Driver Version: 418.67 CUDA Version: 10.1 |\n", - "|-------------------------------+----------------------+----------------------+\n", - "| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |\n", - "| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |\n", - "|===============================+======================+======================|\n", - "| 0 Tesla P100-PCIE... Off | 00000000:00:04.0 Off | 0 |\n", - "| N/A 33C P0 26W / 250W | 0MiB / 16280MiB | 0% Default |\n", - "+-------------------------------+----------------------+----------------------+\n", - " \n", - "+-----------------------------------------------------------------------------+\n", - "| Processes: GPU Memory |\n", - "| GPU PID Type Process name Usage |\n", - "|=============================================================================|\n", - "| No running processes found |\n", - "+-----------------------------------------------------------------------------+\n" - ], - "name": "stdout" - } - ] - }, - { - "cell_type": "markdown", - "metadata": { - "id": "ldpC3PjRrYYh", - "colab_type": "text" - }, - "source": [ - "\n", - "# 第一步 準備好workspace" - ] - }, - { - "cell_type": "code", - "metadata": { - "id": "D7toZxhT4J9W", - "colab_type": "code", - "colab": { - "base_uri": "https://localhost:8080/", - "height": 178 - }, - "outputId": "f6f6f700-80c1-4801-cf98-e1a6ad91704a" - }, - "source": [ - "#@title 開始掛載 \n", - "#掛載 Google Drive\n", - "#點擊鏈接授權,複製授權碼,填入框框。\n", - "\n", - "from google.colab import drive\n", - "drive.mount('/content/drive', force_remount=True)\n", - "\n", - "#創建DeepFaceLab目錄,並且進入目錄\n", - "%cd /content/drive/My Drive/\n", - "!mkdir DeepFaceLab\n", - "%cd /content/drive/My Drive/DeepFaceLab/\n" - ], - "execution_count": 2, - "outputs": [ - { - "output_type": "stream", - "text": [ - "Go to this URL in a browser: https://accounts.google.com/o/oauth2/auth?client_id=947318989803-6bn6qk8qdgf4n4g3pfee6491hc0brc4i.apps.googleusercontent.com&redirect_uri=urn%3aietf%3awg%3aoauth%3a2.0%3aoob&response_type=code&scope=email%20https%3a%2f%2fwww.googleapis.com%2fauth%2fdocs.test%20https%3a%2f%2fwww.googleapis.com%2fauth%2fdrive%20https%3a%2f%2fwww.googleapis.com%2fauth%2fdrive.photos.readonly%20https%3a%2f%2fwww.googleapis.com%2fauth%2fpeopleapi.readonly\n", - "\n", - "Enter your authorization code:\n", - "··········\n", - "Mounted at /content/drive\n", - "/content/drive/My Drive\n", - "mkdir: cannot create directory ‘DeepFaceLab’: File exists\n", - "/content/drive/My Drive/DeepFaceLab\n" - ], - "name": "stdout" - } - ] - }, - { - "cell_type": "code", - "metadata": { - "id": "cNsq0I98KvHl", - "colab_type": "code", - "cellView": "both", - "colab": { - "base_uri": "https://localhost:8080/", - "height": 141 - }, - "outputId": "e76f8039-0959-4c80-b52e-704ddf0049dd" - }, - "source": [ - "#@title 載入範例項目workspace\n", - "%cd /content/drive/My Drive/DeepFaceLab/\n", - "!rm -rf workspace\n", - "!git clone https://github.com/dream80/DFLWorkspace.git workspace" - ], - "execution_count": 3, - "outputs": [ - { - "output_type": "stream", - "text": [ - "/content/drive/My Drive/DeepFaceLab\n", - "Cloning into 'workspace'...\n", - "remote: Enumerating objects: 3, done.\u001b[K\n", - "remote: Counting objects: 100% (3/3), done.\u001b[K\n", - "remote: Compressing objects: 100% (3/3), done.\u001b[K\n", - "remote: Total 38 (delta 0), reused 0 (delta 0), pack-reused 35\u001b[K\n", - "Unpacking objects: 100% (38/38), done.\n" - ], - "name": "stdout" - } - ] - }, - { - "cell_type": "markdown", - "metadata": { - "id": "yA4nziLPtAf9", - "colab_type": "text" - }, - "source": [ - "#第二步 安裝DeepFaceLab\n", - "下載DeepFaceLab 原始碼,開始安裝相關套件" - ] - }, - { - "cell_type": "code", - "metadata": { - "id": "4CbWbLzHzqTQ", - "colab_type": "code", - "cellView": "both", - "colab": { - "base_uri": "https://localhost:8080/", - "height": 1000 - }, - "outputId": "6f85c138-be8d-4ddc-fa0c-6388e027ad91" - }, - "source": [ - "#@title 開始安裝\n", - "\n", - "%cd /content/drive/My Drive/DeepFaceLab\n", - "!rm -fr DeepFaceLab_Colab\n", - "\n", - "print(\"最新版讀取中....\")\n", - "!git clone https://github.com/dream80/DeepFaceLab_Colab.git\n", - "%cd /content/drive/My Drive/DeepFaceLab/DeepFaceLab_Colab\n", - "!pip install -r requirements-colab.txt\n", - "\n", - "\n", - "!pip install --upgrade scikit-image\n", - "!sudo apt-get install cuda-10-0\n" - ], - "execution_count": 1, - "outputs": [ - { - "output_type": "stream", - "text": [ - "/content/drive/My Drive/DeepFaceLab\n", - "最新版加载中....\n", - "Cloning into 'DeepFaceLab_Colab'...\n", - "remote: Enumerating objects: 3418, done.\u001b[K\n", - "remote: Total 3418 (delta 0), reused 0 (delta 0), pack-reused 3418\u001b[K\n", - "Receiving objects: 100% (3418/3418), 450.26 MiB | 24.86 MiB/s, done.\n", - "Resolving deltas: 100% (2202/2202), done.\n", - "Checking out files: 100% (254/254), done.\n", - "/content/drive/My Drive/DeepFaceLab/DeepFaceLab_Colab\n", - "Collecting git+https://www.github.com/keras-team/keras-contrib.git (from -r requirements-colab.txt (line 10))\n", - " Cloning https://www.github.com/keras-team/keras-contrib.git to /tmp/pip-req-build-9b2kde23\n", - " Running command git clone -q https://www.github.com/keras-team/keras-contrib.git /tmp/pip-req-build-9b2kde23\n", - "Requirement already satisfied (use --upgrade to upgrade): keras-contrib==2.0.8 from git+https://www.github.com/keras-team/keras-contrib.git in /usr/local/lib/python3.6/dist-packages (from -r requirements-colab.txt (line 10))\n", - "Requirement already satisfied: numpy==1.17.0 in /usr/local/lib/python3.6/dist-packages (from -r requirements-colab.txt (line 1)) (1.17.0)\n", - "Requirement already satisfied: h5py==2.9.0 in /usr/local/lib/python3.6/dist-packages (from -r requirements-colab.txt (line 2)) (2.9.0)\n", - "Requirement already satisfied: Keras==2.2.4 in /usr/local/lib/python3.6/dist-packages (from -r requirements-colab.txt (line 3)) (2.2.4)\n", - "Requirement already satisfied: opencv-python==4.1.0.25 in /usr/local/lib/python3.6/dist-packages (from -r requirements-colab.txt (line 4)) (4.1.0.25)\n", - "Requirement already satisfied: tensorflow-gpu==1.13.1 in /usr/local/lib/python3.6/dist-packages (from -r requirements-colab.txt (line 5)) (1.13.1)\n", - "Requirement already satisfied: plaidml-keras==0.5.0 in /usr/local/lib/python3.6/dist-packages (from -r requirements-colab.txt (line 6)) (0.5.0)\n", - "Requirement already satisfied: scikit-image in /usr/local/lib/python3.6/dist-packages (from -r requirements-colab.txt (line 7)) (0.16.2)\n", - "Requirement already satisfied: tqdm in /usr/local/lib/python3.6/dist-packages (from -r requirements-colab.txt (line 8)) (4.28.1)\n", - "Requirement already satisfied: ffmpeg-python==0.1.17 in /usr/local/lib/python3.6/dist-packages (from -r requirements-colab.txt (line 9)) (0.1.17)\n", - "Requirement already satisfied: six in /usr/local/lib/python3.6/dist-packages (from h5py==2.9.0->-r requirements-colab.txt (line 2)) (1.12.0)\n", - "Requirement already satisfied: scipy>=0.14 in /usr/local/lib/python3.6/dist-packages (from Keras==2.2.4->-r requirements-colab.txt (line 3)) (1.4.1)\n", - "Requirement already satisfied: keras-preprocessing>=1.0.5 in /usr/local/lib/python3.6/dist-packages (from Keras==2.2.4->-r requirements-colab.txt (line 3)) (1.1.0)\n", - "Requirement already satisfied: keras-applications>=1.0.6 in /usr/local/lib/python3.6/dist-packages (from Keras==2.2.4->-r requirements-colab.txt (line 3)) (1.0.8)\n", - "Requirement already satisfied: pyyaml in /usr/local/lib/python3.6/dist-packages (from Keras==2.2.4->-r requirements-colab.txt (line 3)) (3.13)\n", - "Requirement already satisfied: gast>=0.2.0 in /usr/local/lib/python3.6/dist-packages (from tensorflow-gpu==1.13.1->-r requirements-colab.txt (line 5)) (0.2.2)\n", - "Requirement already satisfied: protobuf>=3.6.1 in /usr/local/lib/python3.6/dist-packages (from tensorflow-gpu==1.13.1->-r requirements-colab.txt (line 5)) (3.10.0)\n", - "Requirement already satisfied: astor>=0.6.0 in /usr/local/lib/python3.6/dist-packages (from tensorflow-gpu==1.13.1->-r requirements-colab.txt (line 5)) (0.8.1)\n", - "Requirement already satisfied: grpcio>=1.8.6 in /usr/local/lib/python3.6/dist-packages (from tensorflow-gpu==1.13.1->-r requirements-colab.txt (line 5)) (1.27.1)\n", - "Requirement already satisfied: tensorflow-estimator<1.14.0rc0,>=1.13.0 in /usr/local/lib/python3.6/dist-packages (from tensorflow-gpu==1.13.1->-r requirements-colab.txt (line 5)) (1.13.0)\n", - "Requirement already satisfied: absl-py>=0.1.6 in /usr/local/lib/python3.6/dist-packages (from tensorflow-gpu==1.13.1->-r requirements-colab.txt (line 5)) (0.9.0)\n", - "Requirement already satisfied: wheel>=0.26 in /usr/local/lib/python3.6/dist-packages (from tensorflow-gpu==1.13.1->-r requirements-colab.txt (line 5)) (0.34.2)\n", - "Requirement already satisfied: termcolor>=1.1.0 in /usr/local/lib/python3.6/dist-packages (from tensorflow-gpu==1.13.1->-r requirements-colab.txt (line 5)) (1.1.0)\n", - "Requirement already satisfied: tensorboard<1.14.0,>=1.13.0 in /usr/local/lib/python3.6/dist-packages (from tensorflow-gpu==1.13.1->-r requirements-colab.txt (line 5)) (1.13.1)\n", - "Requirement already satisfied: plaidml in /usr/local/lib/python3.6/dist-packages (from plaidml-keras==0.5.0->-r requirements-colab.txt (line 6)) (0.7.0)\n", - "Requirement already satisfied: PyWavelets>=0.4.0 in /usr/local/lib/python3.6/dist-packages (from scikit-image->-r requirements-colab.txt (line 7)) (1.1.1)\n", - "Requirement already satisfied: imageio>=2.3.0 in /usr/local/lib/python3.6/dist-packages (from scikit-image->-r requirements-colab.txt (line 7)) (2.4.1)\n", - "Requirement already satisfied: networkx>=2.0 in /usr/local/lib/python3.6/dist-packages (from scikit-image->-r requirements-colab.txt (line 7)) (2.4)\n", - "Requirement already satisfied: matplotlib!=3.0.0,>=2.0.0 in /usr/local/lib/python3.6/dist-packages (from scikit-image->-r requirements-colab.txt (line 7)) (3.1.3)\n", - "Requirement already satisfied: pillow>=4.3.0 in /usr/local/lib/python3.6/dist-packages (from scikit-image->-r requirements-colab.txt (line 7)) (6.2.2)\n", - "Requirement already satisfied: future in /usr/local/lib/python3.6/dist-packages (from ffmpeg-python==0.1.17->-r requirements-colab.txt (line 9)) (0.16.0)\n", - "Requirement already satisfied: setuptools in /usr/local/lib/python3.6/dist-packages (from protobuf>=3.6.1->tensorflow-gpu==1.13.1->-r requirements-colab.txt (line 5)) (45.1.0)\n", - "Requirement already satisfied: mock>=2.0.0 in /usr/local/lib/python3.6/dist-packages (from tensorflow-estimator<1.14.0rc0,>=1.13.0->tensorflow-gpu==1.13.1->-r requirements-colab.txt (line 5)) (4.0.1)\n", - "Requirement already satisfied: werkzeug>=0.11.15 in /usr/local/lib/python3.6/dist-packages (from tensorboard<1.14.0,>=1.13.0->tensorflow-gpu==1.13.1->-r requirements-colab.txt (line 5)) (1.0.0)\n", - "Requirement already satisfied: markdown>=2.6.8 in /usr/local/lib/python3.6/dist-packages (from tensorboard<1.14.0,>=1.13.0->tensorflow-gpu==1.13.1->-r requirements-colab.txt (line 5)) (3.2.1)\n", - "Requirement already satisfied: enum34>=1.1.6 in /usr/local/lib/python3.6/dist-packages (from plaidml->plaidml-keras==0.5.0->-r requirements-colab.txt (line 6)) (1.1.9)\n", - "Requirement already satisfied: cffi in /usr/local/lib/python3.6/dist-packages (from plaidml->plaidml-keras==0.5.0->-r requirements-colab.txt (line 6)) (1.14.0)\n", - "Requirement already satisfied: decorator>=4.3.0 in /usr/local/lib/python3.6/dist-packages (from networkx>=2.0->scikit-image->-r requirements-colab.txt (line 7)) (4.4.1)\n", - "Requirement already satisfied: python-dateutil>=2.1 in /usr/local/lib/python3.6/dist-packages (from matplotlib!=3.0.0,>=2.0.0->scikit-image->-r requirements-colab.txt (line 7)) (2.6.1)\n", - "Requirement already satisfied: kiwisolver>=1.0.1 in /usr/local/lib/python3.6/dist-packages (from matplotlib!=3.0.0,>=2.0.0->scikit-image->-r requirements-colab.txt (line 7)) (1.1.0)\n", - "Requirement already satisfied: cycler>=0.10 in /usr/local/lib/python3.6/dist-packages (from matplotlib!=3.0.0,>=2.0.0->scikit-image->-r requirements-colab.txt (line 7)) (0.10.0)\n", - "Requirement already satisfied: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1 in /usr/local/lib/python3.6/dist-packages (from matplotlib!=3.0.0,>=2.0.0->scikit-image->-r requirements-colab.txt (line 7)) (2.4.6)\n", - "Requirement already satisfied: pycparser in /usr/local/lib/python3.6/dist-packages (from cffi->plaidml->plaidml-keras==0.5.0->-r requirements-colab.txt (line 6)) (2.19)\n", - "Building wheels for collected packages: keras-contrib\n", - " Building wheel for keras-contrib (setup.py) ... \u001b[?25l\u001b[?25hdone\n", - " Created wheel for keras-contrib: filename=keras_contrib-2.0.8-cp36-none-any.whl size=101064 sha256=3e0b848f402f11f252c193486fdad6c72611883e9563618ea429b809f1e81647\n", - " Stored in directory: /tmp/pip-ephem-wheel-cache-mau3856l/wheels/11/27/c8/4ed56de7b55f4f61244e2dc6ef3cdbaff2692527a2ce6502ba\n", - "Successfully built keras-contrib\n", - "Requirement already up-to-date: scikit-image in /usr/local/lib/python3.6/dist-packages (0.16.2)\n", - "Requirement already satisfied, skipping upgrade: imageio>=2.3.0 in /usr/local/lib/python3.6/dist-packages (from scikit-image) (2.4.1)\n", - "Requirement already satisfied, skipping upgrade: PyWavelets>=0.4.0 in /usr/local/lib/python3.6/dist-packages (from scikit-image) (1.1.1)\n", - "Requirement already satisfied, skipping upgrade: networkx>=2.0 in /usr/local/lib/python3.6/dist-packages (from scikit-image) (2.4)\n", - "Requirement already satisfied, skipping upgrade: pillow>=4.3.0 in /usr/local/lib/python3.6/dist-packages (from scikit-image) (6.2.2)\n", - "Requirement already satisfied, skipping upgrade: matplotlib!=3.0.0,>=2.0.0 in /usr/local/lib/python3.6/dist-packages (from scikit-image) (3.1.3)\n", - "Requirement already satisfied, skipping upgrade: scipy>=0.19.0 in /usr/local/lib/python3.6/dist-packages (from scikit-image) (1.4.1)\n", - "Requirement already satisfied, skipping upgrade: numpy in /usr/local/lib/python3.6/dist-packages (from imageio>=2.3.0->scikit-image) (1.17.0)\n", - "Requirement already satisfied, skipping upgrade: decorator>=4.3.0 in /usr/local/lib/python3.6/dist-packages (from networkx>=2.0->scikit-image) (4.4.1)\n", - "Requirement already satisfied, skipping upgrade: kiwisolver>=1.0.1 in /usr/local/lib/python3.6/dist-packages (from matplotlib!=3.0.0,>=2.0.0->scikit-image) (1.1.0)\n", - "Requirement already satisfied, skipping upgrade: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1 in /usr/local/lib/python3.6/dist-packages (from matplotlib!=3.0.0,>=2.0.0->scikit-image) (2.4.6)\n", - "Requirement already satisfied, skipping upgrade: cycler>=0.10 in /usr/local/lib/python3.6/dist-packages (from matplotlib!=3.0.0,>=2.0.0->scikit-image) (0.10.0)\n", - "Requirement already satisfied, skipping upgrade: python-dateutil>=2.1 in /usr/local/lib/python3.6/dist-packages (from matplotlib!=3.0.0,>=2.0.0->scikit-image) (2.6.1)\n", - "Requirement already satisfied, skipping upgrade: setuptools in /usr/local/lib/python3.6/dist-packages (from kiwisolver>=1.0.1->matplotlib!=3.0.0,>=2.0.0->scikit-image) (45.1.0)\n", - "Requirement already satisfied, skipping upgrade: six in /usr/local/lib/python3.6/dist-packages (from cycler>=0.10->matplotlib!=3.0.0,>=2.0.0->scikit-image) (1.12.0)\n", - "Reading package lists... Done\n", - "Building dependency tree \n", - "Reading state information... Done\n", - "cuda-10-0 is already the newest version (10.0.130-1).\n", - "The following package was automatically installed and is no longer required:\n", - " libnvidia-common-430\n", - "Use 'sudo apt autoremove' to remove it.\n", - "0 upgraded, 0 newly installed, 0 to remove and 25 not upgraded.\n" - ], - "name": "stdout" - } - ] - }, - { - "cell_type": "markdown", - "metadata": { - "id": "9G9s5gJrty-x", - "colab_type": "text" - }, - "source": [ - "# 第三步. 擷取臉部" - ] - }, - { - "cell_type": "markdown", - "metadata": { - "id": "llMCZb-uMuD1", - "colab_type": "text" - }, - "source": [ - "\n", - " 一共有三步驟:分解影片,擷取人臉,進行包裝\n", - "\n", - "\n", - "\n" - ] - }, - { - "cell_type": "code", - "metadata": { - "id": "YnhZyEERAW_D", - "colab_type": "code", - "cellView": "both", - "colab": { - "base_uri": "https://localhost:8080/", - "height": 1000 - }, - "outputId": "e49030c9-b712-4eae-b708-f6bb3e5a1428" - }, - "source": [ - "#@title 開始擷取 src\n", - "%cd /content/drive/My Drive/DeepFaceLab/DeepFaceLab_Colab!python main.py videoed extract-video --input-file ../workspace/data_src.mp4 --output-dir ../workspace/data_src/\n", - "!python main.py extract --input-dir ../workspace/data_src --output-dir ../workspace/data_src/aligned --detector s3fd --debug-dir ../workspace/data_src/aligned_debug\n", - "!python main.py util --input-dir ../workspace/data_src/aligned --pack-faceset\n" - ], - "execution_count": 4, - "outputs": [ - { - "output_type": "stream", - "text": [ - "/content/drive/My Drive/DeepFaceLab/DeepFaceLab_Colab\n", - "Enter FPS ( ?:help skip:fullfps ) : 30\n", - "Output image format? ( jpg png ?:help skip:png ) : jpg\n", - "ffmpeg version 3.4.6-0ubuntu0.18.04.1 Copyright (c) 2000-2019 the FFmpeg developers\n", - " built with gcc 7 (Ubuntu 7.3.0-16ubuntu3)\n", - " configuration: --prefix=/usr --extra-version=0ubuntu0.18.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared\n", - " libavutil 55. 78.100 / 55. 78.100\n", - " libavcodec 57.107.100 / 57.107.100\n", - " libavformat 57. 83.100 / 57. 83.100\n", - " libavdevice 57. 10.100 / 57. 10.100\n", - " libavfilter 6.107.100 / 6.107.100\n", - " libavresample 3. 7. 0 / 3. 7. 0\n", - " libswscale 4. 8.100 / 4. 8.100\n", - " libswresample 2. 9.100 / 2. 9.100\n", - " libpostproc 54. 7.100 / 54. 7.100\n", - "Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/content/drive/My Drive/DeepFaceLab/workspace/data_dst.mp4':\n", - " Metadata:\n", - " major_brand : qt \n", - " minor_version : 0\n", - " compatible_brands: qt \n", - " creation_time : 2020-03-03T14:56:50.000000Z\n", - " com.apple.quicktime.make: Apple\n", - " com.apple.quicktime.model: iPhone X\n", - " com.apple.quicktime.software: 13.3.1\n", - " com.apple.quicktime.creationdate: 2020-03-03T22:54:22+0800\n", - " Duration: 00:00:26.80, start: 0.000000, bitrate: 7541 kb/s\n", - " Stream #0:0(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 103 kb/s (default)\n", - " Metadata:\n", - " creation_time : 2020-03-03T14:56:50.000000Z\n", - " handler_name : Core Media Data Handler\n", - " Stream #0:1(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 720x1280 [SAR 1:1 DAR 9:16], 7406 kb/s, 29.97 fps, 29.97 tbr, 600 tbn, 1200 tbc (default)\n", - " Metadata:\n", - " creation_time : 2020-03-03T14:56:50.000000Z\n", - " handler_name : Core Media Data Handler\n", - " encoder : H.264\n", - " Stream #0:2(und): Data: none (mebx / 0x7862656D), 23 kb/s (default)\n", - " Metadata:\n", - " creation_time : 2020-03-03T14:56:50.000000Z\n", - " handler_name : Core Media Data Handler\n", - " Stream #0:3(und): Data: none (mebx / 0x7862656D), 0 kb/s (default)\n", - " Metadata:\n", - " creation_time : 2020-03-03T14:56:50.000000Z\n", - " handler_name : Core Media Data Handler\n", - "Stream mapping:\n", - " Stream #0:1 -> #0:0 (h264 (native) -> mjpeg (native))\n", - "Press [q] to stop, [?] for help\n", - "\u001b[0;33mIncompatible pixel format 'rgb24' for codec 'mjpeg', auto-selecting format 'yuvj444p'\n", - "\u001b[0m\u001b[1;34m[swscaler @ 0x56419fdc0000] \u001b[0m\u001b[0;33mdeprecated pixel format used, make sure you did set range correctly\n", - "\u001b[0mOutput #0, image2, to '/content/drive/My Drive/DeepFaceLab/workspace/data_dst/%5d.jpg':\n", - " Metadata:\n", - " major_brand : qt \n", - " minor_version : 0\n", - " compatible_brands: qt \n", - " com.apple.quicktime.creationdate: 2020-03-03T22:54:22+0800\n", - " com.apple.quicktime.make: Apple\n", - " com.apple.quicktime.model: iPhone X\n", - " com.apple.quicktime.software: 13.3.1\n", - " encoder : Lavf57.83.100\n", - " Stream #0:0(und): Video: mjpeg, yuvj444p(pc), 720x1280 [SAR 1:1 DAR 9:16], q=2-31, 200 kb/s, 30 fps, 30 tbn, 30 tbc (default)\n", - " Metadata:\n", - " creation_time : 2020-03-03T14:56:50.000000Z\n", - " handler_name : Core Media Data Handler\n", - " encoder : Lavc57.107.100 mjpeg\n", - " Side data:\n", - " cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: -1\n", - "frame= 804 fps= 39 q=2.0 Lsize=N/A time=00:00:26.80 bitrate=N/A dup=1 drop=0 speed=1.31x \n", - "video:105976kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown\n", - "Done.\n", - "Performing 1st pass...\n", - "Running on Tesla P100-PCIE-16GB.\n", - "Using TensorFlow backend.\n", - "WARNING:tensorflow:From /usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/op_def_library.py:263: colocate_with (from tensorflow.python.framework.ops) is deprecated and will be removed in a future version.\n", - "Instructions for updating:\n", - "Colocations handled automatically by placer.\n", - "100% 804/804 [00:36<00:00, 22.00it/s]/usr/lib/python3.6/multiprocessing/semaphore_tracker.py:143: UserWarning: semaphore_tracker: There appear to be 1 leaked semaphores to clean up at shutdown\n", - " len(cache))\n", - "100% 804/804 [00:36<00:00, 21.93it/s]\n", - "Performing 2nd pass...\n", - "Running on Tesla P100-PCIE-16GB.\n", - "Using TensorFlow backend.\n", - "WARNING:tensorflow:From /usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/op_def_library.py:263: colocate_with (from tensorflow.python.framework.ops) is deprecated and will be removed in a future version.\n", - "Instructions for updating:\n", - "Colocations handled automatically by placer.\n", - "100% 804/804 [04:02<00:00, 3.32it/s]/usr/lib/python3.6/multiprocessing/semaphore_tracker.py:143: UserWarning: semaphore_tracker: There appear to be 1 leaked semaphores to clean up at shutdown\n", - " len(cache))\n", - "100% 804/804 [04:02<00:00, 3.32it/s]\n", - "Performing 3rd pass...\n", - "Running on CPU0.\n", - "Running on CPU1.\n", - "100% 804/804 [01:03<00:00, 12.73it/s]/usr/lib/python3.6/multiprocessing/semaphore_tracker.py:143: UserWarning: semaphore_tracker: There appear to be 1 leaked semaphores to clean up at shutdown\n", - " len(cache))\n", - "/usr/lib/python3.6/multiprocessing/semaphore_tracker.py:143: UserWarning: semaphore_tracker: There appear to be 1 leaked semaphores to clean up at shutdown\n", - " len(cache))\n", - "100% 804/804 [01:03<00:00, 12.73it/s]\n", - "-------------------------\n", - "Images found: 804\n", - "Faces detected: 803\n", - "-------------------------\n", - "Done.\n", - "Performing faceset packing...\n", - "\n", - "Loading: 100% 803/803 [00:04<00:00, 167.16it/s]/usr/lib/python3.6/multiprocessing/semaphore_tracker.py:143: UserWarning: semaphore_tracker: There appear to be 1 leaked semaphores to clean up at shutdown\n", - " len(cache))\n", - "/usr/lib/python3.6/multiprocessing/semaphore_tracker.py:143: UserWarning: semaphore_tracker: There appear to be 1 leaked semaphores to clean up at shutdown\n", - " len(cache))\n", - "Loading: 100% 803/803 [00:04<00:00, 166.22it/s]\n", - "Processing: 100% 803/803 [00:00<00:00, 13474.15it/s]\n", - "Packing: 100% 803/803 [00:00<00:00, 805.22it/s]\n", - "Deleting files: 100% 803/803 [00:02<00:00, 287.72it/s]\n", - "Done.\n" - ], - "name": "stdout" - } - ] - }, - { - "cell_type": "code", - "metadata": { - "id": "Pq9T-gM0NEg4", - "colab_type": "code", - "colab": {} - }, - "source": [ - "#@title 開始擷取 dst\n", - "%cd /content/drive/My Drive/DeepFaceLab/DeepFaceLab_Colab\n", - "\n", - "!python main.py videoed extract-video --input-file ../workspace/data_dst.mp4 --output-dir ../workspace/data_dst/\n", - "!python main.py extract --input-dir ../workspace/data_dst --output-dir ../workspace/data_dst/aligned --detector s3fd --debug-dir ../workspace/data_dst/aligned_debug\n", - "!python main.py util --input-dir ../workspace/data_dst/aligned --pack-faceset\n" - ], - "execution_count": 0, - "outputs": [] - }, - { - "cell_type": "code", - "metadata": { - "id": "5MrM8JfIFiy7", - "colab_type": "code", - "cellView": "both", - "colab": { - "base_uri": "https://localhost:8080/", - "height": 178 - }, - "outputId": "96d862bc-7001-474d-d1d4-bd24fe9d57cb" - }, - "source": [ - "#@title 開始排序\n", - "target = \"dst\" #@param [\"src\",\"dst\"]\n", - "order = \"hist\" #@param [\"blur\", \"face\", \"face-dissim\", \"face-yaw\", \"face-pitch\", \"hist\", \"hist-dissim\", \"brightness\", \"hue\", \"black\", \"origname\", \"oneface\", \"final\", \"final-no-blur\"]\n", - "\n", - "if target==\"src\":\n", - " #Src排序\n", - " cmd = \"main.py sort --input-dir ../workspace/data_src/aligned --by \"+order\n", - " \n", - "else:\n", - " cmd = \"main.py sort --input-dir ../workspace/data_dst/aligned --by \"+order\n", - "\n", - "!python $cmd" - ], - "execution_count": 7, - "outputs": [ - { - "output_type": "stream", - "text": [ - "Running sort tool.\r\n", - "\n", - "Sorting by histogram similarity...\n", - "Running on CPU0.\n", - "Sorting: 1it [00:00, 39199.10it/s]/usr/lib/python3.6/multiprocessing/semaphore_tracker.py:143: UserWarning: semaphore_tracker: There appear to be 1 leaked semaphores to clean up at shutdown\n", - " len(cache))\n", - "Sorting: 1it [00:00, 36.95it/s] \n", - "Done.\n" - ], - "name": "stdout" - } - ] - }, - { - "cell_type": "markdown", - "metadata": { - "id": "QxO1kNO_uRTF", - "colab_type": "text" - }, - "source": [ - "# 第四步. 訓練模型\n", - "\n", - "\n", - "* 可以使用 SAEHD,Quick96, H128,SAE,DF, LIAEF128等模型,根據自己的情況選擇模型。\n", - "* 不想訓練可以點擊停止,下次繼續訓練" - ] - }, - { - "cell_type": "code", - "metadata": { - "id": "MKQbOrIiyFJL", - "colab_type": "code", - "cellView": "both", - "colab": { - "base_uri": "https://localhost:8080/", - "height": 1000 - }, - "outputId": "3f5c8c74-6aa9-4313-a0b5-0a4946f93499" - }, - "source": [ - "#@title 開始訓練\n", - "Model = \"SAEHD\" #@param [\"SAEHD\", \"SAE\", \"H128\", \"LIAEF128\", \"DF\", \"AVATAR\",\"Quick96\"]\n", - "\n", - "%cd \"/content/drive/My Drive/DeepFaceLab/DeepFaceLab_Colab/\"\n", - "cmd = \"main.py train --training-data-src-dir ../workspace/data_src/aligned --training-data-dst-dir ../workspace/data_dst/aligned --model-dir ../workspace/model --model \"+Model+\" --no-preview\"\n", - "!python $cmd" - ], - "execution_count": 8, - "outputs": [ - { - "output_type": "stream", - "text": [ - "/content/drive/My Drive/DeepFaceLab/DeepFaceLab_Colab\n", - "Running trainer.\n", - "\n", - "Loading model...\n", - "\n", - "Model first run.\n", - "Enable autobackup? (y/n ?:help skip:n) : \n", - "n\n", - "Write preview history? (y/n ?:help skip:n) : n\n", - "Target iteration (skip:unlimited/default) : default\n", - "0\n", - "Batch_size (?:help skip:0) : 0\n", - "Flip faces randomly? (y/n ?:help skip:y) : y\n", - "Resolution ( 64-256 ?:help skip:128) : 128\n", - "Half, mid full, or full face? (h/mf/f, ?:help skip:f) : f\n", - "Learn mask? (y/n, ?:help skip:y ) : y\n", - "Optimizer mode? ( 1,2,3 ?:help skip:1) : 1\n", - "AE architecture (df, liae ?:help skip:df) : df\n", - "AutoEncoder dims (32-1024 ?:help skip:256) : 256\n", - "Encoder/Decoder dims per channel (10-85 ?:help skip:21) : 21\n", - "Use learning rate dropout? (y/n, ?:help skip:n ) : n\n", - "Enable random warp of samples? ( y/n, ?:help skip:y) : y\n", - "Enable 'true face' training? (y/n, ?:help skip:n) : n\n", - "Face style power ( 0.0 .. 100.0 ?:help skip:0.00) : 0.00\n", - "Background style power ( 0.0 .. 100.0 ?:help skip:0.00) : 0.00\n", - "Color transfer mode apply to src faceset. ( none/rct/lct/mkl/idt/sot, ?:help skip:none) : none\n", - "Enable gradient clipping? (y/n, ?:help skip:n) : n\n", - "Pretrain the model? (y/n, ?:help skip:n) : \n", - "n\n", - "\n", - "Using TensorFlow backend.\n", - "WARNING:tensorflow:From /usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/op_def_library.py:263: colocate_with (from tensorflow.python.framework.ops) is deprecated and will be removed in a future version.\n", - "Instructions for updating:\n", - "Colocations handled automatically by placer.\n", - "\n", - "\n", - "WARNING:tensorflow:From /usr/local/lib/python3.6/dist-packages/tensorflow/python/ops/math_ops.py:3066: to_int32 (from tensorflow.python.ops.math_ops) is deprecated and will be removed in a future version.\n", - "Instructions for updating:\n", - "Use tf.cast instead.\n", - "Loaded 818 packed faces from /content/drive/My Drive/DeepFaceLab/workspace/data_src/aligned\n", - "Loaded 803 packed faces from /content/drive/My Drive/DeepFaceLab/workspace/data_dst/aligned\n", - "=============== Model Summary ================\n", - "== ==\n", - "== Model name: SAEHD ==\n", - "== ==\n", - "== Current iteration: 0 ==\n", - "== ==\n", - "==------------- Model Options --------------==\n", - "== ==\n", - "== random_flip: True ==\n", - "== resolution: 128 ==\n", - "== face_type: f ==\n", - "== learn_mask: True ==\n", - "== optimizer_mode: 1 ==\n", - "== archi: df ==\n", - "== ae_dims: 256 ==\n", - "== ed_ch_dims: 21 ==\n", - "== lr_dropout: False ==\n", - "== random_warp: True ==\n", - "== true_face_training: False ==\n", - "== face_style_power: 0.0 ==\n", - "== bg_style_power: 0.0 ==\n", - "== ct_mode: none ==\n", - "== clipgrad: False ==\n", - "== batch_size: 8 ==\n", - "== ==\n", - "==--------------- Running On ---------------==\n", - "== ==\n", - "== Device index: 0 ==\n", - "== Name: Tesla P100-PCIE-16GB ==\n", - "== VRAM: 16.00GB ==\n", - "== ==\n", - "==============================================\n", - "Starting. Press \"Enter\" to stop training and save model.\n", - "Initializing CA weights: 100% 57/57 [02:36<00:00, 2.75s/it]/usr/lib/python3.6/multiprocessing/semaphore_tracker.py:143: UserWarning: semaphore_tracker: There appear to be 1 leaked semaphores to clean up at shutdown\n", - " len(cache))\n", - "/usr/lib/python3.6/multiprocessing/semaphore_tracker.py:143: UserWarning: semaphore_tracker: There appear to be 1 leaked semaphores to clean up at shutdown\n", - " len(cache))\n", - "Initializing CA weights: 100% 57/57 [02:37<00:00, 2.75s/it]\n", - "[15:22:10][#000001][5502ms][2.7114][1.7404]\n", - "[15:37:13][#001283][0653ms][1.4679][0.9587]\n", - "[15:52:16][#002579][0648ms][1.0746][0.6347]\n", - "Done.\n", - "/usr/lib/python3.6/multiprocessing/semaphore_tracker.py:143: UserWarning: semaphore_tracker: There appear to be 1 leaked semaphores to clean up at shutdown\n", - " len(cache))\n", - "/usr/lib/python3.6/multiprocessing/semaphore_tracker.py:143: UserWarning: semaphore_tracker: There appear to be 1 leaked semaphores to clean up at shutdown\n", - " len(cache))\n", - "/usr/lib/python3.6/multiprocessing/semaphore_tracker.py:143: UserWarning: semaphore_tracker: There appear to be 1 leaked semaphores to clean up at shutdown\n", - " len(cache))\n", - "/usr/lib/python3.6/multiprocessing/semaphore_tracker.py:143: UserWarning: semaphore_tracker: There appear to be 1 leaked semaphores to clean up at shutdown\n", - " len(cache))\n" - ], - "name": "stdout" - } - ] - }, - { - "cell_type": "markdown", - "metadata": { - "id": "m2Ba96cVuS0K", - "colab_type": "text" - }, - "source": [ - "# 第五步. 轉換輸出\n", - "\n" - ] - }, - { - "cell_type": "code", - "metadata": { - "id": "G_oEgeU7I9jt", - "colab_type": "code", - "cellView": "both", - "colab": { - "base_uri": "https://localhost:8080/", - "height": 1000 - }, - "outputId": "666dd931-97c9-479e-c316-ecb7277a4961" - }, - "source": [ - "#@title 開始轉換圖片\n", - "\n", - "Model = \"SAEHD\" #@param [\"SAEHD\", \"SAE\", \"H128\", \"LIAEF128\", \"DF\", \"AVATAR\", \"Quick96\"]\n", - "%cd \"/content/drive/My Drive/DeepFaceLab/DeepFaceLab_Colab/\"\n", - "cmd = \" main.py convert --input-dir ../workspace/data_dst --output-dir ../workspace/data_dst/merged --aligned-dir ../workspace/data_dst/aligned --model-dir ../workspace/model --model \" + Model\n", - "!python $cmd" - ], - "execution_count": 9, - "outputs": [ - { - "output_type": "stream", - "text": [ - "/content/drive/My Drive/DeepFaceLab/DeepFaceLab_Colab\n", - "Running converter.\n", - "\n", - "Loading model...\n", - "Using TensorFlow backend.\n", - "WARNING:tensorflow:From /usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/op_def_library.py:263: colocate_with (from tensorflow.python.framework.ops) is deprecated and will be removed in a future version.\n", - "Instructions for updating:\n", - "Colocations handled automatically by placer.\n", - "=============== Model Summary ================\n", - "== ==\n", - "== Model name: SAEHD ==\n", - "== ==\n", - "== Current iteration: 3183 ==\n", - "== ==\n", - "==------------- Model Options --------------==\n", - "== ==\n", - "== random_flip: True ==\n", - "== resolution: 128 ==\n", - "== face_type: f ==\n", - "== learn_mask: True ==\n", - "== optimizer_mode: 1 ==\n", - "== archi: df ==\n", - "== ae_dims: 256 ==\n", - "== ed_ch_dims: 21 ==\n", - "== lr_dropout: False ==\n", - "== random_warp: True ==\n", - "== true_face_training: False ==\n", - "== face_style_power: 0.0 ==\n", - "== bg_style_power: 0.0 ==\n", - "== ct_mode: none ==\n", - "== clipgrad: False ==\n", - "== batch_size: 8 ==\n", - "== ==\n", - "==--------------- Running On ---------------==\n", - "== ==\n", - "== Device index: 0 ==\n", - "== Name: Tesla P100-PCIE-16GB ==\n", - "== VRAM: 16.00GB ==\n", - "== ==\n", - "==============================================\n", - "Choose mode: \n", - "(0) original\n", - "(1) overlay\n", - "(2) hist-match\n", - "(3) seamless\n", - "(4) seamless-hist-match\n", - "(5) raw-rgb\n", - "(6) raw-rgb-mask\n", - "(7) raw-mask-only\n", - "(8) raw-predicted-only\n", - "Default: 3 : \n", - "3\n", - "Choose mask mode: \n", - "(1) learned\n", - "(2) dst\n", - "(3) FAN-prd\n", - "(4) FAN-dst\n", - "(5) FAN-prd*FAN-dst\n", - "(6) learned*FAN-prd*FAN-dst\n", - "?:help Default: 1 : \n", - "1\n", - "Choose erode mask modifier [-400..400] (skip:0) : \n", - "0\n", - "Choose blur mask modifier [-400..400] (skip:0) : \n", - "0\n", - "Choose motion blur power [0..100] (skip:0) : \n", - "0\n", - "Choose output face scale modifier [-50..50] (skip:0) : \n", - "0\n", - "Apply color transfer to predicted face? Choose mode ( None / rct / lct / mkl / mkl-m / idt / idt-m / sot-m / mix-m skip:None ) : \n", - "None\n", - "Choose sharpen mode: \n", - "(0) None\n", - "(1) box\n", - "(2) gaussian\n", - "?:help Default: 0 : \n", - "0\n", - "Choose super resolution mode: \n", - "(0) None\n", - "(1) RankSRGAN\n", - "?:help Default: 0 : \n", - "0\n", - "Choose image degrade by denoise power [0..500] (skip:0) : \n", - "0\n", - "Choose image degrade by bicubic rescale power [0..100] (skip:0) : \n", - "0\n", - "Degrade color power of final image [0..100] (skip:0) : \n", - "0\n", - "Export png with alpha channel of the mask? (y/n skip:n) : \n", - "n\n", - "\n", - "Using packed faceset.\n", - "Collecting alignments: 42% 335/803 [00:01<00:02, 212.89it/s]\n", - "Collecting alignments: 100% 803/803 [00:03<00:00, 215.55it/s]\n", - "Computing motion vectors: 100% 804/804 [00:00<00:00, 1099.59it/s]\n", - "Running on CPU1.\n", - "Running on CPU0.\n", - "Converting: 45% 360/804 [05:13<06:27, 1.15it/s]\n", - "\n", - "no faces found for 00361.jpg, copying without faces\n", - "Converting: 100% 804/804 [11:21<00:00, 1.18it/s]/usr/lib/python3.6/multiprocessing/semaphore_tracker.py:143: UserWarning: semaphore_tracker: There appear to be 1 leaked semaphores to clean up at shutdown\n", - " len(cache))\n", - "/usr/lib/python3.6/multiprocessing/semaphore_tracker.py:143: UserWarning: semaphore_tracker: There appear to be 1 leaked semaphores to clean up at shutdown\n", - " len(cache))\n", - "Converting: 100% 804/804 [11:21<00:00, 1.18it/s]\n", - "Done.\n" - ], - "name": "stdout" - } - ] - }, - { - "cell_type": "code", - "metadata": { - "colab_type": "code", - "id": "fbxfQ8UbJrqk", - "cellView": "both", - "colab": { - "base_uri": "https://localhost:8080/", - "height": 1000 - }, - "outputId": "144c38f1-e940-4168-cfb7-586415be139c" - }, - "source": [ - "#@title 圖片轉換影片\n", - "!python main.py videoed video-from-sequence --input-dir ../workspace/data_dst/merged --output-file ../workspace/result.mp4 --reference-file ../workspace/data_dst.mp4" - ], - "execution_count": 10, - "outputs": [ - { - "output_type": "stream", - "text": [ - "Bitrate of output file in MB/s ? (default:16) : \n", - "16\n", - "ffmpeg version 3.4.6-0ubuntu0.18.04.1 Copyright (c) 2000-2019 the FFmpeg developers\n", - " built with gcc 7 (Ubuntu 7.3.0-16ubuntu3)\n", - " configuration: --prefix=/usr --extra-version=0ubuntu0.18.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared\n", - " libavutil 55. 78.100 / 55. 78.100\n", - " libavcodec 57.107.100 / 57.107.100\n", - " libavformat 57. 83.100 / 57. 83.100\n", - " libavdevice 57. 10.100 / 57. 10.100\n", - " libavfilter 6.107.100 / 6.107.100\n", - " libavresample 3. 7. 0 / 3. 7. 0\n", - " libswscale 4. 8.100 / 4. 8.100\n", - " libswresample 2. 9.100 / 2. 9.100\n", - " libpostproc 54. 7.100 / 54. 7.100\n", - "Input #0, image2pipe, from 'pipe:':\n", - " Duration: N/A, bitrate: N/A\n", - " Stream #0:0: Video: png, rgb24(pc), 720x1280, 29.97 fps, 29.97 tbr, 29.97 tbn, 29.97 tbc\n", - "Input #1, mov,mp4,m4a,3gp,3g2,mj2, from '/content/drive/My Drive/DeepFaceLab/workspace/data_dst.mp4':\n", - " Metadata:\n", - " major_brand : qt \n", - " minor_version : 0\n", - " compatible_brands: qt \n", - " creation_time : 2020-03-03T14:56:50.000000Z\n", - " com.apple.quicktime.make: Apple\n", - " com.apple.quicktime.model: iPhone X\n", - " com.apple.quicktime.software: 13.3.1\n", - " com.apple.quicktime.creationdate: 2020-03-03T22:54:22+0800\n", - " Duration: 00:00:26.80, start: 0.000000, bitrate: 7541 kb/s\n", - " Stream #1:0(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 103 kb/s (default)\n", - " Metadata:\n", - " creation_time : 2020-03-03T14:56:50.000000Z\n", - " handler_name : Core Media Data Handler\n", - " Stream #1:1(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 720x1280 [SAR 1:1 DAR 9:16], 7406 kb/s, 29.97 fps, 29.97 tbr, 600 tbn, 1200 tbc (default)\n", - " Metadata:\n", - " creation_time : 2020-03-03T14:56:50.000000Z\n", - " handler_name : Core Media Data Handler\n", - " encoder : H.264\n", - " Stream #1:2(und): Data: none (mebx / 0x7862656D), 23 kb/s (default)\n", - " Metadata:\n", - " creation_time : 2020-03-03T14:56:50.000000Z\n", - " handler_name : Core Media Data Handler\n", - " Stream #1:3(und): Data: none (mebx / 0x7862656D), 0 kb/s (default)\n", - " Metadata:\n", - " creation_time : 2020-03-03T14:56:50.000000Z\n", - " handler_name : Core Media Data Handler\n", - "Stream mapping:\n", - " Stream #0:0 -> #0:0 (png (native) -> h264 (libx264))\n", - " Stream #1:0 -> #0:1 (aac (native) -> aac (native))\n", - "\u001b[1;36m[libx264 @ 0x55e9a72d3e00] \u001b[0musing cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2 AVX512\n", - "\u001b[1;36m[libx264 @ 0x55e9a72d3e00] \u001b[0mprofile High, level 4.1\n", - "\u001b[1;36m[libx264 @ 0x55e9a72d3e00] \u001b[0m264 - core 152 r2854 e9a5903 - H.264/MPEG-4 AVC codec - Copyleft 2003-2017 - 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=abr mbtree=1 bitrate=16000 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00\n", - "Output #0, mp4, to '/content/drive/My Drive/DeepFaceLab/workspace/result.mp4':\n", - " Metadata:\n", - " encoder : Lavf57.83.100\n", - " Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuv420p(progressive), 720x1280, q=-1--1, 16000 kb/s, 29.97 fps, 30k tbn, 29.97 tbc\n", - " Metadata:\n", - " encoder : Lavc57.107.100 libx264\n", - " Side data:\n", - " cpb: bitrate max/min/avg: 0/0/16000000 buffer size: 0 vbv_delay: -1\n", - " Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, mono, fltp, 192 kb/s (default)\n", - " Metadata:\n", - " creation_time : 2020-03-03T14:56:50.000000Z\n", - " handler_name : Core Media Data Handler\n", - " encoder : Lavc57.107.100 aac\n", - "\u001b[0;35m[image2pipe @ 0x55e9a72d6000] \u001b[0m\u001b[0;33mThread message queue blocking; consider raising the thread_queue_size option (current value: 8)\n", - "frame= 804 fps=8.0 q=-1.0 Lsize= 53340kB time=00:00:26.81 bitrate=16294.7kbits/s speed=0.265x \n", - "video:52778kB audio:532kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.056542%\n", - "\u001b[1;36m[libx264 @ 0x55e9a72d3e00] \u001b[0mframe I:4 Avg QP: 9.81 size:167159\n", - "\u001b[1;36m[libx264 @ 0x55e9a72d3e00] \u001b[0mframe P:204 Avg QP:13.17 size:108430\n", - "\u001b[1;36m[libx264 @ 0x55e9a72d3e00] \u001b[0mframe B:596 Avg QP:15.02 size: 52442\n", - "\u001b[1;36m[libx264 @ 0x55e9a72d3e00] \u001b[0mconsecutive B-frames: 1.0% 0.5% 0.0% 98.5%\n", - "\u001b[1;36m[libx264 @ 0x55e9a72d3e00] \u001b[0mmb I I16..4: 3.7% 88.2% 8.2%\n", - "\u001b[1;36m[libx264 @ 0x55e9a72d3e00] \u001b[0mmb P I16..4: 2.3% 59.8% 4.3% P16..4: 11.1% 14.5% 8.1% 0.0% 0.0% skip: 0.0%\n", - "\u001b[1;36m[libx264 @ 0x55e9a72d3e00] \u001b[0mmb B I16..4: 0.6% 22.0% 1.6% B16..8: 27.3% 15.6% 5.8% direct:19.5% skip: 7.5% L0:32.7% L1:27.5% BI:39.8%\n", - "\u001b[1;36m[libx264 @ 0x55e9a72d3e00] \u001b[0mfinal ratefactor: 11.70\n", - "\u001b[1;36m[libx264 @ 0x55e9a72d3e00] \u001b[0m8x8 transform intra:90.5% inter:63.1%\n", - "\u001b[1;36m[libx264 @ 0x55e9a72d3e00] \u001b[0mcoded y,uvDC,uvAC intra: 94.3% 98.5% 92.2% inter: 65.3% 67.2% 18.3%\n", - "\u001b[1;36m[libx264 @ 0x55e9a72d3e00] \u001b[0mi16 v,h,dc,p: 10% 9% 18% 63%\n", - "\u001b[1;36m[libx264 @ 0x55e9a72d3e00] \u001b[0mi8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 17% 19% 35% 3% 6% 5% 6% 4% 5%\n", - "\u001b[1;36m[libx264 @ 0x55e9a72d3e00] \u001b[0mi4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 22% 22% 15% 5% 10% 7% 9% 5% 6%\n", - "\u001b[1;36m[libx264 @ 0x55e9a72d3e00] \u001b[0mi8c dc,h,v,p: 56% 18% 20% 6%\n", - "\u001b[1;36m[libx264 @ 0x55e9a72d3e00] \u001b[0mWeighted P-Frames: Y:16.7% UV:8.8%\n", - "\u001b[1;36m[libx264 @ 0x55e9a72d3e00] \u001b[0mref P L0: 50.5% 20.7% 19.3% 8.4% 1.1%\n", - "\u001b[1;36m[libx264 @ 0x55e9a72d3e00] \u001b[0mref B L0: 91.9% 6.2% 1.8%\n", - "\u001b[1;36m[libx264 @ 0x55e9a72d3e00] \u001b[0mref B L1: 97.5% 2.5%\n", - "\u001b[1;36m[libx264 @ 0x55e9a72d3e00] \u001b[0mkb/s:16116.35\n", - "\u001b[1;36m[aac @ 0x55e9a72d4d00] \u001b[0mQavg: 63545.531\n", - "Done.\n" - ], - "name": "stdout" - } - ] - } - ] -} \ No newline at end of file