Development reset

This commit is contained in:
Luke Barr 2019-05-12 18:56:47 -05:00
commit ed155dc37a
68 changed files with 642 additions and 36 deletions

View file

@ -1,51 +1,67 @@
![](doc/DFL_welcome.jpg)
# Installation for Ubuntu 16.04
![](doc/logo_cuda.jpg)![](doc/logo_opencl.jpg)![](doc/logo_keras.jpg)![](doc/logo_tensorflow.jpg)![](doc/logo_plaidml.jpg)
An installation script has been created to automatically install all of the required dependencies for Ubuntu 16.04. Clone the repository and run ``ubuntu16.04-cuda9-installer.sh`` from the root directory of DeepFaceLab_Linux.
#deepfakes #faceswap #face-swap #deep-learning #deeplearning #deep-neural-networks #deepface #deep-face-swap #fakeapp #fake-app #neural-networks #neural-nets
# Installation for Ubuntu 18.04
## **DeepFaceLab** is a tool that utilizes machine learning to replace faces in videos.
#### Add NVIDIA package repositories
```bash
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/cuda-repo-ubuntu1804_10.0.130-1_amd64.deb
sudo dpkg -i cuda-repo-ubuntu1804_10.0.130-1_amd64.deb
sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/7fa2af80.pub
sudo apt-get update
```
If you like this software, please consider a donation.
#### Install NVIDIA Video Driver
```bash
sudo apt-get install --no-install-recommends nvidia-driver-418
```
**Reboot your system.**
GOAL: next DeepFacelab update.
## Easy Method
[Donate via Yandex.Money](https://money.yandex.ru/to/41001142318065)
### Install Anaconda3
Download the installer [https://www.anaconda.com/distribution/#linux](https://www.anaconda.com/distribution/#linux). Install Anaconda3 and choose the defaults. You will also need to add conda to your path so you can complete the final steps.
[Donate via Paypal](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=KK5ZCH4JXWMQS&source=url)
### Install DeepFaceLab
[Donate via Alipay](https://i.loli.net/2019/01/13/5c3ae3829809f.jpg)
```bash
conda create -y -n deepfacelab python=3.6.6 cudatoolkit=9.0 cudnn=7.3.1
conda activate deepfacelab
git clone https://github.com/lbfs/DeepFaceLab_Linux.git
cd DeepFaceLab_Linux
python -m pip install -r requirements-cuda.txt
```
bitcoin:31mPd6DxPCzbpCMZk4k1koWAbErSyqkAXr
## Harder Alternate Method
- ### [Gallery](doc/gallery/doc_gallery.md)
For this method, we will create an Ubuntu 16.04 container on your system. In order to do this, we will need to install and configure LXD.
```bash
sudo snap install lxd
sudo lxd init
sudo adduser "$USER" lxd
```
**Reboot or logout so the new group membership can take effect**
- ### Manuals:
After you have finished installing and configuring lxd to your needs. We will now need to create the container.
[English (google translated)](doc/manual_en_google_translated.pdf)
```bash
echo "root:$UID:1" | sudo tee -a /etc/subuid /etc/subgid #Only run once and never again!
wget https://blog.simos.info/wp-content/uploads/2018/06/lxdguiprofile.txt #Thanks to Simos Xenitellis for his GUI LXC profile!
lxc profile create gui
cat lxdguiprofile.txt | lxc profile edit gui
lxc launch --profile default --profile gui ubuntu:16.04 deepfacelab
# Wait 30s so the environment can fully setup without issue.
# Logging in before the inital setup is done can cause problems.
# The next command will fix the DeepFaceLab GUI to allow it to show up correctly.
lxc exec deepfacelab -- sh -c "echo 'export QT_X11_NO_MITSHM=1' >> /home/ubuntu/.bashrc"
```
[На русском](doc/manual_ru.pdf)
You can now access your container at any time with the following command
```bash
lxc exec deepfacelab -- su ubuntu
```
- ### [Prebuilt windows app](doc/doc_prebuilt_windows_app.md)
While in the container, change to your home directory with ``cd ~\`` and then run the installation instructions for Ubuntu 16.04 and you will have created an identical environment.
- ### Forks
[Google Colab fork](https://github.com/chervonij/DFL-Colab) by @chervonij
[Linux fork](https://github.com/lbfs/DeepFaceLab_Linux) by @lbfs - may be outdated
- ### [Ready to work facesets](doc/doc_ready_to_work_facesets.md)
- ### [Build and repository info](doc/doc_build_and_repository_info.md)
- ### Communication groups:
(Chinese) QQ group 951138799 for ML/AI experts
[deepfakes (Chinese)](https://deepfakescn.com)
[deepfakes (Chinese) (outdated) ](https://deepfakes.com.cn/)
[mrdeepfakes (English)](https://mrdeepfakes.com/forums/)
[reddit (English)](https://www.reddit.com/r/GifFakes/new/)
**WARNING: Make sure you install the same video driver in the container as installed in the host!**

12
scripts/1_clear_workspace.sh Executable file
View file

@ -0,0 +1,12 @@
#!/usr/bin/env bash
source env.sh
rm -r "$DFL_WORKSPACE"
mkdir "$DFL_WORKSPACE"
mkdir "$DFL_WORKSPACE/data_src"
mkdir "$DFL_WORKSPACE/data_src/aligned"
mkdir "$DFL_WORKSPACE/data_src/aligned_debug"
mkdir "$DFL_WORKSPACE/data_dst"
mkdir "$DFL_WORKSPACE/data_dst/aligned"
mkdir "$DFL_WORKSPACE/data_dst/aligned_debug"
mkdir "$DFL_WORKSPACE/model"

View file

@ -0,0 +1,7 @@
#!/usr/bin/env bash
source env.sh
$DFL_PYTHON "$DFL_SRC/main.py" videoed extract-video \
--input-file "$DFL_WORKSPACE/data_src.*" \
--output-dir "$DFL_WORKSPACE/data_src"

View file

@ -0,0 +1,7 @@
#!/usr/bin/env bash
source env.sh
$DFL_PYTHON "$DFL_SRC/main.py" videoed extract-video \
--input-file "$DFL_WORKSPACE/data_dst.*" \
--output-dir "$DFL_WORKSPACE/data_dst"

View file

@ -0,0 +1,6 @@
#!/usr/bin/env bash
source env.sh
$DFL_PYTHON "$DFL_SRC/main.py" videoed denoise-image-sequence \
--input-dir "$DFL_WORKSPACE/data_dst"

View file

@ -0,0 +1,7 @@
#!/usr/bin/env bash
source env.sh
$DFL_PYTHON "$DFL_SRC/main.py" sort \
--input-dir "$DFL_WORKSPACE/data_src/aligned" \
--by black

View file

@ -0,0 +1,7 @@
#!/usr/bin/env bash
source env.sh
$DFL_PYTHON "$DFL_SRC/main.py" sort \
--input-dir "$DFL_WORKSPACE/data_src/aligned" \
--by blur

View file

@ -0,0 +1,7 @@
#!/usr/bin/env bash
source env.sh
$DFL_PYTHON "$DFL_SRC/main.py" sort \
--input-dir "$DFL_WORKSPACE/data_src/aligned" \
--by hist

View file

@ -0,0 +1,7 @@
#!/usr/bin/env bash
source env.sh
$DFL_PYTHON "$DFL_SRC/main.py" sort \
--input-dir "$DFL_WORKSPACE/data_src/aligned" \
--by oneface

View file

@ -0,0 +1,7 @@
#!/usr/bin/env bash
source env.sh
$DFL_PYTHON "$DFL_SRC/main.py" sort \
--input-dir "$DFL_WORKSPACE/data_src/aligned" \
--by face-dissim

View file

@ -0,0 +1,7 @@
#!/usr/bin/env bash
source env.sh
$DFL_PYTHON "$DFL_SRC/main.py" sort \
--input-dir "$DFL_WORKSPACE/data_src/aligned" \
--by hist-dissim

View file

@ -0,0 +1,7 @@
#!/usr/bin/env bash
source env.sh
$DFL_PYTHON "$DFL_SRC/main.py" sort \
--input-dir "$DFL_WORKSPACE/data_src/aligned" \
--by face-pitch

View file

@ -0,0 +1,7 @@
#!/usr/bin/env bash
source env.sh
$DFL_PYTHON "$DFL_SRC/main.py" sort \
--input-dir "$DFL_WORKSPACE/data_src/aligned" \
--by face-yaw

View file

@ -0,0 +1,7 @@
#!/usr/bin/env bash
source env.sh
$DFL_PYTHON "$DFL_SRC/main.py" sort \
--input-dir "$DFL_WORKSPACE/data_src/aligned" \
--by final

View file

@ -0,0 +1,7 @@
#!/usr/bin/env bash
source env.sh
$DFL_PYTHON "$DFL_SRC/main.py" sort \
--input-dir "$DFL_WORKSPACE/data_src/aligned" \
--by brightness

View file

@ -0,0 +1,7 @@
#!/usr/bin/env bash
source env.sh
$DFL_PYTHON "$DFL_SRC/main.py" sort \
--input-dir "$DFL_WORKSPACE/data_src/aligned" \
--by hue

View file

@ -0,0 +1,7 @@
#!/usr/bin/env bash
source env.sh
$DFL_PYTHON "$DFL_SRC/main.py" sort \
--input-dir "$DFL_WORKSPACE/data_src/aligned" \
--by origname

View file

@ -0,0 +1,7 @@
#!/usr/bin/env bash
source env.sh
$DFL_PYTHON "$DFL_SRC/main.py" util \
--input-dir "$DFL_WORKSPACE/data_src/aligned" \
--add-landmarks-debug-images

View file

@ -0,0 +1,10 @@
#!/usr/bin/env bash
source env.sh
$DFL_PYTHON "$DFL_SRC/main.py" extract \
--input-dir "$DFL_WORKSPACE/data_src" \
--output-dir "$DFL_WORKSPACE/data_src/aligned" \
--multi-gpu \
--detector manual \
--debug-dir "$DFL_WORKSPACE/data_src/aligned_debug"

View file

@ -0,0 +1,9 @@
#!/usr/bin/env bash
source env.sh
$DFL_PYTHON "$DFL_SRC/main.py" extract \
--input-dir "$DFL_WORKSPACE/data_src" \
--output-dir "$DFL_WORKSPACE/data_src/aligned" \
--multi-gpu \
--detector mt

View file

@ -0,0 +1,10 @@
#!/usr/bin/env bash
source env.sh
$DFL_PYTHON "$DFL_SRC/main.py" extract \
--input-dir "$DFL_WORKSPACE/data_src" \
--output-dir "$DFL_WORKSPACE/data_src/aligned" \
--multi-gpu \
--detector mt \
--debug-dir "$DFL_WORKSPACE/data_src/aligned_debug"

View file

@ -0,0 +1,8 @@
#!/usr/bin/env bash
source env.sh
$DFL_PYTHON "$DFL_SRC/main.py" extract \
--input-dir "$DFL_WORKSPACE/data_src" \
--output-dir "$DFL_WORKSPACE/data_src/aligned" \
--detector mt

View file

@ -0,0 +1,9 @@
#!/usr/bin/env bash
source env.sh
$DFL_PYTHON "$DFL_SRC/main.py" extract \
--input-dir "$DFL_WORKSPACE/data_src" \
--output-dir "$DFL_WORKSPACE/data_src/aligned" \
--multi-gpu \
--detector s3fd

View file

@ -0,0 +1,10 @@
#!/usr/bin/env bash
source env.sh
$DFL_PYTHON "$DFL_SRC/main.py" extract \
--input-dir "$DFL_WORKSPACE/data_src" \
--output-dir "$DFL_WORKSPACE/data_src/aligned" \
--multi-gpu \
--detector s3fd \
--debug-dir "$DFL_WORKSPACE/data_src/aligned_debug"

View file

@ -0,0 +1,8 @@
#!/usr/bin/env bash
source env.sh
$DFL_PYTHON "$DFL_SRC/main.py" extract \
--input-dir "$DFL_WORKSPACE/data_src" \
--output-dir "$DFL_WORKSPACE/data_src/aligned" \
--detector s3fd

View file

@ -0,0 +1,6 @@
#!/usr/bin/env bash
source env.sh
$DFL_PYTHON "$DFL_SRC/main.py" sort \
--input-dir "$DFL_WORKSPACE/data_dst/aligned" \
--by black

View file

@ -0,0 +1,7 @@
#!/usr/bin/env bash
source env.sh
$DFL_PYTHON "$DFL_SRC/main.py" sort \
--input-dir "$DFL_WORKSPACE/data_dst/aligned" \
--by oneface

View file

@ -0,0 +1,7 @@
#!/usr/bin/env bash
source env.sh
$DFL_PYTHON "$DFL_SRC/main.py" sort \
--input-dir "$DFL_WORKSPACE/data_dst/aligned" \
--by hist

View file

@ -0,0 +1,7 @@
#!/usr/bin/env bash
source env.sh
$DFL_PYTHON "$DFL_SRC/main.py" sort \
--input-dir "$DFL_WORKSPACE/data_dst/aligned" \
--by blur

View file

@ -0,0 +1,7 @@
#!/usr/bin/env bash
source env.sh
$DFL_PYTHON "$DFL_SRC/main.py" sort \
--input-dir "$DFL_WORKSPACE/data_dst/aligned" \
--by hist-dissim

View file

@ -0,0 +1,7 @@
#!/usr/bin/env bash
source env.sh
$DFL_PYTHON "$DFL_SRC/main.py" sort \
--input-dir "$DFL_WORKSPACE/data_dst/aligned" \
--by face-pitch

View file

@ -0,0 +1,7 @@
#!/usr/bin/env bash
source env.sh
$DFL_PYTHON "$DFL_SRC/main.py" sort \
--input-dir "$DFL_WORKSPACE/data_dst/aligned" \
--by face-yaw

View file

@ -0,0 +1,7 @@
#!/usr/bin/env bash
source env.sh
$DFL_PYTHON "$DFL_SRC/main.py" sort \
--input-dir "$DFL_WORKSPACE/data_dst/aligned" \
--by origname

View file

@ -0,0 +1,9 @@
#!/usr/bin/env bash
source env.sh
$DFL_PYTHON "$DFL_SRC/main.py" extract \
--input-dir "$DFL_WORKSPACE/data_dst" \
--output-dir "$DFL_WORKSPACE/data_dst/aligned" \
--multi-gpu \
--detector manual \
--debug-dir "$DFL_WORKSPACE/data_dst/aligned_debug"

View file

@ -0,0 +1,11 @@
#!/usr/bin/env bash
source env.sh
$DFL_PYTHON "$DFL_SRC/main.py" extract \
--input-dir "$DFL_WORKSPACE/data_dst" \
--output-dir "$DFL_WORKSPACE/data_dst/aligned" \
--multi-gpu \
--detector manual \
--manual-output-debug-fix \
--debug-dir "$DFL_WORKSPACE/data_dst/aligned_debug"

View file

@ -0,0 +1,11 @@
#!/usr/bin/env bash
source env.sh
$DFL_PYTHON "$DFL_SRC/main.py" extract \
--input-dir "$DFL_WORKSPACE/data_dst" \
--output-dir "$DFL_WORKSPACE/data_dst/aligned" \
--multi-gpu \
--detector mt \
--manual-fix \
--debug-dir "$DFL_WORKSPACE/data_dst/aligned_debug"

View file

@ -0,0 +1,9 @@
#!/usr/bin/env bash
source env.sh
$DFL_PYTHON "$DFL_SRC/main.py" extract \
--input-dir "$DFL_WORKSPACE/data_dst" \
--output-dir "$DFL_WORKSPACE/data_dst/aligned" \
--multi-gpu \
--detector mt \
--debug-dir "$DFL_WORKSPACE/data_dst/aligned_debug"

View file

@ -0,0 +1,8 @@
#!/usr/bin/env bash
source env.sh
$DFL_PYTHON "$DFL_SRC/main.py" extract \
--input-dir "$DFL_WORKSPACE/data_dst" \
--output-dir "$DFL_WORKSPACE/data_dst/aligned" \
--detector mt \
--debug-dir "$DFL_WORKSPACE/data_dst/aligned_debug"

View file

@ -0,0 +1,11 @@
#!/usr/bin/env bash
source env.sh
$DFL_PYTHON "$DFL_SRC/main.py" extract \
--input-dir "$DFL_WORKSPACE/data_dst" \
--output-dir "$DFL_WORKSPACE/data_dst/aligned" \
--multi-gpu \
--detector s3fd \
--manual-fix \
--debug-dir "$DFL_WORKSPACE/data_dst/aligned_debug"

View file

@ -0,0 +1,10 @@
#!/usr/bin/env bash
source env.sh
$DFL_PYTHON "$DFL_SRC/main.py" extract \
--input-dir "$DFL_WORKSPACE/data_dst" \
--output-dir "$DFL_WORKSPACE/data_dst/aligned" \
--multi-gpu \
--detector s3fd \
--debug-dir "$DFL_WORKSPACE/data_dst/aligned_debug"

View file

@ -0,0 +1,9 @@
#!/usr/bin/env bash
source env.sh
$DFL_PYTHON "$DFL_SRC/main.py" extract \
--input-dir "$DFL_WORKSPACE/data_dst" \
--output-dir "$DFL_WORKSPACE/data_dst/aligned" \
--detector s3fd \
--debug-dir "$DFL_WORKSPACE/data_dst/aligned_debug"

9
scripts/6_train_DF.sh Executable file
View file

@ -0,0 +1,9 @@
#!/usr/bin/env bash
source env.sh
$DFL_PYTHON "$DFL_SRC/main.py" train \
--training-data-src-dir "$DFL_WORKSPACE/data_src/aligned" \
--training-data-dst-dir "$DFL_WORKSPACE/data_dst/aligned" \
--model-dir "$DFL_WORKSPACE/model" \
--model DF

View file

@ -0,0 +1,10 @@
#!/usr/bin/env bash
source env.sh
$DFL_PYTHON "$DFL_SRC/main.py" train \
--training-data-src-dir "$DFL_WORKSPACE/data_src/aligned" \
--training-data-dst-dir "$DFL_WORKSPACE/data_dst/aligned" \
--model-dir "$DFL_WORKSPACE/model" \
--model DF \
--no-preview

View file

@ -0,0 +1,9 @@
#!/usr/bin/env bash
source env.sh
$DFL_PYTHON "$DFL_SRC/main.py" train \
--training-data-src-dir "$DFL_WORKSPACE/data_src/aligned" \
--training-data-dst-dir "$DFL_WORKSPACE/data_dst/aligned" \
--model-dir "$DFL_WORKSPACE/model" \
--model FANSegmentator

View file

@ -0,0 +1,10 @@
#!/usr/bin/env bash
source env.sh
$DFL_PYTHON "$DFL_SRC/main.py" train \
--training-data-src-dir "$DFL_WORKSPACE/data_src/aligned" \
--training-data-dst-dir "$DFL_WORKSPACE/data_dst/aligned" \
--model-dir "$DFL_WORKSPACE/model" \
--model FANSegmentator \
--no-preview

9
scripts/6_train_H128.sh Executable file
View file

@ -0,0 +1,9 @@
#!/usr/bin/env bash
source env.sh
$DFL_PYTHON "$DFL_SRC/main.py" train \
--training-data-src-dir "$DFL_WORKSPACE/data_src/aligned" \
--training-data-dst-dir "$DFL_WORKSPACE/data_dst/aligned" \
--model-dir "$DFL_WORKSPACE/model" \
--model H128

View file

@ -0,0 +1,10 @@
#!/usr/bin/env bash
source env.sh
$DFL_PYTHON "$DFL_SRC/main.py" train \
--training-data-src-dir "$DFL_WORKSPACE/data_src/aligned" \
--training-data-dst-dir "$DFL_WORKSPACE/data_dst/aligned" \
--model-dir "$DFL_WORKSPACE/model" \
--model H128 \
--no-preview

9
scripts/6_train_H64.sh Executable file
View file

@ -0,0 +1,9 @@
#!/usr/bin/env bash
source env.sh
$DFL_PYTHON "$DFL_SRC/main.py" train \
--training-data-src-dir "$DFL_WORKSPACE/data_src/aligned" \
--training-data-dst-dir "$DFL_WORKSPACE/data_dst/aligned" \
--model-dir "$DFL_WORKSPACE/model" \
--model H64

View file

@ -0,0 +1,10 @@
#!/usr/bin/env bash
source env.sh
$DFL_PYTHON "$DFL_SRC/main.py" train \
--training-data-src-dir "$DFL_WORKSPACE/data_src/aligned" \
--training-data-dst-dir "$DFL_WORKSPACE/data_dst/aligned" \
--model-dir "$DFL_WORKSPACE/model" \
--model H64 \
--no-preview

9
scripts/6_train_LIAEF128.sh Executable file
View file

@ -0,0 +1,9 @@
#!/usr/bin/env bash
source env.sh
$DFL_PYTHON "$DFL_SRC/main.py" train \
--training-data-src-dir "$DFL_WORKSPACE/data_src/aligned" \
--training-data-dst-dir "$DFL_WORKSPACE/data_dst/aligned" \
--model-dir "$DFL_WORKSPACE/model" \
--model LIAEF128

View file

@ -0,0 +1,10 @@
#!/usr/bin/env bash
source env.sh
$DFL_PYTHON "$DFL_SRC/main.py" train \
--training-data-src-dir "$DFL_WORKSPACE/data_src/aligned" \
--training-data-dst-dir "$DFL_WORKSPACE/data_dst/aligned" \
--model-dir "$DFL_WORKSPACE/model" \
--model LIAEF128 \
--no-preview

8
scripts/6_train_SAE.sh Executable file
View file

@ -0,0 +1,8 @@
#!/usr/bin/env bash
source env.sh
$DFL_PYTHON "$DFL_SRC/main.py" train \
--training-data-src-dir "$DFL_WORKSPACE/data_src/aligned" \
--training-data-dst-dir "$DFL_WORKSPACE/data_dst/aligned" \
--model-dir "$DFL_WORKSPACE/model" \
--model SAE

View file

@ -0,0 +1,9 @@
#!/usr/bin/env bash
source env.sh
$DFL_PYTHON "$DFL_SRC/main.py" train \
--training-data-src-dir "$DFL_WORKSPACE/data_src/aligned" \
--training-data-dst-dir "$DFL_WORKSPACE/data_dst/aligned" \
--model-dir "$DFL_WORKSPACE/model" \
--model SAE \
--no-preview

10
scripts/7_convert_DF.sh Executable file
View file

@ -0,0 +1,10 @@
#!/usr/bin/env bash
source env.sh
$DFL_PYTHON "$DFL_SRC/main.py" convert \
--input-dir "$DFL_WORKSPACE/data_dst" \
--output-dir "$DFL_WORKSPACE/data_dst/merged" \
--aligned-dir "$DFL_WORKSPACE/data_dst/aligned" \
--model-dir "$DFL_WORKSPACE/model" \
--model DF

11
scripts/7_convert_DF_debug.sh Executable file
View file

@ -0,0 +1,11 @@
#!/usr/bin/env bash
source env.sh
$DFL_PYTHON "$DFL_SRC/main.py" convert \
--input-dir "$DFL_WORKSPACE/data_dst" \
--output-dir "$DFL_WORKSPACE/data_dst/merged" \
--aligned-dir "$DFL_WORKSPACE/data_dst/aligned" \
--model-dir "$DFL_WORKSPACE/model" \
--model DF \
--debug

10
scripts/7_convert_H128.sh Executable file
View file

@ -0,0 +1,10 @@
#!/usr/bin/env bash
source env.sh
$DFL_PYTHON "$DFL_SRC/main.py" convert \
--input-dir "$DFL_WORKSPACE/data_dst" \
--output-dir "$DFL_WORKSPACE/data_dst/merged" \
--aligned-dir "$DFL_WORKSPACE/data_dst/aligned" \
--model-dir "$DFL_WORKSPACE/model" \
--model H128

11
scripts/7_convert_H128_debug.sh Executable file
View file

@ -0,0 +1,11 @@
#!/usr/bin/env bash
source env.sh
$DFL_PYTHON "$DFL_SRC/main.py" convert \
--input-dir "$DFL_WORKSPACE/data_dst" \
--output-dir "$DFL_WORKSPACE/data_dst/merged" \
--aligned-dir "$DFL_WORKSPACE/data_dst/aligned" \
--model-dir "$DFL_WORKSPACE/model" \
--model H128 \
--debug

10
scripts/7_convert_H64.sh Executable file
View file

@ -0,0 +1,10 @@
#!/usr/bin/env bash
source env.sh
$DFL_PYTHON "$DFL_SRC/main.py" convert \
--input-dir "$DFL_WORKSPACE/data_dst" \
--output-dir "$DFL_WORKSPACE/data_dst/merged" \
--aligned-dir "$DFL_WORKSPACE/data_dst/aligned" \
--model-dir "$DFL_WORKSPACE/model" \
--model H64 \

11
scripts/7_convert_H64_debug.sh Executable file
View file

@ -0,0 +1,11 @@
#!/usr/bin/env bash
source env.sh
$DFL_PYTHON "$DFL_SRC/main.py" convert \
--input-dir "$DFL_WORKSPACE/data_dst" \
--output-dir "$DFL_WORKSPACE/data_dst/merged" \
--aligned-dir "$DFL_WORKSPACE/data_dst/aligned" \
--model-dir "$DFL_WORKSPACE/model" \
--model H64 \
--debug

10
scripts/7_convert_LIAEF128.sh Executable file
View file

@ -0,0 +1,10 @@
#!/usr/bin/env bash
source env.sh
$DFL_PYTHON "$DFL_SRC/main.py" convert \
--input-dir "$DFL_WORKSPACE/data_dst" \
--output-dir "$DFL_WORKSPACE/data_dst/merged" \
--aligned-dir "$DFL_WORKSPACE/data_dst/aligned" \
--model-dir "$DFL_WORKSPACE/model" \
--model LIAEF128

View file

@ -0,0 +1,11 @@
#!/usr/bin/env bash
source env.sh
$DFL_PYTHON "$DFL_SRC/main.py" convert \
--input-dir "$DFL_WORKSPACE/data_dst" \
--output-dir "$DFL_WORKSPACE/data_dst/merged" \
--aligned-dir "$DFL_WORKSPACE/data_dst/aligned" \
--model-dir "$DFL_WORKSPACE/model" \
--model LIAEF128 \
--debug

10
scripts/7_convert_SAE.sh Executable file
View file

@ -0,0 +1,10 @@
#!/usr/bin/env bash
source env.sh
$DFL_PYTHON "$DFL_SRC/main.py" convert \
--input-dir "$DFL_WORKSPACE/data_dst" \
--output-dir "$DFL_WORKSPACE/data_dst/merged" \
--aligned-dir "$DFL_WORKSPACE/data_dst/aligned" \
--model-dir "$DFL_WORKSPACE/model" \
--model SAE

11
scripts/7_convert_SAE_debug.sh Executable file
View file

@ -0,0 +1,11 @@
#!/usr/bin/env bash
source env.sh
$DFL_PYTHON "$DFL_SRC/main.py" convert \
--input-dir "$DFL_WORKSPACE/data_dst" \
--output-dir "$DFL_WORKSPACE/data_dst/merged" \
--aligned-dir "$DFL_WORKSPACE/data_dst/aligned" \
--model-dir "$DFL_WORKSPACE/model" \
--model SAE \
--debug

8
scripts/8_converted_to_avi.sh Executable file
View file

@ -0,0 +1,8 @@
#!/usr/bin/env bash
source env.sh
$DFL_PYTHON "$DFL_SRC\main.py" videoed video-from-sequence \
--input-dir "$DFL_WORKSPACE\data_dst\merged" \
--output-file "$DFL_WORKSPACE\result.avi" \
--reference-file "$DFL_WORKSPACE\data_dst.*"

View file

@ -0,0 +1,9 @@
#!/usr/bin/env bash
source env.sh
$DFL_PYTHON "$DFL_SRC/main.py" videoed video-from-sequence \
--input-dir "$DFL_WORKSPACE/data_dst/merged" \
--output-file "$DFL_WORKSPACE/result.mov" \
--reference-file "$DFL_WORKSPACE/data_dst.*" \
--lossless

8
scripts/8_converted_to_mp4.sh Executable file
View file

@ -0,0 +1,8 @@
#!/usr/bin/env bash
source env.sh
$DFL_PYTHON "$DFL_SRC/main.py" videoed video-from-sequence \
--input-dir "$DFL_WORKSPACE/data_dst/merged" \
--output-file "$DFL_WORKSPACE/result.mp4" \
--reference-file "$DFL_WORKSPACE/data_dst.*"

View file

@ -0,0 +1,9 @@
#!/usr/bin/env bash
source env.sh
$DFL_PYTHON "$DFL_SRC/main.py" videoed video-from-sequence \
--input-dir "$DFL_WORKSPACE/data_dst/merged" \
--output-file "$DFL_WORKSPACE/result.mp4" \
--reference-file "$DFL_WORKSPACE/data_dst.*" \
--lossless

19
scripts/env.sh Executable file
View file

@ -0,0 +1,19 @@
source ~/anaconda3/etc/profile.d/conda.sh 2> /dev/null
conda activate deepfacelab 2> /dev/null
cd ..
export DFL_PYTHON="python3.6"
export DFL_WORKSPACE="workspace/"
if [ ! -d "$DFL_WORKSPACE" ]; then
mkdir "$DFL_WORKSPACE"
mkdir "$DFL_WORKSPACE/data_src"
mkdir "$DFL_WORKSPACE/data_src/aligned"
mkdir "$DFL_WORKSPACE/data_src/aligned_debug"
mkdir "$DFL_WORKSPACE/data_dst"
mkdir "$DFL_WORKSPACE/data_dst/aligned"
mkdir "$DFL_WORKSPACE/data_dst/aligned_debug"
mkdir "$DFL_WORKSPACE/model"
fi
export DFL_SRC="./"