ALE is a well-known environment that simulates a series of more than 63 Atari games [Original Github]. The framework can work without ALE. However, to run successfully the sample codes, we need to install ALE as we use it to demonstrate Fruit API.
However, ALE was initially developed in Linux. It is not straightforward to install ALE on Windows and Mac OS. Therefore, we have created a patch to make sure ALE to work properly in different operating systems. The patch applied the following changes:
ale.setString(b'config', b'path_to_config_file')
.
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install sdl sdl_image sdl_mixer sdl_ttf smpeg portmidi cmake
git clone https://github.com/garlicdevs/Arcade-Learning-Environment.git
cd Arcade-Learning-Environment
mkdir build && cd build
cmake -DUSE_SDL=ON -DUSE_RLGLUE=OFF -DBUILD_EXAMPLES=ON -DMAC_OS=ON ..
make -j 4
cd ..
env MACOSX_DEPLOYMENT_TARGET=10.9 pip3.6 install .
sudo apt-get install libsdl1.2-dev libsdl-gfx1.2-dev libsdl-image1.2-dev cmake
git clone https://github.com/garlicdevs/Arcade-Learning-Environment.git
cd Arcade-Learning-Environment
mkdir build && cd build
cmake -DUSE_SDL=ON -DUSE_RLGLUE=OFF -DBUILD_EXAMPLES=ON ..
make -j 4
cd ..
pip3.6 install .
git clone https://github.com/garlicdevs/Arcade-Learning-Environment.git
ALE.sln
in folder visual_studio -> Set configuration (Release|x64) -> build ALE -> build ale_python_interface. If the projects are built successfully, the library ale_python_interface.dll
will appear in folder visual_studio\x64\Release\
cd Arcade-Learning-Environment
python winsetup.py install
Tensorflow is a well-known deep learning library from Google. We developed the baselines in Fruit API by using Tensorflow. The framework is tested successfully with Tensorflow v1.3.0 - v1.12.0. It is straightforward to install Tensorflow without a GPU. However, with a GPU, it requires extra steps to install it successfully. It requires CUDA and cuDNN. Please note that a specific version of Tensorflow must match with a specific CUDA version. For example, Tensorflow 1.12.0 only works with CUDA 9. We recommend to refer the following link to install Tensorflow with GPU correctly.
requirements.txt
. Please use the exact version described in the file.
python setup.py install