Coder Social home page Coder Social logo

mobmonrob / vigor Goto Github PK

View Code? Open in Web Editor NEW

This project forked from niklasfreymuth/vigor

0.0 0.0 0.0 10.62 MB

Code for the paper "Inferring Versatile Behavior from Demonstrations by Matching Geometric Descriptors" published at CoRL2022

License: MIT License

Shell 0.17% Python 99.83%

vigor's Introduction

Inferring Versatile Behavior from Demonstrations by Matching Geometric Descriptors

Install

We highly recommend using a conda environment before installing the requirements for this repository.

Requirements can be installed with pip install -r requirements.txt

Code Structure

The Code is written in pure Python. The general setup is as follows:

  • "Baselines" contains state-action based environments and different imitation learning baselines for them
  • "VIGOR" contains VIGOR and other trajectory based baselines.
    • All experiments use cw2 for distributing and recording purposes.

      • An example without cw2 is given in 'VIGOR/quickstart.py'.
    • The configs directory contains .yaml files that specify individual experiments. , in which individual sections describe the parameters for a given cw2 run. The default.yamlfile contains a short description of each parameter. A run can be called with given parameters using the command python main.py configs/config_file.yaml -e run_name -o

      • To run an experiment on a slurm-based cluster, simply append a -s to the above, i.e., python main.py configs/configs.yaml -e experiment -o -s --nocodecopy
      • We provide an overview of the experiments of the paper in the experiments.sh file. Note that the experiments contain multiple seeds, so they might take a while to run. You can adapt the corresponding .yaml files accordingly, e.g., to run a single seed.
    • Experiments will be automatically recorded and logged in "/VIGOR/experiments". Options for this can be specified via the parameters. Recordings include visualizations for the given tasks, model and reward parameters and graphs for different performance metrics over time. The used config as well as the logged statements are also recorded for convenience

    • Additionally, all metrics can be tracked with WandB

Requirements Python

Tested with Python 3.8.12. on Windows and Ubuntu. A list of all required packages, including version numbers can be found in req.txt and can be installed with

vigor's People

Contributors

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