GithubHelp home page GithubHelp logo

salat's Introduction

SALaT

Introduction

We created a model to meet two challenges in robot Learning from Demonstrations (LfD): multiple modes and extrapolation.

The model is called Shift Attention Latent Transformation (SALaT).

It consists of latent transformations and an attention model.

We use real valued non volume-preserving mapping (RealNVP)[1] to model the mappings and gated recurrent units for the attention model.

The code provides supplementary materials for the paper "Learning to Shift Attention for Motion Generation"

Setup

The code requires tensorflow 2.2 or later. (Note: Because of recent update of tensorflow-probability, the newest tensorflow-probability (0.12) requires tensorflow 2.4. We update the setup.py with tensorflow-probability==0.11)

Install the tensorflow environment (https://www.tensorflow.org/install/pip) by following steps:

$ python3 -m venv --system-site-packages ./venv

$ source ./venv/bin/activate

(venv) $ pip install --upgrade pip

(venv) $ pip install --upgrade tensorflow

For setting up other necessary packages, run in the project folder:

(venv) $ python setup.py install

Experiments

The repo contains the simulated experiments described in Sec.IV of the paper.

With the pre-trained models, we can reproduce the result listed in TABLE 1 of the paper.

For the docker experiment, run: (venv) $ python testSALATOnDocker.py

For the docker-obstacle experiment, run: (venv) $ python testSALATOnDockerObs.py

For the docker-obstacle-tunnel experiment, run: (venv) $ python testSALATOnDockerObsTunnel.py

References

[1] Laurent Dinh, Jascha Sohl-Dickstein, Samy Bengio. "Density estimation using Real NVP" (https://arxiv.org/abs/1605.08803)

salat's People

Contributors

tczhouyou avatar zhouyou-kit 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.