This is the completion of google's rt-1 project code and can run directly.
You can view the google source code here: robotics_transformer
下载language-table数据集,详见下文Downloading the dataset,下载Universal Sentence Encoder模型
通过language_table_data_reconstruction文件夹下代码对instrucion进行编码,原数据集为UTF-8编码格式
运行前需要解决tensorflow
版本兼容性问题,参见我的回答contrib_answer,运行distribute_train.py,保存模型
使用language_table文件夹下代码进行测试,仿真环境详见language_table,整体流程如上图所示
https://github.com/hyy0613/RT-1/raw/main/assets/75081077/a5d851f6-11d9-4d22-8535-e6897edccaa9
RT-1 dataset: robotics_transformer_dataset
Language-table dataset: language_table_dataset
Both datasets are in RLDS format
Clone the repo
Before running, you need to resolve the tensorflow version compatibility issues in tensor2robot, see my answer contrib_answer
git clone https://github.com/YiyangHuang-work/RT-1
# clone the repo rt-1 used
cd RT-1
git clone https://github.com/google-research/tensor2robot
# Install protoc and compile the protobufs.
pip install protobuf
cd tensor2robot/proto
protoc -I=./ --python_out=`pwd` tensor2robot/t2r.proto
# Optional: Create a conda env,you can also follow google's instructions for configuration
cd ../..
conda env create -f RT-1/rt_environment.yaml
# Run distributed code
python -m robotics_transformer.distribute_train
Checkpoints are included in trained_checkpoints/ folder for three models:
They are tensorflow SavedModel files. Instructions on usage can be found here
The current repository includes an initial set of libraries for early adoption. More components may come in future releases.
The Robotics Transformer library is licensed under the terms of the Apache license.
Special thanks to these people for their help in this project:kpertsch
The project will continue to improve and update, if you have any questions about the use of this project or suggestions for modification, please contact us by email huangyiyang24@mails.ucas.ac.cn