Coder Social home page Coder Social logo

xueeinstein / rl-docker-hub Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 0.0 2.56 MB

Docker hub for easily setting up reinforcement learning research environment

License: MIT License

Shell 0.91% Makefile 0.19% JavaScript 64.09% CSS 1.86% HTML 7.30% Python 14.88% C# 0.31% Roff 0.48% Clojure 0.78% C 3.50% Ruby 1.40% Dockerfile 4.28% Perl 0.03%
docker reinforcement-learning gym roboschool torcs deepmind-lab

rl-docker-hub's Introduction

RL-docker-hub

Docker hub for easily setting up reinforcement learning research environment

Environments

Gym

Select Python2 or Python3, GPU or CPU version using following commands:

docker pull xueeinstein/rl-hub:gym
docker pull xueeinstein/rl-hub:gpu-gym
docker pull xueeinstein/rl-hub:gym-py3
docker pull xueeinstein/rl-hub:gpu-gym-py3

Roboschool

Select GPU or CPU version using following commands:

docker pull xueeinstein/rl-hub:roboschool-py3
docker pull xueeinstein/rl-hub:gpu-roboschool-py3

DeepMind Lab

Select GPU or CPU version using following commands (only support Python2):

docker pull xueeinstein/rl-hub:deepmindlab
docker pull xueeinstein/rl-hub:gpu-deepmindlab

Google Research Football

Select GPU or CPU version using following commands (only support Python3):

docker pull xueeinstein/rl-hub:football-py3
docker pull xueeinstein/rl-hub:gpu-football-py3

To render in docker, please set environment variables for mesa driver, for example:

MESA_GL_VERSION_OVERRIDE=3.2 MESA_GLSL_VERSION_OVERRIDE=150 python3 -m gfootball.play_game

Build Docker

To build docker manually, at first, you need to setup virtual environment to run assembler.py:

virtualenv -p /usr/bin/python3 venv
source venv/bin/activate
pip install -r requirements.txt

Then aassemble all of the Dockerfiles using:

python assembler.py -r dockerfiles --construct_dockerfiles

Build and upload roboschool (or gym, deempindlab, football) image using:

python assembler.py -r roboschool -b -u \
    --hub_repository DOCKER_HUB_USER/rl_hub \
    --hub_username DOCKER_HUB_USER \
    --hub_password DOCKER_HUB_PASSWD

Run Docker Container

By default, docker container starts with webVNC and x11vnc services, so you need to bind ports 80 and 5900. For example, to bind to host 80 and 5900 respectively, execute:

docker run --rm -it -p 80:80 -p 5900:5900 \
    -e VNC_PASSWORD="$PASSWD" xueeinstein/rl-hub:roboschool-py3

Note that $PASSWD is your own password to login the VNC.

rl-docker-hub's People

Contributors

dependabot[bot] avatar xueeinstein avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.