The AI-Toolbox consists of a variety of software tools that are written in different programming languages. Some of these tools can only be run within a specific runtime environments and/or when the correct dependencies are installed. This documentation describes the setup and installation procedures required to run the tools on Windows and MacOS operation systems. The documentation is divided into the following sections:
-[Graphics Drivers](README_graphics.md)
This section describes the installation of the graphics drivers and programming libraries for NVidia GPUs. It only applies to Windows PCs that are equipped with an NVidia graphics card.
- C++ Compiler
This section describes the installation of a tool chain for compiling c++ programs on Windows and MacOS. This tool chain is required for installing some Python dependencies.
- Anaconda Environment
This section describes the setup of a Anaconda environment for running most of the tools written that are written in the Python programming language. There exist a few tools that require a different anaconda environment. The installation of the environments for these tools are described together with these tools.
- Openframeworks
Some tools require the C++ creative coding environment OpenFrameworks for compilation. This section describes the setup of OpenFrameworks and the additional addons that need to be downloaded.
- Supercollider
Some tools require the Supercollider sound programming environment. This section describes the setup of Supercollider.
All the machine learning models that are included in the AI-Toolbox can be easily trained on a regular consumer PC as long as the PC is equipped with a dedicated NVidia graphics card. Training on a computer without a Nvidia GPU is also possible but takes considerably longer.
To setup a Windows PC with NVidia GPU for training machine learning models, the following steps are required.
## Update to the newest NVidia GPU driver
NVidia GPU drivers can easily be installed through the NVidia App. This application can be downloaded from [here](https://www.nvidia.com/en-us/software/nvidia-app/). To update the drive, run the NVidia App, click on the "Drivers" icon in column on the left which opens the drivers page. If a driver update is available, a green "Download" button will be shown of the drivers page. Clicking this button will start the download and installation process for the new driver. When prompted with the option to "express install" or "custom install" the driver, chose "express install".
CUDA is NVidia's proprietary platform and programming interface for parallel computing on GPUs.
The AI-Toolbox has been developed and tested with CUDA version 11.8. The CUDA installer can be downloaded from the NVidia [website](https://developer.nvidia.com/cuda-downloads). Version 11.8 of CUDA is available among the [archived previous releases](https://developer.nvidia.com/cuda-11-8-0-download-archive). The machine-learning tools provided by the AI-Toolbox likely also work with newer versions of CUDA but this hasn't been tested.
When executing the CUDA installer, it is recommended to chose the "Custom" instead of the "Express" installation option. Then, when selecting the driver components for installation, only select "CUDA" and deselect "Other components" and "Driver components".
cuDNN is GPU accelerated library for running Deep Neural Networks. Downloading cuDNN requires a NVidia user account. Such an account can be created for free [here](https://nvidia.custhelp.com/app/utils/create_account). The AI-Toolbox has been developed and tested with cuDNN version 8.7.0. This version is available among the [archived previous releases](https://developer.nvidia.com/rdp/cudnn-archive). Make sure that you download the cuDNN version for CUDA 11.x and not CUDA 10.2.
Once downloaded, extract the zip archive and manually copy the content of the "bin", "include" and lib" directories into the corresponding directories in the CUDA folder. The CUDA folder is located in C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8.