Giter Site home page Giter Site logo

trent-fellbootman / fish Goto Github PK

View Code? Open in Web Editor NEW

This project forked from siddhanthaldar/fish

0.0 0.0 0.0 90 KB

Code for Teach a Robot to FISH: Versatile Imitation from One Minute of Demonstrations

Home Page: https://fast-imitation.github.io/

License: MIT License

Python 100.00%

fish's Introduction

Teach a Robot to FISH: Versatile Imitation from One Minute of Demonstrations

[Arxiv] [Project page and videos]

This is a repository containing the code for the paper "Teach a Robot to FISH: Versatile Imitation from One Minute of Demonstrations".

main_figure

Instructions

  • Set up Environment

    conda env create -f conda_env.yml
    conda activate fish
    
  • Train BC agent - We provide three different commands for running the code on the Hello Stretch robot, Allegro Hand, and xArm.

    python train_hand.py agent=bc suite=hellogym suite/hellogym_task=dooropen num_demos=1
    
    python train_hand.py agent=bc suite=handgym suite/handgym_task=cardslide num_demos=1
    
    python train_robot.py agent=bc suite=robotgym suite/robotgym_task=flipbagel num_demos=2
    
  • Train FISH - We provide three different commands for running the code on the Hello Stretch robot, Allegro Hand, and xArm.

    python train_hand.py agent=potil_vinn_offset suite=hellogym suite/hellogym_task=dooropen load_bc=true num_demos=1
    
    python train_hand.py agent=potil_openloop_offset suite=handgym suite/handgym_task=cardslide load_bc=true num_demos=1
    
    python train_robot.py agent=potil_openloop_offset suite=robotgym suite/robotgym_task=flipbagel load_bc=true num_demos=2
    
  • Monitor results

tensorboard --logdir exp_local
  • To use pre-trained encoders, you must install MVP and R3M using instructions provided in the respective repositories.

Instructions to set up simulation environment

  • Install Mujoco based on the instructions given here.
  • Install the following libraries:
sudo apt update
sudo apt install libosmesa6-dev libgl1-mesa-glx libglfw3
  • Download the Meta-World benchmark suite and its demonstrations from here. Install the simulation environment using the following command -
    pip install -e /path/to/dir/metaworld
    
  • To run experiments on the Meta-World Benchmark, you may use the above commands with the suite name replaced by metaworld.

Bibtex

@article{haldar2023teach,
         title={Teach a Robot to FISH: Versatile Imitation from One Minute of Demonstrations},
         author={Haldar, Siddhant and Pari, Jyothish and Rai, Anant and Pinto, Lerrel},
         journal={arXiv preprint arXiv:2303.01497},
         year={2023}
}

fish's People

Contributors

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