This will walk you through getting your environment setup to run most of the GANs with Anaconda as a Virtual Python Environment.
OS: Windows (11/10/8/7), Ubuntu(19,20)
GPU: Nvidia (AMD hasn't been tested)
VRAM: 6gb+
1. Download Tools!
- 1.A. Cuda enabled GPU
- Latest Nvidia Drivers
- CUDA Toolkit for your version
- 1.B. Python (Anaconda)
- We use anaconda to make it easier to manage different projects
- Virtual python environment and versioning
- Anaconda also includes Jupyter Notebook pre-installed
- 1.C. Git
- version control manager for code
- we just use it to download repos from GitHub
- Must be on system PATH
- When installing select the option add the PATH
- https://git-scm.com/downloads
- 1.D. FFmpeg
- Video encoding tool library
- we use this mainly to turn image sequences into videos
- Must be on system PATH
- 1.E. ImageMagick
- software suite for displaying, creating, converting, modifying, and editing raster images.
- used in some projects but handy to have already installed
- 1.F. Wget
- used to download models for projects
- Windows users need this version
- Linux users can just use the package in their distributions
- 1.G. cURL
- used to download models, some projects use this instead of wget
- Latest versions of windows have cURL pre installed
- Older versions that don't include cURL use this one
- Linux users can just use the package in their distributions
1. Enable subsystem for linux on windows!
- Option A (control panel)
- open control panel and click "Programs" from here select "Turn windows feature on or off"
- this should have opened a new window with a list of features, scroll all the way to the bottom and select "Windows Subsystem for Linux", restart your pc after installing
- now you actually need a linux distribution
- Option B (PowerShell)
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
- Optional:
Enable-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform
2. Download & Prepare linux Distro
- open the microsoft store app and search "Linux", i went with Ubuntu 20.04
- setup username and password for linux distribution
- run the following command to update some things
sudo apt update && sudo apt upgrade -y
3. Download & Prepare Anaconda
- download anaconda with
wget https://repo.anaconda.com/archive/Anaconda3-2021.11-Linux-x86_64.sh
- install the library with
bash Anaconda3-2021.11-Linux-x86_64.sh
- run
source bachrc
to make use of install - install pytorch in conda with
conda install pytorch torchvision torchaudio cudatoolkit=11.3 -c pytorch
Coming Soon!