Skip to content

Latest commit

 

History

History
61 lines (44 loc) · 1.78 KB

File metadata and controls

61 lines (44 loc) · 1.78 KB

LIBERO

This directory contains the recommended LIBERO evaluation entrypoints.

Main files:

  • eval_libero.py: evaluate one LIBERO suite against one policy server
  • eval_libero_all.sh: recommended parallel multi-suite evaluation
  • run_all_ckpts_libero_all.sh: batch evaluation for many checkpoints

Prerequisites

You usually need:

  • one trained checkpoint
  • one LaRA-VLA Python environment (the code package namespace is laravla)
  • one LIBERO Python environment
  • LIBERO_HOME

To set up the environment, please first follow the official LIBERO repository to install the base LIBERO environment.

Common issue: LIBERO defaults to Python 3.8, but the syntax updates between 3.8 and 3.10 are substantial. We verified that using Python 3.10 avoids many issues.

Afterwards, inside the LIBERO environment, install the following dependencies:

pip install tyro matplotlib mediapy websockets msgpack
pip install numpy==1.24.4

Useful checks:

python -c "from laravla.training.train import main; print('OK')"
python -c "from libero.libero import benchmark; print('OK')"

Recommended: Parallel Evaluation

LARAVLA_PYTHON=/path/to/laravla/python \
LIBERO_PYTHON=/path/to/libero/python \
LIBERO_HOME=/path/to/LIBERO \
CUDA_VISIBLE_DEVICES=0,1,2,3 \
TASK_SUITES=libero_goal,libero_spatial,libero_object,libero_10 \
bash examples/LIBERO/eval_libero_all.sh /abs/path/to/checkpoint.pt

Outputs are written under:

<checkpoint_dir>/eval_libero_implicit_parallel/<checkpoint_name>/

Batch Evaluation for Many Checkpoints

LARAVLA_PYTHON=/path/to/laravla/python \
LIBERO_PYTHON=/path/to/libero/python \
LIBERO_HOME=/path/to/LIBERO \
bash examples/LIBERO/run_all_ckpts_libero_all.sh /abs/path/to/checkpoints