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 "ESRGAN Installation Guide for Windows"
Jump to navigation
Jump to search
Line 10: | Line 10: | ||
== Installing ESRGAN == | == Installing ESRGAN == | ||
− | |||
# Get the latest stable 64-bit Python 3 release here: [https://www.python.org/downloads/windows/ Python Download] | # Get the latest stable 64-bit Python 3 release here: [https://www.python.org/downloads/windows/ Python Download] | ||
#: [[File:GuideEsrganWin_1-python-link.jpg|frameless|A snapshot of the "Python Releases for Windows" section of the above linked webpage as of August 12, 2019. The "Download Windows x86-64 executable installer" link is highlighted.]] | #: [[File:GuideEsrganWin_1-python-link.jpg|frameless|A snapshot of the "Python Releases for Windows" section of the above linked webpage as of August 12, 2019. The "Download Windows x86-64 executable installer" link is highlighted.]] | ||
Line 23: | Line 22: | ||
#: [[File:GuideEsrganWin_6-run.jpg|frameless|A picture of the Windows Run prompt open with "cmd" in the "Open:" field. "cmd" and the OK button are highlighted.]] | #: [[File:GuideEsrganWin_6-run.jpg|frameless|A picture of the Windows Run prompt open with "cmd" in the "Open:" field. "cmd" and the OK button are highlighted.]] | ||
# We will now install Pytorch: | # We will now install Pytorch: | ||
− | # | + | #* If you have a '''Nvidia''' graphic card enter the following command in the cmd: |
− | # | + | #*: <code>pip install torch==1.2.0 torchvision==0.4.0 -f https://download.pytorch.org/whl/torch_stable.html</code> |
− | # | + | #*: [[File:GuideEsrganWin_7-Nvidia.jpg|frameless|A Windows command prompt open with the command entered but not executed.]] |
− | # | + | #* If you have an '''AMD / Intel''' graphic card enter the following command in the cmd: |
− | # | + | #*: <code>pip install torch==1.2.0+cpu torchvision==0.4.0+cpu -f https://download.pytorch.org/whl/torch_stable.html</code> |
− | # | + | #*: [[File:GuideEsrganWin_7-CPU.jpg|frameless|A Windows command prompt open with the command entered but not executed.]] |
− | # | + | #* If the command won’t work for you, please report it. In the meantime, you can get an up to date version here at the [https://pytorch.org/get-started/locally/ Pytorch Website]. Select Stable, Windows, Pip, your Python version and your CUDA version (should be the newest) or None for AMD / Intel users. |
# Press Enter. | # Press Enter. | ||
# Now we install the other requirements for running and training ESRGAN and SFTGAN. Enter: | # Now we install the other requirements for running and training ESRGAN and SFTGAN. Enter: |
Revision as of 17:15, 18 August 2019
This guide will help you to install ESRGAN on Windows, by showing you step by step with images how to do it.
No knowledge of Python or coding is necessary to follow this guide.
If you have any problems during or after the installation, feel free to ask any questions on our Discord server and we will try to help you out.
Our goal is to open up A.I. upscaling to everyone, not just to those who can pay lots of money or are good at coding.
Before you start, make sure that your display driver is up-to-date. if you have an Nvidia GPU, to make sure it supports the newest CUDA version; if you want to be on the safe side, use the latest CUDA driver.
Installing ESRGAN
- Get the latest stable 64-bit Python 3 release here: Python Download
- Run the installer and make sure that
Add Python 3.*x* to Path
andInstall launcher for all users (recommended)
is selected, then click on Customize installation. - Make sure that every Option is selected and click on next.
- Mirror my selections and click on install (Make sure that the install location contains no spaces).
- You have now successfully installed Python 3. Click on Close now.
- Press <Windows/Super key> + R. Enter
cmd
and click onOK
- We will now install Pytorch:
- If you have a Nvidia graphic card enter the following command in the cmd:
pip install torch==1.2.0 torchvision==0.4.0 -f https://download.pytorch.org/whl/torch_stable.html
- If you have an AMD / Intel graphic card enter the following command in the cmd:
pip install torch==1.2.0+cpu torchvision==0.4.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
- If the command won’t work for you, please report it. In the meantime, you can get an up to date version here at the Pytorch Website. Select Stable, Windows, Pip, your Python version and your CUDA version (should be the newest) or None for AMD / Intel users.
- If you have a Nvidia graphic card enter the following command in the cmd:
- Press Enter.
- Now we install the other requirements for running and training ESRGAN and SFTGAN. Enter:
- Choose a folder where you want to install ESRGAN. Because of the maximum path length limitation in windows, I recommend something as short as possible like:
C:\ctp\esrgan\
- Create a folder called
ctp
(That will come in handy if you want to install Deorders scripts later) - In the
ctp
folder create a folder calledesrgan
- Open the
esrgan
folder.
- Create a folder called
- Now it is time to download ESRGAN:
- Go to the ESRGAN GitHub Repo (old model structure)
- Click on
Clone or Download
- Click on
Download ZIP
- Extract the contents of the folder into your
C:\ctp\esrgan
folder you created in step 10. It should already be open and look like the image below: - Now it is time to download and install the default ESRGAN models:
- Go to the ESRGAN Pretrained Models Google Drive
- Download the two
_old_arch.pth
files. - Put the two
.pth
files that you have just downloaded into yourmodels
folder in youresrgan
folder- For example in:
C:\ctp\esrgan\models\
- For example in:
- If you have a Nvidia Graphic Card, then you have successfully installed ESRGAN, congratulations!
- However, if you have an AMD / Intel Graphic Card, then you need to open
test.py
in your ESRGAN folder with a text editor.- Change:
device = torch.device('cuda') # if you want to run on CPU, change 'cuda' -> cpu
- into:
device = torch.device('cpu') # if you want to run on CPU, change 'cuda' -> cpu
- Change: