Skip to content

Instantly share code, notes, and snippets.

@neklaf
Last active May 24, 2020 15:40
Show Gist options
  • Save neklaf/50b50aa6165e28103617badaa6263c6e to your computer and use it in GitHub Desktop.
Save neklaf/50b50aa6165e28103617badaa6263c6e to your computer and use it in GitHub Desktop.
Deepfacelab

Installation instructions (to Debian GNU/Linux)

Anaconda installation

https://www.anaconda.com/products/individual#linux

Download Anaconda3-2020.02-Linux-x86_64.sh from Anaconda download page for Linux:

$ chmod u+x Anaconda3-2020.02-Linux-x86_64.sh
$ ./Anaconda3-2020.02-Linux-x86_64.sh
$ export PATH=~/anaconda3/bin:$PATH
$ . .bashrc
[base]$ conda create -n deepfacelab -c main python=3.6.8 cudnn=7.6.5 cudatoolkit=10.0.130
[base]$ conda activate deepfacelab
[base]$ git clone https://github.com/lbfs/DeepFaceLab_Linux.git
[base]$ cd DeepFaceLab_Linux
[base]$ git clone https://github.com/iperov/DeepFaceLab.git

Python modules installation

[base]$ python -m pip install -r ./DeepFaceLab/requirements-cuda.txt

Uninstall process

$ conda deactivate
$ conda remove -n deepfacelab -c main python=3.6.8 cudnn=7.6.5 cudatoolkit=10.0.130
Collecting package metadata (repodata.json): done
Solving environment: done

==> WARNING: A newer version of conda exists. <==
  current version: 4.8.2
  latest version: 4.8.3

Please update conda by running

    $ conda update -n base -c defaults conda

## Package Plan ##

  environment location: /home/aitor/anaconda3/envs/deepfacelab

  removed specs:
    - cudatoolkit=10.0.130
    - cudnn=7.6.5
    - python=3.6.8

The following packages will be REMOVED:

  certifi-2020.4.5.1-py36_0
  cudatoolkit-10.0.130-0
  cudnn-7.6.5-cuda10.0_0
  libedit-3.1.20181209-hc058e9b_0
  libffi-3.2.1-hd88cf55_4
  libstdcxx-ng-9.1.0-hdf63c60_0
  ncurses-6.2-he6710b0_1
  pip-20.0.2-py36_3
  python-3.6.8-h0371630_0
  readline-7.0-h7b6447c_5
  setuptools-46.4.0-py36_0
  sqlite-3.31.1-h62c20be_1
  tk-8.6.8-hbc83047_0
  wheel-0.34.2-py36_0
  xz-5.2.5-h7b6447c_0
  zlib-1.2.11-h7b6447c_3

Proceed ([y]/n)? y
...

$ cd ..  
$ rm -rf DeepFaceLab_Linux
$ rm Anaconda3-2020.02-Linux-x86_64.sh

Uninstall Python modules

$ python -m pip uninstall -r ./DeepFaceLab/requirements-cuda.txt
Found existing installation: tqdm 4.46.0
Uninstalling tqdm-4.46.0:
  Would remove:
    /home/aitor/anaconda3/envs/deepfacelab/bin/tqdm
    /home/aitor/anaconda3/envs/deepfacelab/lib/python3.6/site-packages/tqdm-4.46.0.dist-info/*
    /home/aitor/anaconda3/envs/deepfacelab/lib/python3.6/site-packages/tqdm/*
Proceed (y/n)? y
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment