Code Monkey home page Code Monkey logo

masked-trainable-embeddings's Introduction

Masked Trainable Embeddings (MTE)

MTE_Poster

Repo Structure

  • imitate_episodes.py Train and Evaluate ACT
  • policy.py An adaptor for ACT policy
  • detr Model definitions of ACT, modified from DETR
  • constants.py Constants shared across files
  • utils.py Helper functions
  • rl_bench Data generation and loader

Installation

- Install ACT
    conda create -n aloha python=3.8.10
    conda activate aloha
    pip install torchvision
    pip install torch
    pip install pyquaternion
    pip install pyyaml
    pip install rospkg
    pip install pexpect
    pip install mujoco
    pip install dm_control
    pip install opencv-python
    pip install matplotlib
    pip install einops
    pip install packaging
    pip install h5py
    cd act/detr && pip install -e .

- Install RLBench in the same env
    https://github.com/stepjam/RLBench

Simulated experiments

  • Add DATA_DIR in constants file: this is where the demonstrations are stored
  • To add language conditioning, add --add_task_ind to the arguments for both training and eval
  • To evaluate the policy, run the same command but add --eval. This loads the best validation checkpoint.
  • To specify the the model checkpoints for rollout, use --ckpt_names in the argument followed by the checkpoint names
  • To enable temporal ensembling, add flag --temporal_agg.
  • Videos will be saved to <ckpt_dir> for each rollout.
  • You can also add --onscreen_render to see real-time rendering during evaluation.

masked-trainable-embeddings's People

Contributors

prabinrath avatar omkarpatil18 avatar sahanant avatar

Watchers

 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.