Tensorflow 1.X (please download the 1.X version to run the code)
How to install tensorflow with pip in the terminal: https://www.tensorflow.org/install/pip
OpenAI Gym
Instruction for downloading OpenAI Gym: https://gym.openai.com/docs/
Preparation
-
The two seperate .py file
car_racing.pyandcar_dynamic.pyare used to repalce the originalcar_racing.pyandcar_dynamic.pyinOpenAI/gym/envs/box2d(The location is the place where the OpenAI Gym is downloaded to on your PC) -
Open the Terminal on your PC and choose to the file by using
cd ddpg
and then type in the following operation to start the test
./run_etc.sh
The two files car_racing.py and car_dynamic.py should be used to repalce the ar_racing.py and car_dynamic.py in the OpenAI/gym/envs/box2d.
#Then can use : ./run_etc.sh in the ddpg file to run the test.