Git Product home page Git Product logo

dm-control-starter-kit's Introduction

Installing dm_control and tonic_rl

dm_control

Most of the installation procedure for dm_control is listed in the official repository here. However some key points to take care of are:

  1. Extract Mujoco pro in ~/.mujoco/ directory. The key mjkey.txt you with get for Mujoco Pro 2.0 needs to be placed in the bin directory to run Mujoco independently. A sanity check that Mujoco is installed correctly can be done by ./simulate ../model/humanoid.xml command (Linux and MacOS) by going into the bin directory. However dm_control requires the key in the .mujoco directory so place it there too.

  2. dm_control can then be installed by pip as stated in the repository or by cloning the repository and installing that by pip intall -e.

  3. For rendering although the dependencies listed for linux are libglfw3 libglew2.0 these might not work in that case use sudo apt-get install libglfw-dev libglew-dev. These substitute dependencies work out.

  4. To test out dm_control try running the code testdm.py. If everything is installed correctly it will print out the reward, discount and observation of an episode for a simple cartpole task. Unlike gym after a step these three things are returned as a timestep object form which they can be accessed.

tonic_rl

For training tasks in dm_control I recommend the tonic RL library that can be found here. The installation is pretty straight forward. The library provides with 2 variants of RL algorithms in Pytorch as well as tensorflow so it can be modified easily for research. Regarding how to train go to training folder of the repository.

  • For how to train a control suite environment go to .\train\ and for making a custom environment refer to .\create_env\

dm-control-starter-kit's People

Contributors

taapasx28 avatar

Watchers

James Cloos 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.