Git Product home page Git Product logo

differentiable-spatial-planning-using-transformers's Introduction

Differentiable-Spatial-Planning-using-Transformers

PyTorch and PyTorch Lightning implementation of the Spatial Planning Transformers (SPT) from the 2021 ICML paper "Differentiable Spatial Planning using Transformers".

Use requirements.txt to set up venv

To generate the synthetic datasets for navigation planner with 100000/5000/5000 train validation test split for 15X15, 30X30 and 50X50 map sizes-

cd dataset\ generation/SPT\ Planner/
bash navigation.sh

To generate the synthetic datasets for manipulation planner with 100000/5000/5000 train validation test split for 18X18 and 36X36 map sizes -

cd dataset\ generation/SPT\ Planner/
bash manipulation.sh

You can also create your own custom datasets using the Synthetic_Data_Navigation.py and Synthetic_Data_Manipulation.py python scripts. An example is given below -

python Synthetic_Data_Navigation.py --size 10000 --M 100 --xfile trainx100 --yfile trainy100 --mode c --nthread 80
python Synthetic_Data_Manipulation.py --size 10000 --M 72 --P 90 --vis vistr72 --xfile trainx72 --yfile trainy72 --mode c --nthread 70

For more detailed information on what each optional argument does use -

python Synthetic_Data_Navigation.py --help
python Synthetic_Data_Manipulation.py --help 

Visualize a dataset created using --mode v. The visualization tool displays the first 10 data items from a choice of our created .npz x y file pair which consists of matrixes m,g and the ground truth for the navigation dataset. Visualizi

ng the manipulation dataset uses a different pickle file separately. An example on how to use the tool is given below-

python Synthetic_Data_Navigation.py --mode v --xfile trainx50 --yfile trainy50 --M 50
python Synthetic_Data_Manipulation.py --mode v ---vis vistr36 --M 18

alt text

A sample Manipulation Data Item

alt text

A sample Navigation Data Item

Find the model we used to train here on google colab. You can also find it in utils/dspt_planner.py. Manually specify the file location of the custom datasets and other parameters in the config dictionary if you wish to train the model locally or on custom datasets.

alt text

A sample predicted output vs ground truth map

output.mp4

Using Habitat Sim on the Gibson Dataset of pointclouds to generate image dataset for the resnet based navigation mapper module

differentiable-spatial-planning-using-transformers's People

Contributors

sirmisscriesalot avatar rohit-ranjan-tfj avatar anime-sh avatar

Stargazers

 avatar  avatar June avatar  avatar Sreyas Venkataraman avatar  avatar  avatar Shreya Bhatt avatar  avatar  avatar Shantanu Deshmukh avatar Yash Sirvi avatar Sammarth Kumar avatar Sarannya Bhattacharya avatar  avatar

Watchers

 avatar  avatar

Forkers

anime-sh yeranlee

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.