Code Monkey home page Code Monkey logo

cvrl's Introduction

CVRL

This repo contains the Tensorflow 2.0 implementation for the CoRL 2020 paper

Xiao Ma, Siwei Chen, David Hsu, Wee Sun Lee: Contrastive Variational Model-Based Reinforcement Learning for Complex Observations. In Proc. 4th Conference on Robot Learning. [paper]

For visualzations, please visit our project page. Our talk is publicly available here.

Setup

pip3 install --user tensorflow-gpu==2.2.0
pip3 install --user tensorflow_probability
pip3 install --user git+git://github.com/deepmind/dm_control.git
pip3 install --user pandas
pip3 install --user matplotlib

You will need the Mujoco license to run the Mujoco tasks.

To play with the natural Mujoco tasks, download the natural Mujoco background dataset from here and put it at the root of this folder.

Train the agent:

python3 cvrl.py --logdir ./logdir/dmc_walker_walk/natural_walker_walk/1 --task dmc_walker_walk --natural True --obs_model contrastive --use_dreamer True --use_sac True --trajectory_opt True

To view the training logs and execution videos, please use

tensorboard --logdir ./logdir --bind_all

Cite CVRL

If you find this repo useful, please consider citing our paper

@inproceedings{
    ma2020contrastive,
    title={Contrastive Variational Model-Based Reinforcement Learning for Complex Observations},
    author={Xiao Ma and Siwei Chen and David Hsu and Wee Sun Lee},
    booktitle={Proceedings of the 4th Conference on Robot Learning},
    year={2020}
}

Reference

The code borrows heavily from Danijar Hafner's Dreamer implementation.

cvrl's People

Contributors

yusufma03 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.