Giter Site home page Giter Site logo

jonzamora / dmc2gymnasium Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 20 KB

Farama Gymnasium API Wrapper for the DeepMind Control Suite and DeepMind Robot Manipulation Tasks

License: MIT License

Python 100.00%
deepmind deepmind-control-suite dm-control gymnasium gymnasium-robotics reinforcement-learning

dmc2gymnasium's Introduction

dmc2gymnasium

This is a lightweight wrapper around the DeepMind Control Suite and DeepMind Robot Manipulation Tasks, and provides the standard Farama Gymnasium API interface to users.

Farama Gymnasium is the continuation of OpenAI Gym, and this repository will provide users with a simple, up-to-date, and easy-to-install package for their DM Control Suite experiments.

For a complete list of tasks, see the dm_control paper here and check out Part II of the Paper.

Installation

git clone https://github.com/jonzamora/dmc2gymnasium
cd dmc2gymnasium
pip install -e .

Usage

A complete usage of the DMCWrapper is as follows:

from dmc2gymnasium import DMCWrapper

env = DMCWrapper(domain_name="manipulation", task_name="place_brick_features")
observation, info = env.reset(seed=42)

for step in range(1000):
    action = env.action_space.sample()
    observation, reward, terminated, truncated, info = env.step(action)

    if terminated or truncated:
        observation, info = env.reset(seed=42)

env.close()

If you'd like to test this out, simply run the following:

python test.py

Output will look like this in the video directory:

demo.mp4

Notes

I've mostly designed this for my own experiments, but feel free to use this if it applies to your work!

If you have a feature request, or encounter any problems, please make an Issue here and i'm happy to discuss further.

References

This work is largely inspired by the following repos:

  • imgeorgiev/dmc2gymnasium [Link]
  • denisyarats/dmc2gym [Link]

dmc2gymnasium's People

Contributors

jonzamora avatar

Stargazers

 avatar

Watchers

 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.