PyTorch implementation of Proximal Policy Optimization
Example command line usage:
python main.py BreakoutNoFrameskip-v0 --num-workers 8 --render
This will run PPO with 8 parallel training environments, which will be rendered on the screen. Run with -h
for usage information.
Results are comparable to those of the original PPO paper. The horizontal axis here is labeled by environment steps, whereas the graphs in the paper label it with frames, with 4 frames per step.
Training episode reward versus environment steps for BreakoutNoFrameskip-v3
:
Proximal Policy Optimization Algorithms
This code uses some environment utilities such as SubprocVecEnv
and VecFrameStack
from OpenAI's Baselines.