百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
A

auto_eval

> 编程语言
开源

AutoEval: 在现实世界中对通用机器人操作策略的自主评估 | CoRL 2025

99 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

AutoEval: 在现实世界中对通用机器人操作策略的自主评估 | CoRL 2025

AutoEval

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.

Installations

Create your conda environment:

bash
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_gym
  • agentlace for distributed policy and robot environments: https://github.com/youliangtan/agentlace
  • robot_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_training
  • susie (Optional, for SuSIE/SOAR policy): https://github.com/kvablack/susie
  • simpler_env (Optional, for sim evaluation in SIMPLER): https://github.com/youliangtan/SimplerEnv

We 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:

bash
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.

Quick Start

Setting Up the Robot Environment

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.

mermaid
graph LR
    A[Robot Driver]  B[Manipulator_gym server]
    B  C[Gym Env  Policy]
bash
# 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 0

You would also need to install the interbotix_ros_arms package for the WidowX robot.See manipulator_gym's descriptions for more details.

Important Code Snippets

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.

  • run_eval.py: Main script for running evaluations.
  • scripts/configs/eval_config.py: Configuration file for evaluations, contains the task and policy configurations. Add new entries here for setting up new tasks.
  • auto_eval/robot/policy.py: Different robot policies that you can run locally, no need for policy server-client setup. Add new classes here for new policies.
  • auto_eval/robot/policy_clients.py: Different policy clients for when a policy is set up as a server remotely instead of run locally with policy.py. OpenWebClient is a generic policy client that can be used for any policy server that conforms to the AutoEval API.
  • auto_eval/policy_server/*: Pre-made policy servers for some SOTA generalist robot policies. Add new servers here for new policies.

Running a Human Eval

bash
#  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

Running an Automated Eval

bash
#  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.

Success Detector

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

bash
huggingface-cli login
  1. Collect images by tele-operating the robot. Save all images corresponding to a certain label in a pickle file.
bash
# 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.pkl
  1. Finetune Paligemma with the collected images. script/ft_paligemma.py will look for specific file names in the working_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.
bash
python scripts/ft_paligemma.py --working_dir ~/datasets/ --dataset_type drawer
  1. Evaluate the fine-tuned Paligemma model.
bash
# 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
  1. Optional: "Dagger" and improve the classifier. In addition to tele-operating the robot and seeing the failure points, you can also run an automated evaluation, and collect all the images that are input to the classifier, and manually label them as additional training data.
…

Reset Policy

Learned Reset Policy

To get a robust reset policy, we collect a small number of demos (about 50) and fine-tune OpenVLA.

  1. Collect demonstrations with teleoperation. You can do so easily with keyboard/spacemouse. This will save the demos directly in RLDS format.
bash
# 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.

bash
cd dlimp/rlds_converters/bridge_dataset
CUDA_VISIBLE_DEVICES="" tfds build --manual_dir ~/datasets/drawer-scene-demos
  1. Fine-tune OpenVLA vis LoRA Make the following file structure:
bash
~/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:

bash
mv ~/tensorflow_datasets/bridge_dataset/ ~/checkpoints/auto-eval-openvla-drawer/bridge_orig

We 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:

bash
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 
  1. Evaluate the fine-tuned policy
python
# 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",
)
bash
# 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/checkpoints

You can run the evaluation with run_eval.py.

Scripted Policy

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:

bash
python scripts/teleop.py --ip  --log_type pkl --log_actions_only --log_dir scripted_policy.pkl

Then, use auto_eval/robot/policy.py:RecordedPolicy to replay the demonstration:

python
from auto_eval.robot.policy import RecordedPolicy
policy = RecordedPolicy(
    policy_save_path="scripted_policy.pkl"
)

Running Policies Locally & Hosting Policy Servers

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:

  1. Run the policies locally (on the same machine as you run run_eval.py)
  2. Run policies remotely (on a different machine

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Pythonfoundation-modelsrobot-learning

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言