Code Monkey home page Code Monkey logo

robotic-grasping's Introduction

Antipodal Robotic Grasping

Installation

  • Checkout the robotic grasping package
$ git clone https://github.com/anavuongdin/robotic-grasping.git
  • Create a virtual environment
$ conda create -n grasping python=3.9
  • Activate the virtual environment
$ conda activate grasping
  • Install the requirements
$ cd robotic-grasping
$ conda install pytorch==1.12.1 torchvision==0.13.1 torchaudio==0.12.1 cudatoolkit=11.3 -c pytorch
$ pip install -r requirements.txt

Weights

  • All weights are stored at weights/model_<dataset>.

Inference example

  • An atom example is shown in run_robotic_exp.py. To run this file:
$ python run_robotic_exp.py --weight weights/model_<dataset>

Output structure

L67 of the file run_robotic_exp.py prints the output structure. For simplicity, assume the image size is 224 x 224 (note, we can use any resolution we like). There are four components of output:

  • pos_pred: An array of [1, 224, 224], each number in the array (0/1) indicates that pixel is in the predicted grasp pose or not. Note that, it should be rounded to the nearest number (0, 1) as the prediction is usually in a continuous domain.
  • cos_pred/sin_pred: An array of [1, 224, 224], each number in the array indicates the angular of that pixel corresponding to the grasp pose.
  • width_pred: An array of [1, 224, 224], each number in the array indicates the width corresponding to the grasp pose.

For a clearer view of the output structure, please check the file utils/dataset_processing/grasp.py (L252-259). These lines show how to convert from grasp poses to output structure. I hope you can base on this information to revert the output structure to the grasp poses.

Please contact me if you have any questions. Thank you for your time. Best regards, An.

robotic-grasping's People

Contributors

anavuongdin avatar shirinj avatar skumra avatar nayoung-oh avatar

Forkers

peterminh227

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.