diff --git a/README.md b/README.md index ab43562..e2e77fb 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,35 @@ -### New readme coming soon +## Using +### 1. Install Anaconda +Anaconda is the preferred method of installing DeepFaceLab on Linux. +[Just follow the tutorial](https://docs.conda.io/projects/conda/en/latest/user-guide/install). +### 2. Install System Dependencies +You will need FFMpeg, Git, and the most recent NVIDIA driver for your system to use this project. + +If you are here, then you already have everything... + +### 3. Install DeepFaceLab + +Just run it in the terminal. + +```bash + conda create -n deepfacelab -c main python=3.7 cudnn=7.6.5 cudatoolkit=10.0.130 + conda activate deepfacelab + git clone https://github.com/nagadit/DeepFaceLab_Linux.git + cd DeepFaceLab_Linux + git clone https://github.com/iperov/DeepFaceLab.git + python -m pip install -r ./DeepFaceLab/requirements-cuda.txt +``` + +## 4. Download Pretrain (optional) +Use script 4.1 from the scripts directory. + +Or download manually + +[CelebA](https://github.com/nagadit/DeepFaceLab_Linux/releases/download/1.0/pretrain_CelebA.zip) + +[FFHQ](https://github.com/nagadit/DeepFaceLab_Linux/releases/download/1.0/pretrain_FFHQ.zip) + +[Quick96](https://github.com/nagadit/DeepFaceLab_Linux/releases/download/1.0/pretrain_Quick96.zip) + +## 5. Navigate to the scripts directory and begin using DeepFaceLab_Linux ᗡ: \ No newline at end of file diff --git a/scripts/4.1_download_CelebA.sh b/scripts/4.1_download_CelebA.sh new file mode 100644 index 0000000..5cf7da5 --- /dev/null +++ b/scripts/4.1_download_CelebA.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env bash +source env.sh + +wget https://github.com/nagadit/DeepFaceLab_Linux/releases/download/1.0/pretrain_CelebA.zip +unzip -q pretrain_CelebA.zip -d "$DFL_SRC" +rm pretrain_CelebA.zip \ No newline at end of file diff --git a/scripts/4.1_download_FFHQ.sh b/scripts/4.1_download_FFHQ.sh new file mode 100644 index 0000000..2665de2 --- /dev/null +++ b/scripts/4.1_download_FFHQ.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env bash +source env.sh + +wget https://github.com/nagadit/DeepFaceLab_Linux/releases/download/1.0/pretrain_FFHQ.zip +unzip -q pretrain_FFHQ.zip -d "$DFL_SRC" +rm pretrain_FFHQ.zip \ No newline at end of file diff --git a/scripts/4.1_download_Quick96.sh b/scripts/4.1_download_Quick96.sh new file mode 100644 index 0000000..eb26898 --- /dev/null +++ b/scripts/4.1_download_Quick96.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env bash +source env.sh + +wget https://github.com/nagadit/DeepFaceLab_Linux/releases/download/1.0/pretrain_Quick96.zip +unzip -q pretrain_Quick96.zip -d "$DFL_SRC" +rm pretrain_Quick96.zip \ No newline at end of file diff --git a/scripts/env.sh b/scripts/env.sh index e7745e6..155b22e 100644 --- a/scripts/env.sh +++ b/scripts/env.sh @@ -1,4 +1,6 @@ #!/usr/bin/env bash +conda activate deepfacelab +cd .. export DFL_PYTHON="python3.6" export DFL_WORKSPACE="workspace/"