jonzamora / graph-inverse-rl

Codebase for "Graph Inverse Reinforcement Learning from Diverse Videos" by Kumar et al. (CoRL 2022)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Graph Inverse Reinforcement Learning

Original PyTorch implementation of GraphIRL from

Graph Inverse Reinforcement Learning from Diverse Videos by

Sateesh Kumar, Jonathan Zamora*, Nicklas Hansen*, Rishabh Jangir, Xiaolong Wang

Conference on Robot Learning (CoRL), 2022 (Oral, Top 6.5%)



[Paper][Website][Video][Dataset]

Method

GraphIRL is a self-supervised method for learning a visually invariant reward function directly from a set of diverse third-person video demonstrations via a graph abstraction. Our framework builds an object-centric graph abstraction from video demonstrations and then learns an embedding space that captures task progression by exploiting the temporal cue in the videos. This embedding space is then used to construct a domain invariant and embodiment invariant reward function which can be used to train any standard reinforcement learning algorithm.

Citation

If you use our method or code in your research, please consider citing the paper as follows:

@article{kumar2022inverse,
      title={Graph Inverse Reinforcement Learning from Diverse Videos},
      author={Kumar, Sateesh and Zamora, Jonathan and Hansen, Nicklas and Jangir, Rishabh and Wang, Xiaolong},
      journal={arXiv preprint arXiv:2207.14299},
      year={2022}
}

Instructions

We assume you have installed MuJoCo on your machine. You can install dependencies using conda:

conda env create -f environment.yaml
conda activate graphirl

You can use trained models to extract the reward and train a policy by running:

bash scripts/run_${Task_Name} /path/to/trained_model

Dataset

The dataset for GraphIRL can be found in this Google Drive Folder. We have also released the trained reward models for Reach, Push and Peg in Box here. We include a script for downloading all data with the gdown package, though feel free to directly download the files from our drive folder if you run into issues with the script.

License & Acknowledgements

GraphIRL is licensed under the MIT license. MuJoCo is licensed under the Apache 2.0 license. We thank the XIRL authors for open-sourcing their codebase to the community, our work is built on top of their engineering efforts.

About

Codebase for "Graph Inverse Reinforcement Learning from Diverse Videos" by Kumar et al. (CoRL 2022)

License:MIT License


Languages

Language:Python 99.3%Language:Shell 0.7%