README.md 1.0 KB
Newer Older
H
Hongsheng Zeng 已提交
1 2 3 4 5 6 7 8 9
## Reproduce DQN with PARL
Based on PARL, the DQN model of deep reinforcement learning is reproduced, and the same level of indicators of the paper is reproduced in the classic Atari game.

+ DQN in
[Human-level Control Through Deep Reinforcement Learning](http://www.nature.com/nature/journal/v518/n7540/full/nature14236.html)

### Atari games introduction
Please see [here](https://gym.openai.com/envs/#atari) to know more about Atari game.

H
Hongsheng Zeng 已提交
10 11 12
### Benchmark result
- Pong
<img src=".benchmark/DQN_Pong.png"/>  
H
Hongsheng Zeng 已提交
13 14 15 16 17

## How to use
### Dependencies:
+ python2.7 or python3.5+
+ [paddlepaddle>=1.0.0](https://github.com/PaddlePaddle/Paddle)
H
Hongsheng Zeng 已提交
18
+ [parl](https://github.com/PaddlePaddle/PARL)
H
Hongsheng Zeng 已提交
19 20 21
+ gym
+ tqdm
+ opencv-python
H
Hongsheng Zeng 已提交
22 23
+ atari_py
+ [ale_python_interface](https://github.com/mgbellemare/Arcade-Learning-Environment)
H
Hongsheng Zeng 已提交
24 25 26 27


### Start Training:
```
H
Hongsheng Zeng 已提交
28 29
# To train a model for Pong game
python train.py --rom ./rom_files/pong.bin
H
Hongsheng Zeng 已提交
30 31
```
> To train more games, you can install more rom files from [here](https://github.com/openai/atari-py/tree/master/atari_py/atari_roms).