Train convolutional selected model on environment.
Currently doesn't support arguments.
- -a, --agent
Supported agents:- tDQN - Deep Q Learning in Pytorch
- tAC - Actor Critic in Pytorch
- kDQN - Deep Q Learning in Keras
- --model [PATH] - path to saved model's weights
Agents currently supporting default weights:- tAC
Watch trained agent play snake or collect stats about agent's performance
This project requires snake_gym repo to be present in the same directory as this one.
https://github.com/Gizzio/snake_gym
The tree should look like this:
- your_dir
- snake_gym
- snake-rl
For example:
mkdir snake
cd snake
git clone git@github.com:DoomCoder/snake-rl.git
git clone git@github.com:Gizzio/snake_gym.git
- Setup directories as descibed above
- Install requirements.txt from snake_gym
- Install requirementx.txt from snake-rl
If your machine doesn't support CUDA, use requirements_cpu.txt - Done!