Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Synchronous Advantage Actor-Critic (A2C)

This is the pytorch version of the A2C - which is basiclly the same as the openai baselines

Requirements

  • python-3.5.2
  • openai baselines
  • pytorch-0.4.0

Installation

Install OpenAI Baselines (the openai-baselines update so quickly, please use the older version as blow, will solve in the future.)

# clone the openai baselines
git clone https://github.com/openai/baselines.git
cd baselines
git checkout 366f486
pip install -e .

Instruction to run the code

Train the Network:

python train_network.py --env-name 'BreakoutNoFrameskip-v4' --cuda (if you have a GPU, you can add this flag)

Test the Network:

python demo.py --env-name 'BreakoutNoFrameskip-v4'

Download the Pre-trained Model

Please download them from the Google Driver, then put the saved_models under the current folder.

Results

It can be found some learning curves was not perfect, because it's the problem of the implementation of RMSProp in pytorch. Please check this blog

Training Performance

Scheme

Demo: BreakoutNoFrameskip-v4

Scheme