From a90eff901dbe5331026b3c182322694283a5e260 Mon Sep 17 00:00:00 2001 From: Timothy Delter <50489567+timothydelter@users.noreply.github.com> Date: Sat, 18 May 2019 18:21:02 +0800 Subject: [PATCH] Fix for Effmpeg not working when using Faceswap with Docker (#732) * Edited Dockerfiles to include ffmpeg installation for Effmpeg to work * Edited incorrect command to run Dockerized Faceswap GUI in INSTALL.md --- Dockerfile.cpu | 5 +++-- Dockerfile.gpu | 5 +++-- INSTALL.md | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/Dockerfile.cpu b/Dockerfile.cpu index 2bc5fc4168..f3a66fa87f 100755 --- a/Dockerfile.cpu +++ b/Dockerfile.cpu @@ -1,7 +1,8 @@ FROM tensorflow/tensorflow:1.12.0-py3 -RUN apt-get update -qq -y \ - && apt-get install -y libsm6 libxrender1 libxext-dev python3-tk\ +RUN add-apt-repository -y ppa:jonathonf/ffmpeg-4 \ + && apt-get update -qq -y \ + && apt-get install -y libsm6 libxrender1 libxext-dev python3-tk ffmpeg \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* diff --git a/Dockerfile.gpu b/Dockerfile.gpu index 4a7f94a222..e1e32f2f26 100755 --- a/Dockerfile.gpu +++ b/Dockerfile.gpu @@ -1,7 +1,8 @@ FROM tensorflow/tensorflow:1.12.0-gpu-py3 -RUN apt-get update -qq -y \ - && apt-get install -y libsm6 libxrender1 libxext-dev python3-tk\ +RUN add-apt-repository -y ppa:jonathonf/ffmpeg-4 \ + && apt-get update -qq -y \ + && apt-get install -y libsm6 libxrender1 libxext-dev python3-tk ffmpeg \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* diff --git a/INSTALL.md b/INSTALL.md index 7b9500628f..5a7e1fb51d 100755 --- a/INSTALL.md +++ b/INSTALL.md @@ -212,7 +212,7 @@ INFO 1. Install Docker deepfakes-gpu 5. Open a new terminal to interact with the project - docker exec faceswap-gpu python /srv/tools.py gui + docker exec faceswap-gpu python /srv/faceswap.py gui ``` A successful setup log, without docker.