Softology Software Gallery Contact Blog
IMPORTANT
You MUST have an Nvidia GPU for the TensorFlow related modes to work in Visions of Chaos. If you are unsure, check your graphics card is listed here.
If you do not have a supported Nvidia GPU stop now and don't bother with the rest of this page.
Version numbers are important. If these instructions specify a version number make sure you download and install that version.

Installing Python and TensorFlow for Visions of Chaos
Python and TensorFlow enable the machine learning and neural network features of Visions of Chaos.
Follow these steps to get TensorFlow working on your PC so Visions of Chaos can make use of it.

Python
Download the latest version of Python from here.
Install it making sure you check the "Add Python to PATH" checkbox.
Python Install Dialog
If you also install Python outside the "Program Files" directory (eg to C:\Python\) it saves potential security rights hassles in the next stage.

Update Python Libraries
If you installed Python to a directory outside "Program Files" you can copy the following commands into a command prompt windows. If you did install Python to the default subdirectory under "Program Files" you will need to run the following commands from an Administrator command prompt.
To prevent other possible access errors make sure there are no instances of python.exe running in task manager before trying these commands.
The commands can all be copied and pasted into the command line in one go and will execute one after the other.
python -m pip install --upgrade pip
pip install --no-cache-dir --ignore-installed --upgrade --force-reinstall pyyaml
pip install --no-cache-dir --ignore-installed --upgrade --force-reinstall tensorflow-gpu==1.14.0
pip install --no-cache-dir --ignore-installed --upgrade --force-reinstall tensorflow-datasets
pip install --no-cache-dir --ignore-installed --upgrade --force-reinstall keras
pip install --no-cache-dir --ignore-installed --upgrade --force-reinstall matplotlib
pip install --no-cache-dir --ignore-installed --upgrade --force-reinstall pillow
pip install --no-cache-dir --ignore-installed --upgrade --force-reinstall pydot
pip install --no-cache-dir --ignore-installed --upgrade --force-reinstall opencv-python
pip install --no-cache-dir --ignore-installed --upgrade --force-reinstall scipy
pip install --no-cache-dir --ignore-installed --upgrade --force-reinstall pandas
pip install --no-cache-dir --ignore-installed --upgrade --force-reinstall music21


CUDA and CuDNN
CUDA
Download CUDA v10.0 from here and install it.
NOTE: by default the Nvidia installer wants to install extra drivers etc, you only need the libraries option checked, ie
CUDA Install Dialog
cuDNN
1. Download cuDNN v10.0 from here. Make sure you get the version for CUDA 10.0, ie "Download cuDNN v7.6.4 (September 27, 2019), for CUDA 10.0"
You do have to register, but if you do not want to use your real name and email to register, use a fake name and a free temp mail service like temp mail or 10 minute mail to get the verification email.
2. Extract the cuDNN zip to a temp folder.
3. Copy the \cuda\bin\cudnn64_7.dll into the C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\bin\ folder.
The C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\bin\ folder should now have a bunch of DLLs and look like the following
CUDA DLLs
4. Reboot Windows.

Test TensorFlow Support in Visions of Chaos
Start Visions of Chaos, click the Options menu and then select Options to open the Options dialog. Under the TensorFlow tab, click the "Check and enable TensorFlow" button.
Visions of Chaos TensorFlow detection
If the installs went OK then TensorFlow should be detected and the TensorFlow functionality will be enabled in Visions of Chaos.

How Can You Use TensorFlow
1. Cellular automata searching Select Mode->Cellular Automata->2D->2D Cellular Automata. You should see a "Search" button. Clicking that uses TensorFlow Convolutional Neural Networks to detect interesting CA rules.
2. Style Transfer GANs for image processing.
3. LSTM Music Composer Select Mode->Music->LSTM Composer.