Giter Site home page Giter Site logo

calamari's Introduction

CALAMARI

Code style: black CodeQL

This is a github repository of a CALAMARI: Contact-Aware and Language conditioned spatial Action MApping for contact-RIch manipulation (CoRL 2023).

We trained with the GPU A6000 and ran inference on the RTX 3080 and RTX 2070.

1. install project and Dependencies

conda create -n calamari python=3.8
conda activate calamari
conda install pytorch==1.7.0 torchvision==0.8.0 torchaudio==0.7.0 cudatoolkit=11.0 -c pytorch
conda env create -f environment.yml

We utilize heatmap extraction from Semantic Abstraction (Huy et al., CoRL 2022)."

git submodule add -f [email protected]:yswi/semantic-abstraction.git calamari/semantic_abstraction

2. Install Project

pip install -e .

3. Download Dataset

  1. Download the dataset.zip from the link: https://www.dropbox.com/scl/fo/6w3p35agbu89ojp1mux5t/h?rlkey=0dxqegorjzo45tlzzy06y0w2z&dl=0

  2. Make 'dataset' folder and upzip the dataset.

── calamari
│   ├── calamari
│   ├── dataset
│   │   │── wipe
│   │   │── sweep
│   │   │── push
│   ├── script
...

4. Train Policy from Scratch

python script/train.py --task <TASK NAME> --logdir <FOLDER NAME> --gpu_id <GPU IDX>

Note: We use A6000 (48G) for training. You can decrease the batch size in config_multi_conv.py to match your GPU capacity, but a performance drop should be expected.

(optionally) Train with Custom Data.

Generate heatmaps of the custom data.

 python script/dataprocessing/generate_heatmap.py --task <TASK>

Notes

This repository trains the policy based on the RLbench dataset. RLbench code for inference and data collection will be released soon.

calamari's People

Contributors

yswi avatar

Stargazers

Dionis Totsila avatar

Watchers

Mark Van der Merwe avatar Nima Fazeli 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.