Views
No views yet
norm_key configuration.:ex_normalx2_normalnorm_keyDobbERH20TUMI-biarmagibotworld_alphaaustin_budsaustin_siriusbc_zberkeley_autolab_ur5berkeley_cable_routingberkeley_fanuc_manipulationbridge_data_v2droidfmbfractalfurniture_benchgalaxea_lerobot_v21jaco_playnyu_rotrealomin_umistanford_hydrastanford_kuka_multimodaltaco_playutaustin_mutexviolanorm_keyrobochallenge_Frankarobochallenge_UR5robochallenge_aloharobochallenge_arx5norm_keyrobocoin_aitbot_mmk2robocoin_aloharobocoin_alpha_botrobocoin_cobotrobocoin_galaxea_r1_literobocoin_lejurobocoin_realman_rmcrobocoin_ruantong_a2dnorm_keyrobomind_agilex_mobilerobomind_frankarobomind_simulationrobomind_tienkung_gellorobomind_tienkung_xsensrobomind_urrobomind_v2_0_agilexrobomind_v2_0_agilex_mobilerobomind_v2_0_arkrobomind_v2_0_ark_mobilerobomind_v2_0_frankarobomind_v2_0_franka_simrobomind_v2_0_tianyirobomind_v2_0_tianyi_mobilerobomind_v2_0_tienkungrobomind_v2_0_tienkung_simrobomind_v2_0_ur5robomind_v2_0_ur5_dex1# Create conda environment
2conda create --name wallx python=3.12
3conda activate wallx
4
5# Install base requirements
6pip install torch torchvision transformers
7pip install huggingface_hub
8
9# Install Wall-X from GitHub
10git clone https://github.com/X-Square-Robot/wall-x.git
11cd wall-x
12pip install -e .1"""Load checkpoint and run one inference with fake inputs."""
2
3from __future__ import annotations
4
5import sys
6from pathlib import Path
7
8import numpy as np
9import torch
10
11CHECKPOINT = "x-square-robot/wall-oss-0.5"
12
13repo_root = Path(__file__).resolve().parents[1]
14sys.path.insert(0, str(repo_root))
15
16import wall_x._vendor.harrix.adapters # noqa: F401
17from wall_x._vendor.harrix.adapters.registry import build_adapter
18from wall_x._vendor.harrix.envs.libero_common import encode_proprio
19from wall_x._vendor.harrix.eval_config import EvalConfig, autofill_from_checkpoint
20
21# 1) load model
22cfg = EvalConfig()
23cfg.model.checkpoint_path = CHECKPOINT
24cfg.model.norm_key = "x2_normal"
25cfg.model.cam_names = ["face_view", "right_wrist_view"]
26cfg = autofill_from_checkpoint(cfg)
27model = build_adapter(cfg)
28
29# 2) fake input
30rng = np.random.default_rng(0)
31obs = {
32 "eef_pos": rng.normal(size=3).astype(np.float32),
33 "eef_axisangle": rng.normal(size=3).astype(np.float32),
34 "gripper": rng.normal(size=1).astype(np.float32),
35 "face_view": rng.integers(0, 256, (448, 448, 3), dtype=np.uint8),
36 "wrist_view": rng.integers(0, 256, (448, 448, 3), dtype=np.uint8),
37}
38instruction = "pick up the cup"
39
40# 3) infer (return raw action chunk, shape: [horizon, action_dim])
41encoded = encode_proprio(obs, model._train_config, model._action_horizon)
42prefix, postfix = model._get_flow_prompt(instruction)
43batch_inputs = model._construct_model_input([encoded], [prefix], [postfix])
44padding = (
45 torch.zeros_like(model._normalizer_action.delta[batch_inputs["dataset_names"][0]])
46 .unsqueeze(0)
47 .to("cpu")
48)
49padding = model._normalizer_action.normalize_data(
50 padding, batch_inputs["dataset_names"]
51).to(batch_inputs["input_ids"].device)
52
53out = model._model.generate_flow_action(
54 action_horizon=model._action_horizon,
55 action_dim=model._action_dim,
56 num_inference_timesteps=model._num_inference_timesteps,
57 padding_action=padding,
58 **batch_inputs,
59)
60result = out["predict_action"].detach().cpu().numpy()
61print("result shape:", result.shape)
62print("result:", result)
631# Basic inference test
2python ./scripts/fake_inference.py
3
4# Generate open-loop comparison plots
5python ./scripts/draw_openloop_plot.py1@misc{walloss_paper_2025,
2 title = {WALL-OSS: Igniting VLMs toward the Embodied Space},
3 author = {X Square Robot},
4 year = {2025},
5 howpublished = {\url{https://x2robot.cn-wlcb.ufileos.com/wall_oss.pdf}},
6 note = {White paper}
7}