kandapagari / robotics_transformer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Robotics Transformer

This is not an officially supported Google product. changed by @kandapagari

This repository is a collection code files and artifacts for running Robotics Transformer or RT-1.

Features

  • Film efficient net based image tokenizer backbone
  • Token learner based compression of input tokens
  • Transformer for end to end robotic control
  • Testing utilities

Getting Started

Installation

Clone the repo

git clone --recursive https://github.com/kandapagari/robotics_transformer.git
conda create -n rt python=3.11 -y
cd robotics_transformer
pip install -r requirements.txt
cd tensor2robot/proto
protoc -I=./ --python_out=`pwd` t2r.proto
cd ../..
# To add cudnn path
CUDNN_PATH=$(dirname $(python -c "import nvidia.cudnn;print(nvidia.cudnn.__file__)"))
export LD_LIBRARY_PATH=$CUDNN_PATH/lib:$CONDA_PREFIX/lib/:$LD_LIBRARY_PATH
# Test
python -m robotics_transformer.tokenizers.action_tokenizer_test

if git ls is available use the following to get the correct weights

git lfs fetch --all
git lfs pull

Running Tests

To run RT-1 tests, you can clone the git repo and run bazel:

git clone --recursive https://github.com/kandapagari/robotics_transformer.git
cd robotics_transformer
bazel test ...

Using trained checkpoints

Checkpoints are included in trained_checkpoints/ folder for three models:

  1. RT-1 trained on 700 tasks
  2. RT-1 jointly trained on EDR and Kuka data
  3. RT-1 jointly trained on sim and real data

They are tensorflow SavedModel files. Instructions on usage can be found here

Future Releases

The current repository includes an initial set of libraries for early adoption. More components may come in future releases.

License

The Robotics Transformer library is licensed under the terms of the Apache license.

About

License:Apache License 2.0


Languages

Language:Python 100.0%