Skip to content

An implementation of DQN RL Algorithm for Atari Space Invaders using Atari Learning Environment (ALE) and Caffe2/PyTorch (libtorch)

License

Notifications You must be signed in to change notification settings

wltjr/dqn-space_invaders

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DQN-Space Invaders

License Code Quality

Deep Q-Network Space Invaders using the Arcade Learning Environment (ALE) and PyTorch via libTorch.

The following papers were used as reference for the implementation:

  • Playing Atari with Deep Reinforcement Learning link
  • Human-level control through deep reinforcement learning link

State Space

The state space consists of frame of the grayscale game screen resized 50% and cropped to 84 x 84.

Action Space

The ALE Space Invaders Action Space has been reduced from 6 to the following 4 actions.

Value Meaning
0 NOOP
1 FIRE
2 RIGHT
3 LEFT
4 RIGHT-FIRE
5 LEFT-FIRE

System Requirements

The following software is required for proper operation

Atari ROM space_invaders.bin was obtained from Atari Mania

Build

Run the following commands in the root directory of the repository to compile all executables. The base project uses cmake build system with default of make.

cmake ./
make

Run

The primary executable is dqnsi multi-agent hedonic simulation environment. The program is implemented using GNU Argp, and has available --help menu for information on the arguments that each program accepts, which are required and are optional.

Credits

Credits and thanks for resources referenced and used in this repository, including some code and/or project structure, go to the following:

About

An implementation of DQN RL Algorithm for Atari Space Invaders using Atari Learning Environment (ALE) and Caffe2/PyTorch (libtorch)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published