AutoEval: 在现实世界中对通用机器人操作策略的自主评估 | CoRL 2025
Code Release for AutoEval: Autonomous Evaluation of Generalist Robot Manipulation Policies in the Real World. Check out auto-eval.github.io to access the open-access evaluation dashboard on WidowX robots and for instructions of how to get your own policies evaluated by AutoEval. You can host your policy as a server and pass along the IP and port to the dashboard and submit an evaluation job in minutes.
The website contains all the details on submitting jobs to our Bridge-AutoEval stations with four different tasks. The instructions below are for setting up a new AutoEval station locally for a new task, and hosting a dashboard for policy submission.
Create your conda environment:
conda create -n autoeval python=3.10 -y
conda activate autoeval
pip install -r requirements.txt
pip install -e .You will also need the following dependencies:
manipulator_gym for the robot environment: https://github.com/rail-berkeley/manipulator_gymagentlace for distributed policy and robot environments: https://github.com/youliangtan/agentlacerobot_eval_logger for logging: https://github.com/zhouzypaul/robot_eval_logger. Please use the auto_eval branch instead of main.Other optional packages:
jaxrl_m (Optional, for jaxrl goal-conditioned policy): https://github.com/rail-berkeley/soar/tree/main/model_trainingsusie (Optional, for SuSIE/SOAR policy): https://github.com/kvablack/susiesimpler_env (Optional, for sim evaluation in SIMPLER): https://github.com/youliangtan/SimplerEnvWe use a slack bot to send automated messages to a slack channel when human intervention is required in AutoEval. To use the slack bot, you need to create a slack app (see here for instructions), give in write permission to the channel, and set environment variables:
export SLACK_BOT_TOKEN= # e.g. xoxb-...
export SLACK_CHANNEL_ID= # e.g. C06...If you don't want to use the slack bot, you can use the --no_slack_bot flag in run_eval.py, which creates a dummy bot that prints out messages in the terminal instead of sending them to slack.
We use manipulator_gym and agentlace to distribute the robot gym-like environment and policy execution (as illustrated below). The robot environment is run on a robot server machine, which can be a lightweight machine (e.g. Intel NUC) that only needs to run ROS and simple python scripts.
graph LR
A[Robot Driver] B[Manipulator_gym server]
B C[Gym Env Policy]# 1. start ros services
roslaunch interbotix_xsarm_control xsarm_control.launch robot_model:=wx250s use_rvix:=false
# 2. start robot server
cd manipulator_gym
python3 manipulator_server.py --widowx --cam_ids 0You would also need to install the interbotix_ros_arms package for the WidowX robot.See manipulator_gym's descriptions for more details.
Below we describe the main evaluation script and the two ways to run policies: (1) locally (where this auto_eval package is run) or (2) remotely with a policy server-client setup.
policy.py. OpenWebClient is a generic policy client that can be used for any policy server that conforms to the AutoEval API.# is the IP address of the robot machine that runs the robot environment
# make sure to edit `scripts/configs/eval_config.py` to ensure the task is set up correctly and the policy client type is correct.
python run_eval.py --robot_ip --config scripts/configs/eval_config.py:open_drawer --policy_server_ip --policy_server_port --human_eval# is the IP address of the robot machine that runs the robot environment
# make sure to edit `scripts/configs/eval_config.py` to ensure the task is set up correctly and the policy client type is correct.
python run_eval.py --robot_ip --config scripts/configs/eval_config.py:open_drawer --policy_server_ip --policy_server_port You can also use the bash scripts under scripts/launch_*.sh to run evaluations for the five tasks defined in the paper.
We learn a success detector by fine-tuning the Paligemma VLM. We collect images and fine-tune the VLM in the forms of VQA questions (e.g. "Is the drawer open?") and train the model to output yes/no.
You must be authenticated to huggingface to use paligemma. To authenticate, check out the top of the page here. Then, run
huggingface-cli login# the default option uses keyboard to control the robot (key bindings will be printed out in the terminal)
# input keyboard options in the visualizer window, not the terminal
# you can also use `--use_spacemouse` to tele-operate the robot. Tested only with WidowX.
python scripts/teleop.py --ip --log_type pkl --log_dir ~/datasets/record-open_drawer.pkl
python scripts/teleop.py --ip --log_type pkl --log_dir ~/datasets/record-close_drawer.pklworking_dir. For example, for --dataset_type drawer, it will look for record-open_drawer.pkl and record-close_drawer.pkl. See script/ft_paligemma.py for details.python scripts/ft_paligemma.py --working_dir ~/datasets/ --dataset_type drawer# evaluate the fine-tuned checkpoint on held-out test set
python scripts/ft_paligemma.py --working_dir ~/datasets --model_id ~/datasets/checkpoints/... --eval
# teleop the robot and query the model to see where it succeeds/fails
# you can collect more images on where the classifier fails
python scripts/teleop.py --ip --pg ~/datasets/checkpoints/... # use p option in the visualizer window…To get a robust reset policy, we collect a small number of demos (about 50) and fine-tune OpenVLA.
# default option is keyboard teleop (key bindings will be printed out in the terminal, use them in the visualizer window)
# use --use_spacemouse to teleoperate with spacemouse. Tested only with WidowX.
python scripts/teleop.py --ip --log_dir ~/datasets/drawer-scene-demos --log_lang_text "open the drawer"You can also collect demonstrations with a VR headset as described by the BridgeData V2 paper. The default data collection code will save the demos in a raw format, and you would need to convert them to RLDS format with dlimp to make them readable with the OpenVLA dataloader. In dlimp, set TRAIN_PROPORTION=0.99 and DEPTH=2, and make sure the manually override the language instructions of these demos.
cd dlimp/rlds_converters/bridge_dataset
CUDA_VISIBLE_DEVICES="" tfds build --manual_dir ~/datasets/drawer-scene-demos~/checkpoints/auto-eval-openvla-drawer
|_ checkpoints # full merged model checkpoints
|_ adapter_checkpoints # adapter checkpoints
|_ bridge_orig
|_ 1.0.0
|_ dataset_info.json
|_ features.json
|_ expert_demos-train.tfrecord....Move the dataset to this new directory:
mv ~/tensorflow_datasets/bridge_dataset/ ~/checkpoints/auto-eval-openvla-drawer/bridge_origWe will treat these expert demos as the bridge_orig dataset, so we don't need to register the new dataset in the OpenVLA repo.
To start training on a single node:
torchrun \
--standalone \
--nnodes 1 \
--nproc-per-node 1 \
scripts/ft_openvla.py \
--batch_size 32 \
--shuffle_buffer_size 1000 \
--lora_rank 64 \
--data_root_dir ~/checkpoints/auto-eval-openvla-drawer \
--dataset_name bridge_orig \
--run_root_dir ~/checkpoints/auto-eval-openvla-drawer/checkpoints \
--adapter_tmp_dir ~/checkpoints/auto-eval-openvla-drawer/adapter_checkpoints \
--use_quantization true \
--save_steps 1000 \
--max_steps 3000 \
--wandb_project auto-eval-openvla-ft \
--wandb_entity # Option 1: Use the base OpenVLA model and pass in the LoRA adapters and the new dataset statistics json.
# this will load the base OpenVLA model and merge in the local LoRA adapter with peft
from auto_eval.robot.policy import OpenVLAPolicy
policy = OpenVLAPolicy(
lora_adapter_dir="~/checkpoints/auto-eval-openvla-drawer/adapter_checkpoints",
dataset_stats_path="~/checkpoints/auto-eval-openvla-drawer/bridge_orig/1.0.0/dataset_info.json",
)# Option 2: Host an OpenVLA server with the merged model weights under `checkpoints`.
# this will load the merged model weights from the `checkpoints` directory
python auto_eval/policy_server/openvla_server.py --openvla_path ~/checkpoints/auto-eval-openvla-drawer/checkpointsYou can run the evaluation with run_eval.py.
For some more structured environments, we also support using scripted policies as the reset policy. To script a policy, we record a tele-operated demonstration of the policy and replay it for resetting the environment.
To record a tele-operated demonstration, you can use the teleop.py script:
python scripts/teleop.py --ip --log_type pkl --log_actions_only --log_dir scripted_policy.pklThen, use auto_eval/robot/policy.py:RecordedPolicy to replay the demonstration:
from auto_eval.robot.policy import RecordedPolicy
policy = RecordedPolicy(
policy_save_path="scripted_policy.pkl"
)In the officially hosted AutoEval, we use the server-client setup to evaluate policies: users must host their policy as remote servers, and AutoEval will connect to these servers with OpenWebClient to retrieve policy outputs.
When setting up a new AutoEval station, you have two options of running policies:
暂无开放 Issues,或尚未同步最近议题。