Giter VIP home page Giter VIP logo

nlpr's Introduction

PixL2R

This is the code for our CoRL 2020 paper PixL2R: Guiding Reinforcement Learning Using Natural Language by Mapping Pixels to Rewards

Setup:

  1. Create and activate conda environment using the environment.yml file:
conda env create -f environment.yml
conda activate pixl2r
  1. Install dependencies for metaworld, by running the following command in metaworld/ directory:
pip install -e .
  1. Download and extract preprocessed data, by running the following commands in PixL2R directory:
wget https://www.cs.utexas.edu/users/ml/PixL2R/data.zip
unzip data.zip -d data/

(The downloaded file is ~3GB; the extracted files require 50GB of disk space.)

Running Experiments

  1. Supervised learning of PixL2R model: Run the following command in src/supervised
python model.py --save-path=<save-path>
  1. Policy training without language-based rewards: Run the following command in src/rl
python train_policy.py --obj-id=6 --env-id=1 --reward-type=<sparse|dense>
  1. Policy training with language-based rewards: Pass the PixL2R model filepath (output of step 1) and the description id to use.
python train_policy.py --obj-id=6 --env-id=1 --reward-type=<sparse|dense> --model-file=/path/to/PixL2R/model --descr-id=<0|1|2>

Data:

The raw videos can be downloaded from the following link: https://www.cs.utexas.edu/users/ml/PixL2R/videos.zip
The videos were generated using the script src/rl/generate_videos.py.

Acknowledgements

The codebase is based on the following repositories:

  1. https://github.com/rlworkgroup/metaworld
  2. https://github.com/nikhilbarhate99/PPO-PyTorch

NLPR

nlpr's People

Contributors

soumyarani avatar

Watchers

James Cloos avatar  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.