The environment needs the following software to be installed:
Used as it creates a container for each project, allowing you to select the Python and dependency versions for your project, without conflicting with any global settings.
No need to add this to path
For version control support
Used by Tensorflow for GPU support
The file cudnn64_7.dll
is needed by Tensorflow for GPU support. The download should be extracted and placed somewhere on drive. The path to the DLL will must be manually added to the System Environment PATH variable.
* Registration to NVIDIA required
It is recommended to use a machine with a compatabile NVIDIA graphics card that can be used by TensorFlow. The UCLan Games Lab has PCs with suitable NVIDIA GeForce GTX 1070 cards.
Not using a graphics card is significantly slower and not recommended.
-
Open Pycharm and checkout code from Github https://github.com/scooby359/RL-Simple.git
-
When prompted by PyCharm, set the environment to Python 3.6, or manually go to the project options and set.
-
From the PyCharm terminal, verify Pip is available with
pip -V
-
Install packages for skimage (scikit-image), matplotlib by using the prompts in PyCharm.
-
Install TensorFlow 1.10 with
pip install tensorflow-gpu==1.10
. If not using a machine with a suitable graphics card, installtensorflow==1.10
instead. -
Install Numpy with
pip install numpy==1.17.4
Tensorflow will require version <= 1.14.5, but this isn't compatible with the rest of the project so needs to be manually changed. -
Install OpenAI Gym with
pip install gym
-
The project can then be run from PyCharm by right clicking on the Python file and selecting Run.
-
After completion, result graphs will be displayed. The graphs, raw CSV values and the TensorFlow model are saved in
./result/[TIMESTAMP]/
.