Coder Social home page Coder Social logo

dragen's Introduction

DRAGEN - Distributionally Robust Policy Learning via Adversarial Environment Generation

This repository includes codes for synthetic trainings of the two robotic tasks in the paper:

  1. Swinging up a pendulum with onboard vision
  2. Grasping realistic 2D/3D grasping

Although the codes for all experiments are included here, we only provide instructions for re-producing pendulum experiments here. Re-producing grasping experiments relies on several custom packages (SDF sampling, mesh processing, off-screen rendering) that requires careful installation; we are happy to provide instructions upon further request (but would be difficult to keep anonymity). We do provide the instructions for running grasping policy training in 2D setting (with PyBullet simulation).

Dependencies:

pip install with python=3.7/3.8: pybullet, Pillow, torch, torchvision, gym, psutil, python-mnist, h5py, pyyaml, perlin_noise (pendulum baseline); shapely, trimesh (grasping)
pip install -e . to install locally: rlpyt folder included in the supplementary materials, which is a custom fork of rlpyt library for SAC training. Running pendulum experiments requires a GPU.

File naming:

ae is for DRAGEN training; dr is for baselines (noise, domain randomization, etc).

Running pendulum experiments:

  1. (For Digit) install and download MNIST dataset here and download USPS dataset here; (for Urban) download Apollo Synthetic dataset here.
  2. Generate Landmark/Digit/Urban images by running generate_landmark.py and process_mnist/usps/apollo.py.
  3. Specify dataset paths in provided config files.
  4. Run python run_pen_ae.py {config filename}, or python run_pen_dr.py {config filename} for baselines.

Running grasping policy training in 2D setting:

  1. Generate training and testing objects by running generate_2d_shapes.py.
  2. Specify object path in train_grasp.py and run it.

dragen's People

Contributors

allenzren avatar

Stargazers

Ran Zhu avatar Rohan Banerjee avatar Vittorio Giammarino avatar  avatar Sushant Veer avatar  avatar

Watchers

Vincent Pacelli avatar James Cloos avatar Sushant Veer avatar Ryan Brott avatar Anoopkumar Sonar avatar Alec Farid avatar  avatar Shri D avatar  avatar

dragen's Issues

Recommended way to install Python requirements

Hello, is there a recommended way to install the Python package requirements for this repo? I've tried a lot of combinations with conda but haven't been able to get all of the packages to install without incompatibilities. Specifically, is there a particular PyTorch/CUDA version that works well for this repo? Thanks!

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.