Skip to content

AlbertTan404/pytorch-open-x-embodiment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Data pre-processing and training code on Open-X-Embodiment for PyTorch users.

Dataset access:

Refer to the rt-x official repo

Usages:

With the repo, you can

  • Convert tfds to h5 file with convert_tfds_to_h5.py # converting large datasets takes MASSIVE disk space. (up to 8 TB for kuka)

  • Visualize the datasets with the processed h5 file with check_data.ipynb.

  • Extract raw images with move_h5_image_to_png.py.

  • Extract image and language features for most efficient policy model training with extract_language_features.py and extract_image_features.py. (we use R3M and CLIP, and it's easy for you to customize it)

  • Normalize actions according to the statistics for unified training with normalize_actoins.py and rt-x_data_cfg.yaml.

and

  • Customize you model and directly train it!

Features:

  • For extracting features, we use multi-processing among datasets for better efficiency.
  • For converting tfds to hdf5 files, we also support parallel processing by setting the --index option. # default turned off

Environment

In your python environment:

  • install basic libraries
pip install tensorflow tensorflow-datasets
conda install h5py yaml jupyter tqdm omegaconf gdown matplotlib
  • install pytorch (version not strictly restricted)
conda install pytorch==1.13.1 torchvision==0.14.1 torchaudio==0.13.1 pytorch-cuda=11.6 -c pytorch -c nvidia
pip install lightning transformers diffusers
  • optional: install clip and r3m
pip install git+https://github.com/openai/CLIP.git
pip install git+https://github.com/facebookresearch/r3m.git

About

Data pre-processing and training code on Open-X-Embodiment with pytorch

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published