This directory contains the recommended LIBERO evaluation entrypoints.
Main files:
eval_libero.py: evaluate one LIBERO suite against one policy servereval_libero_all.sh: recommended parallel multi-suite evaluationrun_all_ckpts_libero_all.sh: batch evaluation for many checkpoints
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')"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.ptOutputs are written under:
<checkpoint_dir>/eval_libero_implicit_parallel/<checkpoint_name>/
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