dengyh16code / language_deformable

11 stars 0 forks source link

Learning Language-Conditioned Deformable Object Manipulation with Graph Dynamics

Yuhong Deng, Kai Mo, Chongkun Xia, Xueqian Wang

Tsinghua University

This repository is a PyTorch implementation of the paper "Learning Language-Conditioned Deformable Object Manipulation with Graph Dynamics".

Website | ArXiv

If you find this code useful in your research, please consider citing:

@misc{language_def,
      title={Learning Language-Conditioned Deformable Object Manipulation with Graph Dynamics}, 
      author={Kai Mo and Yuhong Deng and Chongkun Xia and Xueqian Wang},
      year={2023},
      eprint={2303.01310},
      archivePrefix={arXiv},
      primaryClass={cs.RO}
}

Table of Contents

Installation

This simulation environment is based on SoftGym. You can follow the instructions in SoftGym to setup the simulator.

  1. Clone this repository.

  2. install some packages.

    * pytorch, torchvision: `pip install torchvision` or `conda install torchvision -c pytorch`
    * torch-scatter, torch-sparse, torch-geometric (related to the version of pytorch)
    * einops: `pip install einops`
    * tqdm: `pip install tqdm`
    * yaml: `pip install PyYaml`
  3. Before you use the code, you should make sure the conda environment activated(conda activate language_def) and set up the paths appropriately:

    export PYFLEXROOT=${PWD}/PyFlex
    export PYTHONPATH=${PYFLEXROOT}/bindings/build:$PYTHONPATH
    export LD_LIBRARY_PATH=${PYFLEXROOT}/external/SDL2-2.0.4/lib/x64:$LD_LIBRARY_PATH
    export CLOTH3D_PATH=${PWD}/cloth3d

    The provided script prepare_1.0.sh includes these commands above.

Generate Data

Train

Evaluate

If you have any questions, please feel free to contact me via dengyh_work@outlook.com