Difference between revisions of "Installing ESRGAN and/or BasicSR on Arch Linux"

From Upscale Wiki
Jump to navigation Jump to search
m (Protected "Installing ESRGAN and/or BasicSR on Arch Linux" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
 
(8 intermediate revisions by the same user 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.
  
<ol start="0"><li>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:<br />
+
==Guide Dependencies==
<code>sudo pacman -S base-devel git<br />git clone https://aur.archlinux.org/yay.git && cd yay && makepkg -si && cd .. && rm -rf yay</code></li></ol>
+
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:
  
# We will install the requirements:
+
<code>sudo pacman -S base-devel git && git clone https://aur.archlinux.org/yay.git && cd yay && makepkg -si && cd .. && rm -rf yay</code>
#* If you have and use a '''NVIDIA GPU''' enter the following into the terminal:
 
#*: <code>yay -S cuda cudnn python-pip python-pytorch-cuda python-torchvision opencv opencv-samples hdf5 vtk lmdb python-lmdb tensorboard python-tensorboardx</code>
 
#* If you '''don't have a NVIDIA GPU (AMD or Intel)''' enter the following into the terminal:
 
#*: <code>yay -S python-pip python-pytorch python-torchvision opencv opencv-samples hdf5 vtk lmdb python-lmdb tensorboard python-tensorboardx</code>
 
# Cloning ESRGAN and or BasicSR (If you don't want one or the other, just leave it out)
 
#: <ol style="list-style-type:lower-alpha"><li>To clone ESRGAN (old architecture) Go into the folder where you want to put the ESRGAN folder/installation in, then clone it by entering the following into the terminal:<br /><code>git clone https://github.com/xinntao/ESRGAN/tree/aceb85730832001ec1fa3a77bd6856b75e1d0e87</code></li><li>To clone BasicSR (Victorc's fork) Go into the folder where you want to put the BasicSR folder/installation in, then clone it by entering the following into the terminal:<br /><code>git clone https://github.com/victorca25/BasicSR</code></li></ol>
 
  
That was it.
+
==ESRGAN / BasicSR dependencies==
 +
* If you have and use a '''NVIDIA GPU''' enter the following into the terminal:
 +
*: <code>yay -S python-pytorch-opt-cuda python-torchvision opencv</code>
 +
* If you '''don't have a NVIDIA GPU (AMD or Intel)''' enter the following into the terminal:
 +
*: <code>yay -S python-pytorch python-pytorch-opt opencv</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/BlueAmulet/ESRGAN</code>
 +
 
 +
==Cloning / Installing BasicSR==
 +
To clone BasicSR (Victorc's fork) Go into the folder where you want to put the BasicSR folder/installation in, then clone it by entering the following into the terminal:</br>
 +
<code>git clone https://github.com/victorca25/BasicSR</code>

Latest revision as of 22:54, 23 February 2020

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 a NVIDIA GPU enter the following into the terminal:
    yay -S python-pytorch-opt-cuda python-torchvision opencv
  • If you don't have a NVIDIA GPU (AMD or Intel) enter the following into the terminal:
    yay -S python-pytorch python-pytorch-opt opencv

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/BlueAmulet/ESRGAN

Cloning / Installing BasicSR

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