Installing ESRGAN and/or BasicSR on Arch Linux

From Upscale Wiki
Revision as of 06:21, 4 October 2021 by Mutin Choler (talk | contribs) (→‎ESRGAN / BasicSR dependencies)

(diff) ← Older revision | Approved revision (diff) | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

For this guide you will need either Arch Linux or another Linux Distribution that is based on it.

Guide Dependencies

If you don't have them installed already, you will need base-devel, git and yay to follow the steps of this guide: Open the terminal and enter:

sudo pacman -S base-devel git && git clone https://aur.archlinux.org/yay.git && cd yay && makepkg -si && cd .. && rm -rf yay

ESRGAN / BasicSR dependencies

  • If you have and use an NVIDIA GPU, enter the following into the terminal:
    sudo pacman -S python-pip python-pytorch-opt-cuda opencv python-opencv python-typer python-rich python-matplotlib python-scipy
    yay -S python-tensorboardx
    pip install torch torchvision --force-reinstall -U
  • If you don't have an NVIDIA GPU (AMD or Intel), enter the following into the terminal:
    sudo pacman -S python-pip python-pytorch-opt opencv python-opencv python-typer python-rich python-matplotlib python-scipy
    yay -S python-tensorboardx
    pip install torch torchvision --force-reinstall -U

Cloing / Installing ESRGAN

To clone ESRGAN (old architecture / BlueAmulet Fork) Go into the folder where you want to put the ESRGAN folder/installation in, then clone it by entering the following into the terminal: git clone https://github.com/JoeyBallentine/ESRGAN.git

Cloning / Installing traiNNer

To clone traiNNer (Victorc's fork) Go into the folder where you want to put the traiNNer folder/installation in, then clone it by entering the following into the terminal:
git clone https://github.com/victorca25/traiNNer