Skip to content

Latest commit

 

History

History
executable file
·
66 lines (48 loc) · 2.05 KB

File metadata and controls

executable file
·
66 lines (48 loc) · 2.05 KB

SIMPLERENV Benchmark

SIMPLERENV is a benchmark for real-to-sim robot evaluation.

Environment Setup

We follow the RoboVLMs repository for environment setup. This setup is only for evaluation. The following steps are required to set up the environment:

Note: when use ray-tracing rendering, please make sure you have the nvoptix.so in /usr/share/nvidia

# Install dependencies
cd reference/RoboVLMs

# This will install the required environment
bash scripts/setup_simplerenv.sh

# Only for rendering environment.
bash scripts/setup_simplerenv_vla.sh

# Check if the environment is set up correctly
python eval/simplerenv/env_test.py

Dataset Preparation

# 1. process the dataset (bridge & google)
python tools/process/simplerenv_bridge.py
    --dataset_dir /path/to/bridge_orig/1.0.0 \
    --output_dir /path/to/save/processed_data/bridge

python tools/process/simplerenv_google.py \
  --dataset_dir /path/to/fractal20220817_data \
  --output_dir /path/to/output/simplerenv_google

# 2. extract the vq tokens, need to change the dataset & output path
bash scripts/tokenizer/extract_vq_emu3.sh

# 3. pickle generation for training
python tools/pickle_gen/pickle_generation_simplerenv_bridge.py

Model Training

FAST Tokenizer

You can fit the FAST tokenizer on the corresponding dataset. Also, you can adjust the scale in tokenizer for more fine-grained tokenization.

python tools/action_tokenizer/fit_fast.py

Train discrete diffusion model

bash scripts/simulator/simplerenv/train_simplerenv_bridge_video_bid_mi.sh

On the already post-trained world model, perform additional Bridge-specific post-training, and then fine-tune it to discrete diffusion model.

Model Evaluation

cd reference/RoboVLMs

bash scripts/bridge_univla_dis.bash ${CKPT_PATH}

# get results, modify the results path
python eval/simplerenv/get_results.py