Skip to content

Run OpenAI's Spinningup in Docker via VS Code with all visualisations

Notifications You must be signed in to change notification settings

cj-clifton/spinningup-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Spinning Up with Docker and VS Code

Use this repo to run Open AI's Spinning Up package in a Docker container with full visualisations using VS Code.

Setup

git clone https://www.github.com/cj-l/spinningup-docker
cd spinningup-docker
code .

Click "Reopen in container" in VS Code's Remote-Containers menu.

  • will install spinningup and other dependencies

Run the following commands to enable watching videos of trained agents

export PYTHONPATH="${PYTHONPATH}:`pwd`"
Xvfb :1 -screen 0 1024x768x24 -ac +extension GLX +render -noreset &> xvfb.log &
export DISPLAY=:1

Test the installation

Train PPO

python -m spinup.run ppo --hid "[32,32]" --env LunarLander-v2 --exp_name installtest --gamma 0.999

Watch a video

python -m spinup.run test_policy data/installtest/installtest_s0

About

Run OpenAI's Spinningup in Docker via VS Code with all visualisations

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published