Views
No views yet
uv pip install physicalai numpy1import numpy as np
2from physicalai.inference import InferenceModel
3
4model = InferenceModel("smolvla-libero-fp16-ov", device="CPU")
5
6# Build a dummy LIBERO-style observation.
7# LIBERO provides two cameras (agentview + wrist) and an 8-dim robot state.
8# Images use the LeRobot convention: float32 in [0, 1], shape (C, H, W).
9observation = {
10 "images.image": np.random.rand(1, 3, 256, 256).astype(np.float32),
11 "images.image2": np.random.rand(1, 3, 256, 256).astype(np.float32),
12 "state": np.zeros((1, 8), dtype=np.float32),
13 "task": ["sample task description"],
14}
15
16chunk = model.predict_action_chunk(observation)uv pip install physicalai-train[libero,smolvla]1from physicalai.benchmark import LiberoBenchmark
2from physicalai.inference import InferenceModel
3
4model = InferenceModel("smolvla-libero-fp16-ov", device="CPU")
5
6benchmark = LiberoBenchmark(
7 task_suite="libero_10",
8 video_dir="fail_videos"
9)
10
11results = benchmark.evaluate(model)smolvla-libero-fp16-ov folder prior to running this script.