We have moved to https://openmodeldb.info/. This new site has a tag and search system, which will make finding the right models for you much easier! If you have any questions, ask here: https://discord.gg/cpAUpDK |
Difference between revisions of "Installing ESRGAN and/or BasicSR on Arch Linux"
FelesNoctis (talk | contribs) m (Protected "Installing ESRGAN and/or BasicSR on Arch Linux" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))) |
Mutin Choler (talk | contribs) |
||
(30 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
For this guide you will need either Arch Linux or another Linux Distribution that is based on it. | 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: | |
− | + | <code>sudo pacman -S base-devel git && git clone https://aur.archlinux.org/yay.git && cd yay && makepkg -si && cd .. && rm -rf yay</code> | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | ==ESRGAN / BasicSR dependencies== | |
+ | * If you '''have and use an NVIDIA GPU''', enter the following into the terminal: | ||
+ | *: <code>sudo pacman -Syu python-pip python-pytorch-opt-cuda</code> | ||
+ | ** In addition, you'll also need to install these dependencies directly from Pytorch's website: | ||
+ | **: <code>sudo pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu116</code> | ||
+ | * If you '''don't have an NVIDIA GPU (AMD or Intel)''', enter the following into the terminal: | ||
+ | *: <code>sudo pacman -Syu python-pip python-pytorch</code> | ||
+ | * Once those dependencies are installed, enter the following commands into the terminal to install the rest of the required dependencies: | ||
+ | *: <code>sudo pip install -r /path/to/BasicSR/requirements.txt --force-reinstall -U</code> | ||
+ | *: <code>sudo pip install basicsr</code> | ||
+ | |||
+ | ==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: | ||
+ | <code>git clone https://github.com/JoeyBallentine/ESRGAN.git</code> | ||
+ | |||
+ | ==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:</br> | ||
+ | <code>git clone https://github.com/victorca25/traiNNer</code> |
Latest revision as of 17:23, 2 September 2022
For this guide you will need either Arch Linux or another Linux Distribution that is based on it.
Contents
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 -Syu python-pip python-pytorch-opt-cuda
- In addition, you'll also need to install these dependencies directly from Pytorch's website:
sudo pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu116
- If you don't have an NVIDIA GPU (AMD or Intel), enter the following into the terminal:
sudo pacman -Syu python-pip python-pytorch
- Once those dependencies are installed, enter the following commands into the terminal to install the rest of the required dependencies:
sudo pip install -r /path/to/BasicSR/requirements.txt --force-reinstall -U
sudo pip install basicsr
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