Coder Social home page Coder Social logo

grasp-transformer's Introduction

When Transformer Meets Robotic Grasping: Exploits Context for Efficient Grasping Detection

PyTorch implementation of paper "When Transformer Meets Robotic Grasping: Exploits Context for Efficient Grasping Detection"

Visualization of the architecture


This code was developed with Python 3.6 on Ubuntu 16.04. Python requirements can installed by:

pip install -r requirements.txt

Datasets

Currently, both the Cornell Grasping Dataset, Jacquard Dataset , and GraspNet 1Billion are supported.

Cornell Grasping Dataset

  1. Download the and extract Cornell Grasping Dataset.

Jacquard Dataset

  1. Download and extract the Jacquard Dataset.

GraspNet 1Billion dataset

  1. The dataset can be downloaded here.

  2. Install graspnetAPI following here.

    pip install graspnetAPI
  3. We use the setting in here

Training

Training is done by the main.py script.

Some basic examples:

# Train  on Cornell Dataset
python main.py   --dataset cornell

# k-fold training
python main_k_fold.py  --dataset cornell 

#  GraspNet 1
python main_grasp_1b.py 

Trained models are saved in output/models by default, with the validation score appended.

Visualize

Some basic examples:

# visulaize grasp rectangles
python visualise_grasp_rectangle.py   --network your network address

# visulaize heatmaps
python visulaize_heatmaps.py  --network your network address

Running on a Robot

Our ROS implementation for running the grasping system see https://github.com/USTC-ICR/SimGrasp/tree/main/SimGrasp.

The original implementation for running experiments on a Kinva Mico arm can be found in the repository https://github.com/dougsm/ggcnn_kinova_grasping.

Acknowledgement

Code heavily inspired and modified from https://github.com/dougsm/ggcnn

If you find this helpful, please cite

@ARTICLE{9810182,
  author={Wang, Shaochen and Zhou, Zhangli and Kan, Zhen},
  journal={IEEE Robotics and Automation Letters}, 
  title={When Transformer Meets Robotic Grasping: Exploits Context for Efficient Grasp Detection}, 
  year={2022},
  volume={},
  number={},
  pages={1-8},
  doi={10.1109/LRA.2022.3187261}}

grasp-transformer's People

Contributors

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