Code Monkey home page Code Monkey logo

alm's Introduction

Aligned Latent Models (ALMs)

Raj Ghugare, Homanga Bharadhwaj, Benjamin Eysenbach, Sergey Levine, and Ruslan Salakhutdinov.

Installation

Install MuJoCo version mjpro150 binaries from their website. Extract the downloaded mjpro150 directory into ~/.mujoco/. Download the free activation key from here and place it in ~/.mujoco/. Add the following lines in ~/.bashrc and then source it.

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/.mujoco/mjpro150/bin

If you are using the latest versions of MuJoCo (> 2.0), it is possible that it might produce inaccurate or zero contact forces in the Humanoid-v2 and Ant-v2 environments. See #2593, #1541 and #1636. If you encounter any errors, check the troubleshooting section of mujoco-py.

Create virtual environment named env_alm using command:

python3 -m venv env_alm

Install all the packages used to run the code using the requirements.txt file:

pip install -r requirements.txt

These instructions are for code that was tested to run on Ubuntu 22.04 with Python 3.10.4.

Training

To train an ALM agent on Humanoid-v2 environment:

python train.py id=Humanoid-v2

Log training and evaluation details using wandb:

python train.py id=Humanoid-v2 wandb_log=True

To perform the bias evaluation experiments from our paper:

python train.py id=Humanoid-v2 eval_bias=True

Acknowledgment

Our codebase has been build using/on top of the following codes. We thank the respective authors for their awesome contributions.

alm's People

Contributors

rajghugare19 avatar dependabot[bot] 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.