Publish v1 YAM demos, original PI05 checkpoint and verified inference source (part 2)
Browse filesFiles changed (26)
- .gitattributes+2
- policy/pi05_yam_latest_20261012_300ep_30k/inference_source/src/openpi_client/runtime/agent.pyAdded+17
- policy/pi05_yam_latest_20261012_300ep_30k/inference_source/src/openpi_client/runtime/agents/policy_agent.pyAdded+18
- policy/pi05_yam_latest_20261012_300ep_30k/inference_source/src/openpi_client/runtime/environment.pyAdded+32
- policy/pi05_yam_latest_20261012_300ep_30k/inference_source/src/openpi_client/runtime/runtime.pyAdded+92
- policy/pi05_yam_latest_20261012_300ep_30k/inference_source/src/openpi_client/runtime/subscriber.pyAdded+20
- policy/pi05_yam_latest_20261012_300ep_30k/inference_source/src/openpi_client/websocket_client_policy.pyAdded+58
- policy/pi05_yam_latest_20261012_300ep_30k/provenance/FROZEN_INPUTS.jsonAdded+132
- policy/pi05_yam_latest_20261012_300ep_30k/provenance/PI05_DATA_READY.jsonAdded+17
- policy/pi05_yam_latest_20261012_300ep_30k/provenance/data_info.jsonAdded+274
- policy/pi05_yam_latest_20261012_300ep_30k/provenance/pi05.envAdded+9
- policy/pi05_yam_latest_20261012_300ep_30k/provenance/pi0_config.pyAdded+117
- policy/pi05_yam_latest_20261012_300ep_30k/provenance/policy_config.pyAdded+94
- policy/pi05_yam_latest_20261012_300ep_30k/provenance/train_pi05.shAdded+20
- policy/pi05_yam_latest_20261012_300ep_30k/provenance/training_config.pyAdded+919
- policy/pi05_yam_latest_20261012_300ep_30k/provenance/yam_policy.pyAdded+122
- robot/YAM_robot_assets_20261104/MANIFEST.jsonAdded+428
- robot/YAM_robot_assets_20261104/README.txtAdded+30
- robot/YAM_robot_assets_20261104/assembly/assembly-m.stlAdded+3
- robot/YAM_robot_assets_20261104/assembly/assembly-mm.stlAdded+3
- robot/YAM_robot_assets_20261104/assembly/yam_d405_mount.yamlAdded+60
- robot/YAM_robot_assets_20261104/calibration/rig_second_longtest.yamlAdded+107
- robot/YAM_robot_assets_20261104/calibration/source_records/fit-overlays.jpgAdded
- robot/YAM_robot_assets_20261104/calibration/source_records/fit-report.jsonAdded+209
- robot/YAM_robot_assets_20261104/calibration/source_records/mount-resolved.yamlAdded+161
- robot/YAM_robot_assets_20261104/calibration/source_records/native-cpu-projection.jpgAdded
72 unmodified lines73747572 unmodified linespolicy/pi05_yam_latest_20261012_300ep_30k/30000/params/ocdbt.process_0/d/ed13cc049056c50177821f2f49ca161b filter=lfs diff=lfs merge=lfs -textpolicy/pi05_yam_latest_20261012_300ep_30k/30000/params/ocdbt.process_0/d/f7c79b2841af4899d32267b280b398c4 filter=lfs diff=lfs merge=lfs -textpolicy/pi05_yam_latest_20261012_300ep_30k/30000/params/ocdbt.process_0/d/ff9301cfccae24b3cb2bbabf1e0637be filter=lfs diff=lfs merge=lfs -text72 unmodified lines737475767772 unmodified linespolicy/pi05_yam_latest_20261012_300ep_30k/30000/params/ocdbt.process_0/d/ed13cc049056c50177821f2f49ca161b filter=lfs diff=lfs merge=lfs -textpolicy/pi05_yam_latest_20261012_300ep_30k/30000/params/ocdbt.process_0/d/f7c79b2841af4899d32267b280b398c4 filter=lfs diff=lfs merge=lfs -textpolicy/pi05_yam_latest_20261012_300ep_30k/30000/params/ocdbt.process_0/d/ff9301cfccae24b3cb2bbabf1e0637be filter=lfs diff=lfs merge=lfs -textrobot/YAM_robot_assets_20261104/assembly/assembly-m.stl filter=lfs diff=lfs merge=lfs -textrobot/YAM_robot_assets_20261104/assembly/assembly-mm.stl filter=lfs diff=lfs merge=lfs -text
1234567891011121314151617import abc
class Agent(abc.ABC): """An Agent is the thing with agency, i.e. the entity that makes decisions.
Agents receive observations about the state of the world, and return actions to take in response. """
@abc.abstractmethod def get_action(self, observation: dict) -> dict: """Query the agent for the next action."""
@abc.abstractmethod def reset(self) -> None: """Reset the agent to its initial state."""123456789101112131415161718from typing_extensions import override
from openpi_client import base_policy as _base_policyfrom openpi_client.runtime import agent as _agent
class PolicyAgent(_agent.Agent): """An agent that uses a policy to determine actions."""
def __init__(self, policy: _base_policy.BasePolicy) -> None: self._policy = policy
@override def get_action(self, observation: dict) -> dict: return self._policy.infer(observation)
def reset(self) -> None: self._policy.reset()1234567891011121314151617181920212223242526272829303132import abc
class Environment(abc.ABC): """An Environment represents the robot and the environment it inhabits.
The primary contract of environments is that they can be queried for observations about their state, and have actions applied to them to change that state. """
@abc.abstractmethod def reset(self) -> None: """Reset the environment to its initial state.
This will be called once before starting each episode. """
@abc.abstractmethod def is_episode_complete(self) -> bool: """Allow the environment to signal that the episode is complete.
This will be called after each step. It should return `True` if the episode is complete (either successfully or unsuccessfully), and `False` otherwise. """
@abc.abstractmethod def get_observation(self) -> dict: """Query the environment for the current state."""
@abc.abstractmethod def apply_action(self, action: dict) -> None: """Take an action in the environment."""1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192import loggingimport threadingimport time
from openpi_client.runtime import agent as _agentfrom openpi_client.runtime import environment as _environmentfrom openpi_client.runtime import subscriber as _subscriber
class Runtime: """The core module orchestrating interactions between key components of the system."""
def __init__( self, environment: _environment.Environment, agent: _agent.Agent, subscribers: list[_subscriber.Subscriber], max_hz: float = 0, num_episodes: int = 1, max_episode_steps: int = 0, ) -> None: self._environment = environment self._agent = agent self._subscribers = subscribers self._max_hz = max_hz self._num_episodes = num_episodes self._max_episode_steps = max_episode_steps
self._in_episode = False self._episode_steps = 0
def run(self) -> None: """Runs the runtime loop continuously until stop() is called or the environment is done.""" for _ in range(self._num_episodes): self._run_episode()
# Final reset, this is important for real environments to move the robot to its home position. self._environment.reset()
def run_in_new_thread(self) -> threading.Thread: """Runs the runtime loop in a new thread.""" thread = threading.Thread(target=self.run) thread.start() return thread
def mark_episode_complete(self) -> None: """Marks the end of an episode.""" self._in_episode = False
def _run_episode(self) -> None: """Runs a single episode.""" logging.info("Starting episode...") self._environment.reset() self._agent.reset() for subscriber in self._subscribers: subscriber.on_episode_start()
self._in_episode = True self._episode_steps = 0 step_time = 1 / self._max_hz if self._max_hz > 0 else 0 last_step_time = time.time()
while self._in_episode: self._step() self._episode_steps += 1
# Sleep to maintain the desired frame rate now = time.time() dt = now - last_step_time if dt < step_time: time.sleep(step_time - dt) last_step_time = time.time() else: last_step_time = now
logging.info("Episode completed.") for subscriber in self._subscribers: subscriber.on_episode_end()
def _step(self) -> None: """A single step of the runtime loop.""" observation = self._environment.get_observation() action = self._agent.get_action(observation) self._environment.apply_action(action)
for subscriber in self._subscribers: subscriber.on_step(observation, action)
if self._environment.is_episode_complete() or ( self._max_episode_steps > 0 and self._episode_steps >= self._max_episode_steps ): self.mark_episode_complete()1234567891011121314151617181920import abc
class Subscriber(abc.ABC): """Subscribes to events in the runtime.
Subscribers can be used to save data, visualize, etc. """
@abc.abstractmethod def on_episode_start(self) -> None: """Called when an episode starts."""
@abc.abstractmethod def on_step(self, observation: dict, action: dict) -> None: """Append a step to the episode."""
@abc.abstractmethod def on_episode_end(self) -> None: """Called when an episode ends."""12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758import loggingimport timefrom typing import Dict, Optional, Tuple
from typing_extensions import overrideimport websockets.sync.client
from openpi_client import base_policy as _base_policyfrom openpi_client import msgpack_numpy
class WebsocketClientPolicy(_base_policy.BasePolicy): """Implements the Policy interface by communicating with a server over websocket.
See WebsocketPolicyServer for a corresponding server implementation. """
def __init__(self, host: str = "0.0.0.0", port: Optional[int] = None, api_key: Optional[str] = None) -> None: if host.startswith("ws"): self._uri = host else: self._uri = f"ws://{host}" if port is not None: self._uri += f":{port}" self._packer = msgpack_numpy.Packer() self._api_key = api_key self._ws, self._server_metadata = self._wait_for_server()
def get_server_metadata(self) -> Dict: return self._server_metadata
def _wait_for_server(self) -> Tuple[websockets.sync.client.ClientConnection, Dict]: logging.info(f"Waiting for server at {self._uri}...") while True: try: headers = {"Authorization": f"Api-Key {self._api_key}"} if self._api_key else None conn = websockets.sync.client.connect( self._uri, compression=None, max_size=None, additional_headers=headers ) metadata = msgpack_numpy.unpackb(conn.recv()) return conn, metadata except ConnectionRefusedError: logging.info("Still waiting for server...") time.sleep(5)
@override def infer(self, obs: Dict) -> Dict: # noqa: UP006 data = self._packer.pack(obs) self._ws.send(data) response = self._ws.recv() if isinstance(response, str): # we're expecting bytes; if the server sends a string, it's an error. raise RuntimeError(f"Error in inference server:\n{response}") return msgpack_numpy.unpackb(response)
@override def reset(self) -> None: pass123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132{ "created_unix": 1791792468.6993098, "files": { "/inspire/hdd3/project/agent-driven-world-model/ky26300/manimux_training/XPolicyLab/policy/Pi_05/openpi/scripts/train.py": "628124ff5277427e8114eccf2b9c4ae27cef26e80f7f0ef8f94a30ad815b0e2c", "/inspire/hdd3/project/agent-driven-world-model/ky26300/manimux_training/XPolicyLab/policy/Pi_05/openpi/src/openpi/__init__.py": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "/inspire/hdd3/project/agent-driven-world-model/ky26300/manimux_training/XPolicyLab/policy/Pi_05/openpi/src/openpi/conftest.py": "626672e385fb276396c119e2220421065c58f8ec602401e8bf2ae509f9fffaf3", "/inspire/hdd3/project/agent-driven-world-model/ky26300/manimux_training/XPolicyLab/policy/Pi_05/openpi/src/openpi/models/__init__.py": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "/inspire/hdd3/project/agent-driven-world-model/ky26300/manimux_training/XPolicyLab/policy/Pi_05/openpi/src/openpi/models/gemma.py": "fe39f4b04c6ee6ea143cddfbbde589515490e435165c7e4bf57a450249c63d0f", "/inspire/hdd3/project/agent-driven-world-model/ky26300/manimux_training/XPolicyLab/policy/Pi_05/openpi/src/openpi/models/gemma_fast.py": "563c6e1ffd8afa31c406bcb8894a605e87df88f6c075d398d97a57af6bc3aefa", "/inspire/hdd3/project/agent-driven-world-model/ky26300/manimux_training/XPolicyLab/policy/Pi_05/openpi/src/openpi/models/lora.py": "ced28716950c34d84a1a6d0b03b1d9550000732721df884818080b6e78cb3289", "/inspire/hdd3/project/agent-driven-world-model/ky26300/manimux_training/XPolicyLab/policy/Pi_05/openpi/src/openpi/models/lora_test.py": "a0f10525de7773310402b3ffa636e88ffff7035f3179b140aacc6809c122f085", "/inspire/hdd3/project/agent-driven-world-model/ky26300/manimux_training/XPolicyLab/policy/Pi_05/openpi/src/openpi/models/model.py": "0d74bc1d8f4623ac3d8e543710b8bf75f9b95e588a3ebf6127c659e001385cff", "/inspire/hdd3/project/agent-driven-world-model/ky26300/manimux_training/XPolicyLab/policy/Pi_05/openpi/src/openpi/models/model_test.py": "f8e71f195045d4e3ef1ddfafb2337fa52e5aa2f89bce1fde62f5cbfb67121f21", "/inspire/hdd3/project/agent-driven-world-model/ky26300/manimux_training/XPolicyLab/policy/Pi_05/openpi/src/openpi/models/pi0.py": "a48852d6010a00aa6813e01227f0018df08516f879c151554d350948640f668b", "/inspire/hdd3/project/agent-driven-world-model/ky26300/manimux_training/XPolicyLab/policy/Pi_05/openpi/src/openpi/models/pi0_config.py": "d321858c30b398126035ea2b6da09e1c422eeeebb5ebf8df631daf9dc77647fa", "/inspire/hdd3/project/agent-driven-world-model/ky26300/manimux_training/XPolicyLab/policy/Pi_05/openpi/src/openpi/models/pi0_fast.py": "627332a555046f2744ef144c45f8bd3361a9820cf68854a4528d0fdbba7e9aa3", "/inspire/hdd3/project/agent-driven-world-model/ky26300/manimux_training/XPolicyLab/policy/Pi_05/openpi/src/openpi/models/pi0_test.py": "0733a6d13a7c2741276dfd550a99550802470728eda26343116e73d894d0add1", "/inspire/hdd3/project/agent-driven-world-model/ky26300/manimux_training/XPolicyLab/policy/Pi_05/openpi/src/openpi/models/siglip.py": "14b4df0be280d5769fb0dc31a40cde27525dbb1980cc998c28475d62fa3cad32", "/inspire/hdd3/project/agent-driven-world-model/ky26300/manimux_training/XPolicyLab/policy/Pi_05/openpi/src/openpi/models/tokenizer.py": "965be8b3c393a6811875bbc32da9e01a5d01cc2f87802de801cf7293e049748c", "/inspire/hdd3/project/agent-driven-world-model/ky26300/manimux_training/XPolicyLab/policy/Pi_05/openpi/src/openpi/models/tokenizer_test.py": "5abd179ce883420e39d4d18b33d0123290af752da243003aa48a3bc06dbb9517", "/inspire/hdd3/project/agent-driven-world-model/ky26300/manimux_training/XPolicyLab/policy/Pi_05/openpi/src/openpi/models/utils/fsq_tokenizer.py": "88866638ee4775f46a222561a957bd35e20600fe38c5888b587016ad77b1065f", "/inspire/hdd3/project/agent-driven-world-model/ky26300/manimux_training/XPolicyLab/policy/Pi_05/openpi/src/openpi/models/vit.py": "d285d057636c3cba2d1fd3b37693b18075ad4b9c3b47bbde807c34c6c376ac93", "/inspire/hdd3/project/agent-driven-world-model/ky26300/manimux_training/XPolicyLab/policy/Pi_05/openpi/src/openpi/models_pytorch/autohorizon_official.py": "a04e48b0d12798d56bbaa13cab80a6749fcd3ee96f3eec8c1ba3ad72cf5872ec", "/inspire/hdd3/project/agent-driven-world-model/ky26300/manimux_training/XPolicyLab/policy/Pi_05/openpi/src/openpi/models_pytorch/gemma_pytorch.py": "08fd8d750519f0fb44fc5173311e50a30f4c8f32c02e51244b4f8e47b32cd52f", "/inspire/hdd3/project/agent-driven-world-model/ky26300/manimux_training/XPolicyLab/policy/Pi_05/openpi/src/openpi/models_pytorch/pi0_pytorch.py": "dcd7b6f508808ce4b7170a1720a4c62c6da04edae3652d16c94a469dca924e16", "/inspire/hdd3/project/agent-driven-world-model/ky26300/manimux_training/XPolicyLab/policy/Pi_05/openpi/src/openpi/models_pytorch/preprocessing_pytorch.py": "6a44e91be2d7a724c6140d2cc98ed0a631b8d38bbb29f63b380a0a19f903bbf6", "/inspire/hdd3/project/agent-driven-world-model/ky26300/manimux_training/XPolicyLab/policy/Pi_05/openpi/src/openpi/models_pytorch/transformers_replace/models/gemma/configuration_gemma.py": "26fd0d0f52730ab32b6f337eb73ae9a26cb71ae0915bc49eced1d0e2ed8d0ec6", "/inspire/hdd3/project/agent-driven-world-model/ky26300/manimux_training/XPolicyLab/policy/Pi_05/openpi/src/openpi/models_pytorch/transformers_replace/models/gemma/modeling_gemma.py": "17eeb54e277939e58cd6f8a92719a275e36baf0c9f463b2754227d42f87aedde", "/inspire/hdd3/project/agent-driven-world-model/ky26300/manimux_training/XPolicyLab/policy/Pi_05/openpi/src/openpi/models_pytorch/transformers_replace/models/paligemma/modeling_paligemma.py": "c945d330b829264f927f3ee5339f977238631772de07a28e855e265bb85fd53c", "/inspire/hdd3/project/agent-driven-world-model/ky26300/manimux_training/XPolicyLab/policy/Pi_05/openpi/src/openpi/models_pytorch/transformers_replace/models/siglip/check.py": "466e8eb7887ac5ccc98118a3169298d6ab65a284d834bae74751e3854dbc4245", "/inspire/hdd3/project/agent-driven-world-model/ky26300/manimux_training/XPolicyLab/policy/Pi_05/openpi/src/openpi/models_pytorch/transformers_replace/models/siglip/modeling_siglip.py": "ef2e99500f263fdd78db9d4d9a255e29d844eb92f53c25ad640f8056700ef84b", "/inspire/hdd3/project/agent-driven-world-model/ky26300/manimux_training/XPolicyLab/policy/Pi_05/openpi/src/openpi/policies/aloha_policy.py": "c37aa90797665b1ec57cd5286fa5d6cbf29af0559ffce36d3fed98c02329eaea", "/inspire/hdd3/project/agent-driven-world-model/ky26300/manimux_training/XPolicyLab/policy/Pi_05/openpi/src/openpi/policies/droid_policy.py": "7d0893555964d485e231f70084125084a99495705ddd74b29461229d524fff26", "/inspire/hdd3/project/agent-driven-world-model/ky26300/manimux_training/XPolicyLab/policy/Pi_05/openpi/src/openpi/policies/libero_policy.py": "ad01e5be74516d9ec9aeb1f76294d5c9f7f7179a60f1f7fbbb35e7646534f81a", "/inspire/hdd3/project/agent-driven-world-model/ky26300/manimux_training/XPolicyLab/policy/Pi_05/openpi/src/openpi/policies/policy.py": "0e5ffcd4339f14484b546e297c13adb758dec73fa575a752ab1930692adca16c", "/inspire/hdd3/project/agent-driven-world-model/ky26300/manimux_training/XPolicyLab/policy/Pi_05/openpi/src/openpi/policies/policy_config.py": "aaf42ab04a33b6c91d2447926211646c33ebd8ebfa427f026d7b6c4f7c45ec52", "/inspire/hdd3/project/agent-driven-world-model/ky26300/manimux_training/XPolicyLab/policy/Pi_05/openpi/src/openpi/policies/policy_test.py": "2b4bbbd4928514064b4ada36d607d5b392524bdb4ec6e59696d7a18694461602", "/inspire/hdd3/project/agent-driven-world-model/ky26300/manimux_training/XPolicyLab/policy/Pi_05/openpi/src/openpi/policies/wuji_policy.py": "98046d038740dff6ebf41b0e3bf59674ac30246332a33cfc0624e5a06c855310", "/inspire/hdd3/project/agent-driven-world-model/ky26300/manimux_training/XPolicyLab/policy/Pi_05/openpi/src/openpi/policies/yam_policy.py": "938dd548490650ea6daa9add9ee66d28b3b6b8f5fdb15b76d505741bd4e5313b", "/inspire/hdd3/project/agent-driven-world-model/ky26300/manimux_training/XPolicyLab/policy/Pi_05/openpi/src/openpi/policies/yam_policy_test.py": "85a5a5a4fd19a0b16c96e4280599db775dbfc7c9db573e95be314167f49b4896", "/inspire/hdd3/project/agent-driven-world-model/ky26300/manimux_training/XPolicyLab/policy/Pi_05/openpi/src/openpi/serving/websocket_policy_server.py": "1370d345e6c3c5b8f15573050e485e60a5b423d1df33e24b237805e6b442b026", "/inspire/hdd3/project/agent-driven-world-model/ky26300/manimux_training/XPolicyLab/policy/Pi_05/openpi/src/openpi/shared/__init__.py": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "/inspire/hdd3/project/agent-driven-world-model/ky26300/manimux_training/XPolicyLab/policy/Pi_05/openpi/src/openpi/shared/array_typing.py": "6524945566eab3eb97b75a6280ba4724617b4d028c55f05172b283c3de68a026", "/inspire/hdd3/project/agent-driven-world-model/ky26300/manimux_training/XPolicyLab/policy/Pi_05/openpi/src/openpi/shared/download.py": "a12054a6ddaab4efa833c4ff49a1aba00c63759e4e88d6be21c1e0b3307fd9b2", "/inspire/hdd3/project/agent-driven-world-model/ky26300/manimux_training/XPolicyLab/policy/Pi_05/openpi/src/openpi/shared/download_test.py": "234ee70ab2501a1421f6c44cbd83c1e16747597023319ae1446bed9d44f17072", "/inspire/hdd3/project/agent-driven-world-model/ky26300/manimux_training/XPolicyLab/policy/Pi_05/openpi/src/openpi/shared/image_tools.py": "0f8fcb355288119e56acb56d550c1cc1f3a9edddceb0dc5b319f955943ef7767", "/inspire/hdd3/project/agent-driven-world-model/ky26300/manimux_training/XPolicyLab/policy/Pi_05/openpi/src/openpi/shared/image_tools_test.py": "842374579dc9f4c2907da5e8bb555efe5a3f4902b659720c8e90115863dd59fe", "/inspire/hdd3/project/agent-driven-world-model/ky26300/manimux_training/XPolicyLab/policy/Pi_05/openpi/src/openpi/shared/nnx_utils.py": "4da7111ba3011c4d1c381c9ed17257771df6a50ed89182647c3fb6f79208005e", "/inspire/hdd3/project/agent-driven-world-model/ky26300/manimux_training/XPolicyLab/policy/Pi_05/openpi/src/openpi/shared/normalize.py": "6c2cea4946fb07e51801530400d2b2fd94730e195cd290d6b6960114eca9739d", "/inspire/hdd3/project/agent-driven-world-model/ky26300/manimux_training/XPolicyLab/policy/Pi_05/openpi/src/openpi/shared/normalize_test.py": "fda27a21cf37f337b12bcab71229407c2a349c5965c33f278bdc468ed03f58af", "/inspire/hdd3/project/agent-driven-world-model/ky26300/manimux_training/XPolicyLab/policy/Pi_05/openpi/src/openpi/training/checkpoints.py": "ff96be9265383f8de4ba1422246c89b9bbf54b64ac36582a71314960c68e92d5", "/inspire/hdd3/project/agent-driven-world-model/ky26300/manimux_training/XPolicyLab/policy/Pi_05/openpi/src/openpi/training/config.py": "f2cafad6a1061d9f619f0d1f178f7da8e881bb8d0147c116db89cbc839ac1f20", "/inspire/hdd3/project/agent-driven-world-model/ky26300/manimux_training/XPolicyLab/policy/Pi_05/openpi/src/openpi/training/data_loader.py": "2bffb626db597a569f4a116495b7de90df5f2f1ee843326616847c5e1a0d6ca6", "/inspire/hdd3/project/agent-driven-world-model/ky26300/manimux_training/XPolicyLab/policy/Pi_05/openpi/src/openpi/training/data_loader_test.py": "cbe032c8e20051b247700f7c73d951c85782d5e286f473326e5e56e49b0e6a39", "/inspire/hdd3/project/agent-driven-world-model/ky26300/manimux_training/XPolicyLab/policy/Pi_05/openpi/src/openpi/training/droid_rlds_dataset.py": "1d3a057a040240218234d7dbc6680ee4fe8256f2058531a0f9fefd3f7ee995a4", "/inspire/hdd3/project/agent-driven-world-model/ky26300/manimux_training/XPolicyLab/policy/Pi_05/openpi/src/openpi/training/misc/polaris_config.py": "c2ab92efb5e0d675118ad812113fd1c3cb3a62cdab5d79066014266e82df12d8", "/inspire/hdd3/project/agent-driven-world-model/ky26300/manimux_training/XPolicyLab/policy/Pi_05/openpi/src/openpi/training/misc/roboarena_config.py": "914acdd74ccf90e6779c13a5093140595c7e4f687e9e0b167439446a81d74c01", "/inspire/hdd3/project/agent-driven-world-model/ky26300/manimux_training/XPolicyLab/policy/Pi_05/openpi/src/openpi/training/optimizer.py": "cfb5d6f6aec61fbe961287b4015c652260628a0ed4682a0dbdc271b8e65431fa", "/inspire/hdd3/project/agent-driven-world-model/ky26300/manimux_training/XPolicyLab/policy/Pi_05/openpi/src/openpi/training/sharding.py": "c67c4112a126ab097571c8a882fd1ee3f106b15b6e608e7205ac7f29b44ca985", "/inspire/hdd3/project/agent-driven-world-model/ky26300/manimux_training/XPolicyLab/policy/Pi_05/openpi/src/openpi/training/utils.py": "b684e674343f86ef5e976f279a586d3fe2f885e901f396ac899ed136abc7eca6", "/inspire/hdd3/project/agent-driven-world-model/ky26300/manimux_training/XPolicyLab/policy/Pi_05/openpi/src/openpi/training/weight_loaders.py": "ef98cee058972ef54269c2a41f81ad265bc3f137432044824c09e1a0462ef714", "/inspire/hdd3/project/agent-driven-world-model/ky26300/manimux_training/XPolicyLab/policy/Pi_05/openpi/src/openpi/transforms.py": "7feaa7189bfcac3e3d205484ce9b3fd74fcf597cedc48e74e6d39c4bdffaa0e6", "/inspire/hdd3/project/agent-driven-world-model/ky26300/manimux_training/XPolicyLab/policy/Pi_05/openpi/src/openpi/transforms_test.py": "b72bec3b12429dc47c7ff1e1f581d471009097d5298a3a8bf809a01e1e37cc5d", "/inspire/hdd3/project/agent-driven-world-model/ky26300/manimux_training/XPolicyLab/policy/Pi_05/train.sh": "41fa25f3085397a447146a5d2a35e7e253d4cdc578a32b76d951b7e028e6f35b", "/inspire/hdd3/project/agent-driven-world-model/ky26300/manimux_training/cache/pi05/assets/pi05_yam/yam_latest_20261012_300ep_joint_ee_v1/norm_stats.json": "6b7b890981157f443be6faf2ecabad2c048dc5f3554f0b3bd0d36e50234a9f07", "/inspire/hdd3/project/agent-driven-world-model/ky26300/manimux_training/training/coin-models-20260927/train_pi05_yam_cluster.sh": "37f8374f4273962db93f0a35da0a72506c8fddaf16133049bb60f04a43efe988", "/inspire/hdd3/project/agent-driven-world-model/ky26300/manimux_training/weights/base/pi05_base/params/_CHECKPOINT_METADATA": "7674d497b452e8336840e6d21eaa85725d68c53fc011a648121f2b29b1ce5a8a", "/inspire/hdd3/project/agent-driven-world-model/ky26300/manimux_training/weights/base/pi05_base/params/_METADATA": "250d0ad0f6540a5e4bdd70442d6864cef729724f2d23e2dd2cc669563a668d70", "/inspire/hdd3/project/agent-driven-world-model/ky26300/manimux_training/weights/base/pi05_base/params/_sharding": "38efd4f20bfc656b138c3009fa6156b1199c29a3ccf020769e3726605f1c51ca", "/inspire/hdd3/project/agent-driven-world-model/ky26300/manimux_training/weights/base/pi05_base/params/array_metadatas/process_0": "e040d148bdfcb5f8060b212ee63993eaf01fed05088dd89cf491f456fade0ceb", "/inspire/hdd3/project/agent-driven-world-model/ky26300/manimux_training/weights/base/pi05_base/params/commit_success.txt": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "/inspire/hdd3/project/agent-driven-world-model/ky26300/manimux_training/weights/base/pi05_base/params/d/1c4302d2d2000b5f3eb4fa1350fdef9a": "c5021863f3efdb49a332f4cae944de55651dcf8ce4e526a762ed053f195e5a34", "/inspire/hdd3/project/agent-driven-world-model/ky26300/manimux_training/weights/base/pi05_base/params/manifest.ocdbt": "78b6898ea1f8897a0225022b0ab799455cff0e15158a9ca349d8efbbe044aa55", "/inspire/hdd3/project/agent-driven-world-model/ky26300/manimux_training/weights/base/pi05_base/params/ocdbt.process_0/d/0832cad6c37f82d4eedd897dcbb8da9d": "b2c08d8f1d83ef842fcb2be1518fb2309648380b61202515f9a0678cf28ce751", "/inspire/hdd3/project/agent-driven-world-model/ky26300/manimux_training/weights/base/pi05_base/params/ocdbt.process_0/d/247d4b7c814d8b1a23fa8a20f36a88f7": "c04c95d8b587705c36e45bfb74ffbca92f699e910cbb3da44bab99e8e37a5fed", "/inspire/hdd3/project/agent-driven-world-model/ky26300/manimux_training/weights/base/pi05_base/params/ocdbt.process_0/d/35a545f74995e511808d4f94dfbef3b6": "a3fd9934c60f9bac41445d196a353a2ae8a7d9fafabee5496f24ed21fe11ab32", "/inspire/hdd3/project/agent-driven-world-model/ky26300/manimux_training/weights/base/pi05_base/params/ocdbt.process_0/d/73bbae8a4deba6498bf07d96b215a574": "ef0910f6e572ab84e8e6dd5f91bbc3d6fb35cd18d8c885fc524e7eb30c67d17f", "/inspire/hdd3/project/agent-driven-world-model/ky26300/manimux_training/weights/base/pi05_base/params/ocdbt.process_0/d/7bc9d3296d23a6fb83a6b3778ac6e964": "0be2d8e4bfb6c5bce4a05a442ce5bd6138ce4c036145d8fa792479198de105b8", "/inspire/hdd3/project/agent-driven-world-model/ky26300/manimux_training/weights/base/pi05_base/params/ocdbt.process_0/d/7d78f38c5d8be1eea31406644dde9bd6": "4a84f8371fc9d951fb0448ed0c929d356d2cd4a81d13d0b82b251c59d3683151", "/inspire/hdd3/project/agent-driven-world-model/ky26300/manimux_training/weights/base/pi05_base/params/ocdbt.process_0/d/828bee85475e37c61e1cc19e32d1c5ef": "ae242dcb83de657ef72e779e435ae3d75cf991f15d996807b9566562a2a47a6f", "/inspire/hdd3/project/agent-driven-world-model/ky26300/manimux_training/weights/base/pi05_base/params/ocdbt.process_0/d/8c5d7070ea57bdce2f0a19f95b8a21b4": "75799900494cb9bdbd12acafd86858add78fb95946be564d28a8401a5baee764", "/inspire/hdd3/project/agent-driven-world-model/ky26300/manimux_training/weights/base/pi05_base/params/ocdbt.process_0/d/b4349aaadb7dfa45c3a53fc67c04b8f6": "306be49ac582f312d901d3ec41a38bc06d582dfb1e6f2d0e8160b9f7d517e535", "/inspire/hdd3/project/agent-driven-world-model/ky26300/manimux_training/weights/base/pi05_base/params/ocdbt.process_0/d/caf01a82962cbd4651563d2ac1063e0b": "f2a18128db3a56347f223f53a4ae85c658a3cf5f6bc5f01af53f5871185c08f7", "/inspire/hdd3/project/agent-driven-world-model/ky26300/manimux_training/weights/base/pi05_base/params/ocdbt.process_0/d/deefd3c43390a50472cbcd317b0fff58": "9dfb1737f7640313fd74bcd9a9b0c858abe0a088313bd2d2782f562cccb5f069", "/inspire/hdd3/project/agent-driven-world-model/ky26300/manimux_training/weights/base/pi05_base/params/ocdbt.process_0/d/ec484cf8f02dcf59e1892180f0862e40": "6fc7cdad578faaa7fcd7c6805216396416e3daac637304c0d57454f62719663c", "/inspire/hdd3/project/agent-driven-world-model/ky26300/manimux_training/weights/base/pi05_base/params/ocdbt.process_0/manifest.ocdbt": "667bd6f7f89374732f6bfe10dd446218efa5cdc99eca2af1006ba40f95ee29d0", "/inspire/hdd3/project/agent-driven-world-model/ky26300/wam_latest_300ep_20261012/PI05_DATA_READY.json": "25739dd88690ac94c2be548a297c6cb048d5e63a334c3d19be5f10e0be2fe6ae", "/inspire/hdd3/project/agent-driven-world-model/ky26300/wam_latest_300ep_20261012/SOURCE_MANIFEST.json": "632951151511ac250689a4f1aa818f28a9c63af405cf67784921e9340b73a5d4", "/inspire/hdd3/project/agent-driven-world-model/ky26300/wam_latest_300ep_20261012/TRAINING_SELECTION.json": "eed5508e12d67b122c96dfee55ebf84f46a9713343cac7fa3c56aa5cbcd5f7bb", "/inspire/hdd3/project/agent-driven-world-model/ky26300/wam_latest_300ep_20261012/pi05.env": "14d37a02b880be050a93c228b116c8ee9f071e7ef0117dda6367b5104e77148e", "/inspire/hdd3/project/agent-driven-world-model/ky26300/wam_latest_300ep_20261012/prepare_pi05.py": "05e9f7b407a1f355e675620607ac0b35b945efc91cddd22df228e7bb006a4933", "/inspire/hdd3/project/agent-driven-world-model/ky26300/wam_latest_300ep_20261012/train_pi05.sh": "09a62a92af3ade7adbc95dba6b8ac9d62ed492b0631ce450c6688daf9921b132", "/inspire/hdd3/project/agent-driven-world-model/ky26300/wam_latest_300ep_20261012/yam_latest_20261012_300ep_joint_ee_v1/READY.json": "ccf165ada2f24b270bcacaf8d0aec6535305c9f3703a9002151d0c8c375e44de", "/inspire/hdd3/project/agent-driven-world-model/ky26300/wam_latest_300ep_20261012/yam_latest_20261012_300ep_joint_ee_v1/data/chunk-000/file-000.parquet": "892550fc512eab3b5e885f7add409c17d41eb3fb61dcc151b6b4c7cbbaefd3ac", "/inspire/hdd3/project/agent-driven-world-model/ky26300/wam_latest_300ep_20261012/yam_latest_20261012_300ep_joint_ee_v1/meta/episodes/chunk-000/file-000.parquet": "43313ef3b1fd6725e93574e14e9fe35f95e5e5653a88bfb2ee5cbd8a77a2e7fc", "/inspire/hdd3/project/agent-driven-world-model/ky26300/wam_latest_300ep_20261012/yam_latest_20261012_300ep_joint_ee_v1/meta/info.json": "7d4961e858ad9414052cb69685836ccb01543fda13d56f439b092082124da3da", "/inspire/hdd3/project/agent-driven-world-model/ky26300/wam_latest_300ep_20261012/yam_latest_20261012_300ep_joint_ee_v1/meta/stats.json": "62708a66c67603827186f76b00d7a2d4ea09262c247b9dd1258eaa73f3fb09f4", "/inspire/hdd3/project/agent-driven-world-model/ky26300/wam_latest_300ep_20261012/yam_latest_20261012_300ep_joint_ee_v1/meta/tasks.parquet": "65b15a9f31a23f328d4ae8f83240b3fe3600c5471f404c5cb544a5937dbd5ff9", "/inspire/hdd3/project/agent-driven-world-model/ky26300/wam_latest_300ep_20261012/yam_latest_20261012_300ep_joint_ee_v1/videos/observation.images.left_rgb/chunk-000/file-000.mp4": "a5935ac98571be4f233e877f323027653766f4bf33fe1333861a2d8e31631e57", "/inspire/hdd3/project/agent-driven-world-model/ky26300/wam_latest_300ep_20261012/yam_latest_20261012_300ep_joint_ee_v1/videos/observation.images.left_rgb/chunk-000/file-001.mp4": "0cda5bfcae24c7f3514c0ddd372223f84b2ab5f9acefbd67ff967bcfd819a3fb", "/inspire/hdd3/project/agent-driven-world-model/ky26300/wam_latest_300ep_20261012/yam_latest_20261012_300ep_joint_ee_v1/videos/observation.images.left_rgb/chunk-000/file-002.mp4": "8a3f2b4a17422893590acb55c5534df6fdc55f42487cf5eb44449aac684ddc57", "/inspire/hdd3/project/agent-driven-world-model/ky26300/wam_latest_300ep_20261012/yam_latest_20261012_300ep_joint_ee_v1/videos/observation.images.left_rgb/chunk-000/file-003.mp4": "82ad94b8676e9edb6af6e59385ca1a9721b768d2c9a3d9c5c8fcfd5af8a5210a", "/inspire/hdd3/project/agent-driven-world-model/ky26300/wam_latest_300ep_20261012/yam_latest_20261012_300ep_joint_ee_v1/videos/observation.images.left_rgb/chunk-000/file-004.mp4": "5aadf8ad7ff46c2d0d4f366bf191bf26edd45fbd4ce39bd12fc8dc71e7361b84", "/inspire/hdd3/project/agent-driven-world-model/ky26300/wam_latest_300ep_20261012/yam_latest_20261012_300ep_joint_ee_v1/videos/observation.images.left_rgb/chunk-000/file-005.mp4": "cba7f23614df84dff99d715c54e5f99fea6dadcac0b4ff31a0b68e1556ac8e10", "/inspire/hdd3/project/agent-driven-world-model/ky26300/wam_latest_300ep_20261012/yam_latest_20261012_300ep_joint_ee_v1/videos/observation.images.right_rgb/chunk-000/file-000.mp4": "d0f4ed8a17e1785d2a64088bf4900a5ba46346c7481becd58e5e6ba43e3c0d2f", "/inspire/hdd3/project/agent-driven-world-model/ky26300/wam_latest_300ep_20261012/yam_latest_20261012_300ep_joint_ee_v1/videos/observation.images.right_rgb/chunk-000/file-001.mp4": "11badfe75228dfa696b5efe4ad9a1bc867f5c2bb15e8524fc790a42acba0a37e", "/inspire/hdd3/project/agent-driven-world-model/ky26300/wam_latest_300ep_20261012/yam_latest_20261012_300ep_joint_ee_v1/videos/observation.images.right_rgb/chunk-000/file-002.mp4": "d2e2a6611ab603e3e0660a50ccdd0141e39631d3ec20f101d124728cb2b5ae62", "/inspire/hdd3/project/agent-driven-world-model/ky26300/wam_latest_300ep_20261012/yam_latest_20261012_300ep_joint_ee_v1/videos/observation.images.right_rgb/chunk-000/file-003.mp4": "6a1027e38e46a2d49bc243e36c753eed677b59957b0dcff042748dab4f8f1147", "/inspire/hdd3/project/agent-driven-world-model/ky26300/wam_latest_300ep_20261012/yam_latest_20261012_300ep_joint_ee_v1/videos/observation.images.right_rgb/chunk-000/file-004.mp4": "45bca7f5addffe5fb5e1d19d005c2b4e2f5aa9d71123abc870acac7cf19f837c", "/inspire/hdd3/project/agent-driven-world-model/ky26300/wam_latest_300ep_20261012/yam_latest_20261012_300ep_joint_ee_v1/videos/observation.images.right_rgb/chunk-000/file-005.mp4": "39f66faa012a4aedc5a95a74301e55338aeb5aa230be651a37492a14078dc28b", "/inspire/hdd3/project/agent-driven-world-model/ky26300/wam_latest_300ep_20261012/yam_latest_20261012_300ep_joint_ee_v1/videos/observation.images.right_rgb/chunk-000/file-006.mp4": "070ee9154dcfa70d65defd8d383c15f3e8f332428c8faf6f9fe1f1d5bd81c113", "/inspire/hdd3/project/agent-driven-world-model/ky26300/wam_latest_300ep_20261012/yam_latest_20261012_300ep_joint_ee_v1/videos/observation.images.top_rgb/chunk-000/file-000.mp4": "10b8c8dad712b9a68d77bd9d40e31e21a66671a7ebc844cd0cbd9612b7aca28c", "/inspire/hdd3/project/agent-driven-world-model/ky26300/wam_latest_300ep_20261012/yam_latest_20261012_300ep_joint_ee_v1/videos/observation.images.top_rgb/chunk-000/file-001.mp4": "f404e534750185827d80d24398cb10a8d559f1adf0b5792b47e95bacb8d777a3", "/inspire/hdd3/project/agent-driven-world-model/ky26300/wam_latest_300ep_20261012/yam_latest_20261012_300ep_joint_ee_v1/videos/observation.images.top_rgb/chunk-000/file-002.mp4": "8618419a1f20a8a7e65c217092abb78f68e909d14df9f42afc0e09336211b4e5", "/inspire/hdd3/project/agent-driven-world-model/ky26300/wam_latest_300ep_20261012/yam_latest_20261012_300ep_joint_ee_v1/videos/observation.images.top_rgb/chunk-000/file-003.mp4": "7270783792306dd4b543530ded743a80891bbacc335657ab52571e40345683b2", "/inspire/hdd3/project/agent-driven-world-model/ky26300/wam_latest_300ep_20261012/yam_latest_20261012_300ep_joint_ee_v1/videos/observation.images.top_rgb/chunk-000/file-004.mp4": "34c58d21d5a180e6bd5981f6adc28f92d7beece526ec86d149b2f6a3fa07a38d", "/inspire/hdd3/project/agent-driven-world-model/ky26300/wam_latest_300ep_20261012/yam_latest_20261012_300ep_joint_ee_v1/videos/observation.images.top_rgb/chunk-000/file-005.mp4": "299beaa643d41e641238b5f1c88eba66ea0a40d7ddb2df618df287afe35ab4fc", "/inspire/hdd3/project/agent-driven-world-model/ky26300/wam_latest_300ep_20261012/yam_latest_20261012_300ep_joint_ee_v1/videos/observation.images.top_rgb/chunk-000/file-006.mp4": "c925c45906ff552fd0c85dfce34fbc565302fc924aee7dab3e457e2a5bfd4007", "/inspire/hdd3/project/agent-driven-world-model/ky26300/wam_latest_300ep_20261012/yam_latest_20261012_300ep_joint_ee_v1/videos/observation.images.top_rgb/chunk-000/file-007.mp4": "ec58ce45f44933a4631861706f31209c99f9a469c5148c925cfb1e0b377a5f15", "/inspire/hdd3/project/agent-driven-world-model/ky26300/wam_latest_300ep_20261012/yam_latest_20261012_300ep_joint_ee_v1/videos/observation.images.top_rgb/chunk-000/file-008.mp4": "6b2300e4fb7761250d83977e7657af48b3b2b2939fefda98c58b9442bdc8779c", "/inspire/hdd3/project/agent-driven-world-model/ky26300/yam_mixed_20261010/yam_to_lerobot.py": "47f7d59459bfd2d41c905c588f8545c1cca91b9cd73b51dcd0b17d586ceba1d8" }, "episodes": 300, "frames": 170285, "tasks": 6, "global_batch": 64, "steps": 30000, "gpus": 8, "max_hours": 200, "initialization": "fresh official pi05_base; no resume", "prior_pi05_source_and_base_hashes_match": true}1234567891011121314151617{ "episodes": 300, "frames": 170285, "tasks": 6, "task_counts": { "put_the_coin_into_the_bin2": 50, "stack_blocks_medium": 50, "stack_blocks_small": 50, "put_bottles_into_the_bin": 50, "press_rotating_clock": 50, "pick_the_moving_cube": 50 }, "norm_stats": "/inspire/hdd3/project/agent-driven-world-model/ky26300/manimux_training/cache/pi05/assets/pi05_yam/yam_latest_20261012_300ep_joint_ee_v1/norm_stats.json", "dataset": "/inspire/hdd3/project/agent-driven-world-model/ky26300/wam_latest_300ep_20261012/yam_latest_20261012_300ep_joint_ee_v1", "global_batch": 64, "steps": 30000}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274{ "codebase_version": "v3.0", "robot_type": null, "total_episodes": 300, "total_frames": 170285, "total_tasks": 6, "chunks_size": 1000, "data_files_size_in_mb": 100, "video_files_size_in_mb": 200, "fps": 30, "splits": { "train": "0:300" }, "data_path": "data/chunk-{chunk_index:03d}/file-{file_index:03d}.parquet", "video_path": "videos/{video_key}/chunk-{chunk_index:03d}/file-{file_index:03d}.mp4", "features": { "observation.images.left_rgb": { "dtype": "video", "shape": [ 480, 640, 3 ], "names": [ "height", "width", "channels" ], "info": { "video.height": 480, "video.width": 640, "video.codec": "av1", "video.pix_fmt": "yuv420p", "video.is_depth_map": false, "video.fps": 30, "video.channels": 3, "has_audio": false } }, "observation.images.top_rgb": { "dtype": "video", "shape": [ 480, 640, 3 ], "names": [ "height", "width", "channels" ], "info": { "video.height": 480, "video.width": 640, "video.codec": "av1", "video.pix_fmt": "yuv420p", "video.is_depth_map": false, "video.fps": 30, "video.channels": 3, "has_audio": false } }, "observation.images.right_rgb": { "dtype": "video", "shape": [ 480, 640, 3 ], "names": [ "height", "width", "channels" ], "info": { "video.height": 480, "video.width": 640, "video.codec": "av1", "video.pix_fmt": "yuv420p", "video.is_depth_map": false, "video.fps": 30, "video.channels": 3, "has_audio": false } }, "observation.state": { "dtype": "float32", "shape": [ 14 ], "names": [ "left_joint_0", "left_joint_1", "left_joint_2", "left_joint_3", "left_joint_4", "left_joint_5", "left_gripper", "right_joint_0", "right_joint_1", "right_joint_2", "right_joint_3", "right_joint_4", "right_joint_5", "right_gripper" ] }, "action": { "dtype": "float32", "shape": [ 14 ], "names": [ "left_joint_0", "left_joint_1", "left_joint_2", "left_joint_3", "left_joint_4", "left_joint_5", "left_gripper", "right_joint_0", "right_joint_1", "right_joint_2", "right_joint_3", "right_joint_4", "right_joint_5", "right_gripper" ] }, "observation.ee_pose": { "dtype": "float32", "shape": [ 24 ], "names": [ "left_ee_x", "left_ee_y", "left_ee_z", "left_ee_rotm_00", "left_ee_rotm_01", "left_ee_rotm_02", "left_ee_rotm_10", "left_ee_rotm_11", "left_ee_rotm_12", "left_ee_rotm_20", "left_ee_rotm_21", "left_ee_rotm_22", "right_ee_x", "right_ee_y", "right_ee_z", "right_ee_rotm_00", "right_ee_rotm_01", "right_ee_rotm_02", "right_ee_rotm_10", "right_ee_rotm_11", "right_ee_rotm_12", "right_ee_rotm_20", "right_ee_rotm_21", "right_ee_rotm_22" ] }, "action.ee_pose": { "dtype": "float32", "shape": [ 24 ], "names": [ "left_ee_x", "left_ee_y", "left_ee_z", "left_ee_rotm_00", "left_ee_rotm_01", "left_ee_rotm_02", "left_ee_rotm_10", "left_ee_rotm_11", "left_ee_rotm_12", "left_ee_rotm_20", "left_ee_rotm_21", "left_ee_rotm_22", "right_ee_x", "right_ee_y", "right_ee_z", "right_ee_rotm_00", "right_ee_rotm_01", "right_ee_rotm_02", "right_ee_rotm_10", "right_ee_rotm_11", "right_ee_rotm_12", "right_ee_rotm_20", "right_ee_rotm_21", "right_ee_rotm_22" ] }, "observation.state.end.position": { "dtype": "float32", "shape": [ 14 ], "names": [ "left_ee_x", "left_ee_y", "left_ee_z", "left_ee_qx", "left_ee_qy", "left_ee_qz", "left_ee_qw", "right_ee_x", "right_ee_y", "right_ee_z", "right_ee_qx", "right_ee_qy", "right_ee_qz", "right_ee_qw" ] }, "action.end.position": { "dtype": "float32", "shape": [ 14 ], "names": [ "left_ee_x", "left_ee_y", "left_ee_z", "left_ee_qx", "left_ee_qy", "left_ee_qz", "left_ee_qw", "right_ee_x", "right_ee_y", "right_ee_z", "right_ee_qx", "right_ee_qy", "right_ee_qz", "right_ee_qw" ] }, "timestamp": { "dtype": "float32", "shape": [ 1 ], "names": null }, "frame_index": { "dtype": "int64", "shape": [ 1 ], "names": null }, "episode_index": { "dtype": "int64", "shape": [ 1 ], "names": null }, "index": { "dtype": "int64", "shape": [ 1 ], "names": null }, "task_index": { "dtype": "int64", "shape": [ 1 ], "names": null } }}123456789export YAM_TRAIN_ROOT=/inspire/hdd3/project/agent-driven-world-model/ky26300/manimux_trainingexport PI05_WORKSPACE=/inspire/hdd3/project/agent-driven-world-model/ky26300/manimux_trainingexport OPENPI_TASK_NAME=yam_mixedexport OPENPI_LEROBOT_REPO_ID=yam_latest_20261012_300ep_joint_ee_v1export OPENPI_EXPECTED_EPISODES=300export OPENPI_GPU_IDS=0,1,2,3,4,5,6,7 OPENPI_FSDP_DEVICES=4export OPENPI_BATCH_SIZE=64 OPENPI_NUM_TRAIN_STEPS=30000 OPENPI_SAVE_INTERVAL=5000 OPENPI_MAX_TO_KEEP=10export OPENPI_NUM_WORKERS=32 OPENPI_PREFETCH_BATCHES=64 OPENPI_RESUME=0export OPENPI_WANDB_ENABLED=false WANDB_MODE=disabled WANDB_DISABLED=true123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117import dataclassesfrom typing import TYPE_CHECKING
import flax.nnx as nnximport jaximport jax.numpy as jnpfrom typing_extensions import override
from openpi.models import model as _modelimport openpi.models.gemma as _gemmafrom openpi.shared import array_typing as atimport openpi.shared.nnx_utils as nnx_utils
if TYPE_CHECKING: from openpi.models.pi0 import Pi0
@dataclasses.dataclass(frozen=True)class Pi0Config(_model.BaseModelConfig): dtype: str = "bfloat16" paligemma_variant: _gemma.Variant = "gemma_2b" action_expert_variant: _gemma.Variant = "gemma_300m"
# Set the model specific defaults. action_dim: int = 32 action_horizon: int = 50 max_token_len: int = None # type: ignore # Pi05 has two differences from Pi0: # - the state input is part of the discrete language tokens rather than a continuous input that is part of the suffix # - the action expert uses adaRMSNorm to inject the flow matching timestep pi05: bool = False # This config option is not used directly by the model, but it is read by the ModelTransformFactory. discrete_state_input: bool = None # type: ignore
pytorch_compile_mode: str | None = "max-autotune"
def __post_init__(self): if self.max_token_len is None: object.__setattr__(self, "max_token_len", 200 if self.pi05 else 48) if self.discrete_state_input is None: object.__setattr__(self, "discrete_state_input", self.pi05) if self.pytorch_compile_mode is not None: assert self.pytorch_compile_mode in [ "default", "reduce-overhead", "max-autotune", "max-autotune-no-cudagraphs", ]
@property @override def model_type(self) -> _model.ModelType: if self.pi05: return _model.ModelType.PI05 return _model.ModelType.PI0
@override def create(self, rng: at.KeyArrayLike) -> "Pi0": from openpi.models.pi0 import Pi0
return Pi0(self, rngs=nnx.Rngs(rng))
@override def inputs_spec(self, *, batch_size: int = 1) -> tuple[_model.Observation, _model.Actions]: image_spec = jax.ShapeDtypeStruct([batch_size, *_model.IMAGE_RESOLUTION, 3], jnp.float32) image_mask_spec = jax.ShapeDtypeStruct([batch_size], jnp.bool_)
with at.disable_typechecking(): observation_spec = _model.Observation( images={ "base_0_rgb": image_spec, "left_wrist_0_rgb": image_spec, "right_wrist_0_rgb": image_spec, }, image_masks={ "base_0_rgb": image_mask_spec, "left_wrist_0_rgb": image_mask_spec, "right_wrist_0_rgb": image_mask_spec, }, state=jax.ShapeDtypeStruct([batch_size, self.action_dim], jnp.float32), tokenized_prompt=jax.ShapeDtypeStruct([batch_size, self.max_token_len], jnp.int32), tokenized_prompt_mask=jax.ShapeDtypeStruct([batch_size, self.max_token_len], bool), ) action_spec = jax.ShapeDtypeStruct([batch_size, self.action_horizon, self.action_dim], jnp.float32)
return observation_spec, action_spec
def get_freeze_filter(self) -> nnx.filterlib.Filter: """Returns the freeze filter based on the model config.""" filters = [] has_lora = False gemma_params_filter = nnx_utils.PathRegex(".*llm.*") action_expert_params_filter = nnx_utils.PathRegex(".*llm.*_1.*") if "lora" in self.paligemma_variant: filters.append( gemma_params_filter, ) if "lora" not in self.action_expert_variant: # If only freeze gemma params, exclude action expert params. filters.append( nnx.Not(action_expert_params_filter), ) has_lora = True elif "lora" in self.action_expert_variant: filters.append( action_expert_params_filter, ) has_lora = True
if has_lora: # If any lora is used, exclude all lora params. filters.append( nnx.Not(nnx_utils.PathRegex(".*lora.*")), ) if not filters: return nnx.Nothing return nnx.All(*filters)12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394import loggingimport osimport pathlibfrom typing import Any
import jax.numpy as jnp
import openpi.models.model as _modelimport openpi.policies.policy as _policyimport openpi.shared.download as downloadfrom openpi.training import checkpoints as _checkpointsfrom openpi.training import config as _configimport openpi.transforms as transforms
def create_trained_policy( train_config: _config.TrainConfig, checkpoint_dir: pathlib.Path | str, *, repack_transforms: transforms.Group | None = None, sample_kwargs: dict[str, Any] | None = None, default_prompt: str | None = None, norm_stats: dict[str, transforms.NormStats] | None = None, pytorch_device: str | None = None,) -> _policy.Policy: """Create a policy from a trained checkpoint.
Args: train_config: The training config to use to create the model. checkpoint_dir: The directory to load the model from. repack_transforms: Optional transforms that will be applied before any other transforms. sample_kwargs: The kwargs to pass to the `sample_actions` method. If not provided, the default kwargs will be used. default_prompt: The default prompt to use for the policy. Will inject the prompt into the input data if it doesn't already exist. norm_stats: The norm stats to use for the policy. If not provided, the norm stats will be loaded from the checkpoint directory. pytorch_device: Device to use for PyTorch models (e.g., "cpu", "cuda", "cuda:0"). If None and is_pytorch=True, will use "cuda" if available, otherwise "cpu".
Note: The function automatically detects whether the model is PyTorch-based by checking for the presence of "model.safensors" in the checkpoint directory. """ repack_transforms = repack_transforms or transforms.Group() checkpoint_dir = download.maybe_download(str(checkpoint_dir))
# Check if this is a PyTorch model by looking for model.safetensors weight_path = os.path.join(checkpoint_dir, "model.safetensors") is_pytorch = os.path.exists(weight_path)
logging.info("Loading model...") if is_pytorch: model = train_config.model.load_pytorch(train_config, weight_path) model.paligemma_with_expert.to_bfloat16_for_selected_params("bfloat16") else: model = train_config.model.load(_model.restore_params(checkpoint_dir / "params", dtype=jnp.bfloat16)) data_config = train_config.data.create(train_config.assets_dirs, train_config.model) if norm_stats is None: # We are loading the norm stats from the checkpoint instead of the config assets dir to make sure # that the policy is using the same normalization stats as the original training process. if data_config.asset_id is None: raise ValueError("Asset id is required to load norm stats.") norm_stats = _checkpoints.load_norm_stats(checkpoint_dir / "assets", data_config.asset_id)
# Determine the device to use for PyTorch models if is_pytorch and pytorch_device is None: try: import torch
pytorch_device = "cuda" if torch.cuda.is_available() else "cpu" except ImportError: pytorch_device = "cpu"
return _policy.Policy( model, transforms=[ *repack_transforms.inputs, transforms.InjectDefaultPrompt(default_prompt), *data_config.data_transforms.inputs, transforms.Normalize(norm_stats, use_quantiles=data_config.use_quantile_norm), *data_config.model_transforms.inputs, ], output_transforms=[ *data_config.model_transforms.outputs, transforms.Unnormalize(norm_stats, use_quantiles=data_config.use_quantile_norm), *data_config.data_transforms.outputs, *repack_transforms.outputs, ], sample_kwargs=sample_kwargs, metadata=train_config.policy_metadata, is_pytorch=is_pytorch, pytorch_device=pytorch_device if is_pytorch else None, )1234567891011121314151617181920#!/usr/bin/env bashset -euo pipefailR=/inspire/hdd3/project/agent-driven-world-model/ky26300/wam_latest_300ep_20261012source "$R/pi05.env"OPENPI_EXPECTED_FRAMES=$("$YAM_TRAIN_ROOT/envs/pi05/.venv/bin/python" -c "import json; print(json.load(open('$R/PI05_DATA_READY.json'))['frames'])")export OPENPI_EXPECTED_FRAMESW="$YAM_TRAIN_ROOT"run=pi05_yam_latest_20261012_300ep_30kentry="$W/training/coin-models-20260927/train_pi05_yam_cluster.sh"test ! -e "$W/weights/finetuned/pi05/$run""$W/envs/pi05/.venv/bin/python" - "$R" <<'PY'from pathlib import Pathimport hashlib,json,sysr=Path(sys.argv[1]);ready=json.loads((r/'PI05_DATA_READY.json').read_text())assert (ready['episodes'],ready['tasks'])==(300,6)for path,expected in json.loads((r/'FROZEN_INPUTS.json').read_text())['files'].items(): with open(path,'rb') as f:assert hashlib.file_digest(f,'sha256').hexdigest()==expected,pathprint('Frozen source/data/statistics/base-weight hashes verified.',flush=True)PYexec bash "$entry" train "$run"123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919"""See _CONFIGS for the list of available configs."""
import abcfrom collections.abc import Sequenceimport dataclassesimport difflibimport loggingimport osimport pathlibfrom typing import Any, Literal, Protocol, TypeAlias
import etils.epath as epathimport flax.nnx as nnxfrom typing_extensions import overrideimport tyro
import openpi.models.model as _modelimport openpi.models.pi0_config as pi0_configimport openpi.models.pi0_fast as pi0_fastimport openpi.models.tokenizer as _tokenizerimport openpi.policies.aloha_policy as aloha_policyimport openpi.policies.droid_policy as droid_policyimport openpi.policies.libero_policy as libero_policyimport openpi.policies.yam_policy as yam_policyimport openpi.policies.wuji_policy as wuji_policyimport openpi.shared.download as _downloadimport openpi.shared.normalize as _normalizeimport openpi.training.droid_rlds_dataset as droid_rlds_datasetimport openpi.training.misc.polaris_config as polaris_configimport openpi.training.misc.roboarena_config as roboarena_configimport openpi.training.optimizer as _optimizerimport openpi.training.weight_loaders as weight_loadersimport openpi.transforms as _transforms
# RoboDojo normalization assets bundled with this adapter (openpi/assets/RoboDojo_assets)._ROBODOJO_ASSETS_DIR = pathlib.Path(__file__).resolve().parents[3] / "assets" / "RoboDojo_assets"# Norm stats for Tianji Marvin + Wuji Hand (written by compute_norm_stats)._WUJI_ASSETS_DIR = pathlib.Path(__file__).resolve().parents[3] / "assets" / "Wuji_assets"
ModelType: TypeAlias = _model.ModelType# Work around a tyro issue with using nnx.filterlib.Filter directly.Filter: TypeAlias = nnx.filterlib.Filter
@dataclasses.dataclass(frozen=True)class AssetsConfig: """Determines the location of assets (e.g., norm stats) that will be used to set up the data pipeline.
These assets will be replicated inside the checkpoint under the `assets/asset_id` directory.
This can be used to load assets from a different checkpoint (e.g., base model checkpoint) or some other centralized location. For example, to load the norm stats for the Trossen robot from the base model checkpoint during fine-tuning, use:
``` AssetsConfig( assets_dir="gs://openpi-assets/checkpoints/pi0_base/assets", asset_id="trossen", ) ``` """
# Assets directory. If not provided, the config assets_dirs will be used. This is useful to load assets from # a different checkpoint (e.g., base model checkpoint) or some other centralized location. assets_dir: str | None = None
# Asset id. If not provided, the repo id will be used. This allows users to reference assets that describe # different robot platforms. asset_id: str | None = None
@dataclasses.dataclass(frozen=True)class DataConfig: # LeRobot repo id. If None, fake data will be created. repo_id: str | None = None # Video decoder backend for LeRobot datasets. Forced to pyav by default because # torchcodec is present in some environments but not fully functional at runtime. video_backend: Literal["pyav", "torchcodec", "video_reader"] = "pyav" # Directory within the assets directory containing the data assets. asset_id: str | None = None # Contains precomputed normalization stats. If None, normalization will not be performed. norm_stats: dict[str, _transforms.NormStats] | None = None
# Used to adopt the inputs from a dataset specific format to a common format # which is expected by the data transforms. repack_transforms: _transforms.Group = dataclasses.field(default_factory=_transforms.Group) # Data transforms, typically include robot specific transformations. Will be applied # before the data is normalized. See `model.Observation` and `model.Actions` to learn about the # normalized data. data_transforms: _transforms.Group = dataclasses.field(default_factory=_transforms.Group) # Model specific transforms. Will be applied after the data is normalized. model_transforms: _transforms.Group = dataclasses.field(default_factory=_transforms.Group) # If true, will use quantile normalization. Otherwise, normal z-score normalization will be used. use_quantile_norm: bool = False
# Names of keys that will be used by the data loader to generate the action sequence. The length of the # sequence is defined by the `action_horizon` field in the model config. This should be adjusted if your # LeRobot dataset is using different keys to represent the action. action_sequence_keys: Sequence[str] = ("actions",)
# If true, will use the LeRobot dataset task to define the prompt. prompt_from_task: bool = False
# Only used for RLDS data loader (ie currently only used for DROID). rlds_data_dir: str | None = None # Action space for DROID dataset. action_space: droid_rlds_dataset.DroidActionSpace | None = None # List of datasets to sample from: name, version, weight, and optionally filter_dict_path datasets: Sequence[droid_rlds_dataset.RLDSDataset] = ()
class GroupFactory(Protocol): def __call__(self, model_config: _model.BaseModelConfig) -> _transforms.Group: """Create a group."""
@dataclasses.dataclass(frozen=True)class ModelTransformFactory(GroupFactory): """Creates model transforms for standard pi0 models."""
# If provided, will determine the default prompt that be used by the model. default_prompt: str | None = None
def __call__(self, model_config: _model.BaseModelConfig) -> _transforms.Group: match model_config.model_type: case _model.ModelType.PI0: return _transforms.Group( inputs=[ _transforms.InjectDefaultPrompt(self.default_prompt), _transforms.ResizeImages(224, 224), _transforms.TokenizePrompt( _tokenizer.PaligemmaTokenizer(model_config.max_token_len), ), _transforms.PadStatesAndActions(model_config.action_dim), ], ) case _model.ModelType.PI05: assert isinstance(model_config, pi0_config.Pi0Config) return _transforms.Group( inputs=[ _transforms.InjectDefaultPrompt(self.default_prompt), _transforms.ResizeImages(224, 224), _transforms.TokenizePrompt( _tokenizer.PaligemmaTokenizer(model_config.max_token_len), discrete_state_input=model_config.discrete_state_input, ), _transforms.PadStatesAndActions(model_config.action_dim), ], ) case _model.ModelType.PI0_FAST: tokenizer_cls = ( _tokenizer.FASTTokenizer if model_config.fast_model_tokenizer is None else model_config.fast_model_tokenizer ) tokenizer_kwargs = ( {} if model_config.fast_model_tokenizer_kwargs is None else model_config.fast_model_tokenizer_kwargs ) return _transforms.Group( inputs=[ _transforms.InjectDefaultPrompt(self.default_prompt), _transforms.ResizeImages(224, 224), _transforms.TokenizeFASTInputs( tokenizer_cls(model_config.max_token_len, **tokenizer_kwargs), ), ], outputs=[ _transforms.ExtractFASTActions( tokenizer_cls(model_config.max_token_len, **tokenizer_kwargs), action_horizon=model_config.action_horizon, action_dim=model_config.action_dim, ) ], )
@dataclasses.dataclass(frozen=True)class DataConfigFactory(abc.ABC): # The LeRobot repo id. repo_id: str = tyro.MISSING # Determines how the assets will be loaded. assets: AssetsConfig = dataclasses.field(default_factory=AssetsConfig) # Base config that will be updated by the factory. base_config: tyro.conf.Suppress[DataConfig | None] = None
@abc.abstractmethod def create(self, assets_dirs: pathlib.Path, model_config: _model.BaseModelConfig) -> DataConfig: """Create a data config."""
def create_base_config(self, assets_dirs: pathlib.Path, model_config: _model.BaseModelConfig) -> DataConfig: repo_id = self.repo_id if self.repo_id is not tyro.MISSING else None asset_id = self.assets.asset_id or repo_id return dataclasses.replace( self.base_config or DataConfig(), repo_id=repo_id, asset_id=asset_id, norm_stats=self._load_norm_stats(epath.Path(self.assets.assets_dir or assets_dirs), asset_id), use_quantile_norm=model_config.model_type != ModelType.PI0, )
def _load_norm_stats(self, assets_dir: epath.Path, asset_id: str | None) -> dict[str, _transforms.NormStats] | None: if asset_id is None: return None try: data_assets_dir = str(assets_dir / asset_id) norm_stats = _normalize.load(_download.maybe_download(data_assets_dir)) logging.info(f"Loaded norm stats from {data_assets_dir}") return norm_stats except FileNotFoundError: logging.info(f"Norm stats not found in {data_assets_dir}, skipping.") return None
@dataclasses.dataclass(frozen=True)class FakeDataConfig(DataConfigFactory): repo_id: str = "fake"
@override def create(self, assets_dirs: pathlib.Path, model_config: _model.BaseModelConfig) -> DataConfig: return DataConfig(repo_id=self.repo_id)
@dataclasses.dataclass(frozen=True)class SimpleDataConfig(DataConfigFactory): # Factory for the data transforms. data_transforms: tyro.conf.Suppress[GroupFactory] = dataclasses.field(default_factory=GroupFactory) # Factory for the model transforms. model_transforms: tyro.conf.Suppress[GroupFactory] = dataclasses.field(default_factory=ModelTransformFactory)
@override def create(self, assets_dirs: pathlib.Path, model_config: _model.BaseModelConfig) -> DataConfig: return dataclasses.replace( self.create_base_config(assets_dirs, model_config), data_transforms=self.data_transforms(model_config), model_transforms=self.model_transforms(model_config), )
@dataclasses.dataclass(frozen=True)class LeRobotAlohaDataConfig(DataConfigFactory): # If true, will convert joint dimensions to deltas with respect to the current state before passing to the model. # Gripper dimensions will remain in absolute values. use_delta_joint_actions: bool = True # If provided, will be injected into the input data if the "prompt" key is not present. default_prompt: str | None = None # If true, this will convert the joint and gripper values from the standard Aloha space to # the space used by the pi internal runtime which was used to train the base model. People who # use standard Aloha data should set this to true. adapt_to_pi: bool = False
# Repack transforms. repack_transforms: tyro.conf.Suppress[_transforms.Group] = dataclasses.field( default=_transforms.Group( inputs=[ _transforms.RepackTransform( { "images": {"cam_high": "observation.images.top"}, "state": "observation.state", "actions": "action", } ) ] ) ) # Action keys that will be used to read the action sequence from the dataset. action_sequence_keys: Sequence[str] = ("action",)
@override def create(self, assets_dirs: pathlib.Path, model_config: _model.BaseModelConfig) -> DataConfig: data_transforms = _transforms.Group( inputs=[aloha_policy.AlohaInputs(adapt_to_pi=self.adapt_to_pi)], outputs=[aloha_policy.AlohaOutputs(adapt_to_pi=self.adapt_to_pi)], ) if self.use_delta_joint_actions: delta_action_mask = _transforms.make_bool_mask(6, -1, 6, -1) data_transforms = data_transforms.push( inputs=[_transforms.DeltaActions(delta_action_mask)], outputs=[_transforms.AbsoluteActions(delta_action_mask)], )
model_transforms = ModelTransformFactory(default_prompt=self.default_prompt)(model_config)
return dataclasses.replace( self.create_base_config(assets_dirs, model_config), repack_transforms=self.repack_transforms, data_transforms=data_transforms, model_transforms=model_transforms, action_sequence_keys=self.action_sequence_keys, )
@dataclasses.dataclass(frozen=True)class LeRobotYamDataConfig(DataConfigFactory): """YAM LeRobot v3 data with two 6-DoF arms and two absolute grippers."""
use_delta_joint_actions: bool = True
@override def create(self, assets_dirs: pathlib.Path, model_config: _model.BaseModelConfig) -> DataConfig: repack_transform = _transforms.Group( inputs=[ _transforms.RepackTransform( { "observation/image": "observation.images.top_rgb", "observation/left_wrist": "observation.images.left_rgb", "observation/right_wrist": "observation.images.right_rgb", "observation/state": "observation.state", "actions": "action", "prompt": "prompt", } ) ] ) data_transforms = _transforms.Group( inputs=[yam_policy.YamInputs(model_type=model_config.model_type)], outputs=[yam_policy.YamOutputs()], ) if self.use_delta_joint_actions: delta_action_mask = _transforms.make_bool_mask(6, -1, 6, -1) data_transforms = data_transforms.push( inputs=[_transforms.DeltaActions(delta_action_mask)], outputs=[_transforms.AbsoluteActions(delta_action_mask)], )
return dataclasses.replace( self.create_base_config(assets_dirs, model_config), repack_transforms=repack_transform, data_transforms=data_transforms, model_transforms=ModelTransformFactory()(model_config), action_sequence_keys=("action",), )
@dataclasses.dataclass(frozen=True)class LeRobotYamJointEeDataConfig(DataConfigFactory): """YAM joint control with a 12D dual-arm EE-pose auxiliary target."""
use_delta_joint_actions: bool = True
@override def create(self, assets_dirs: pathlib.Path, model_config: _model.BaseModelConfig) -> DataConfig: repack_transform = _transforms.Group( inputs=[ _transforms.RepackTransform( { "observation/image": "observation.images.top_rgb", "observation/left_wrist": "observation.images.left_rgb", "observation/right_wrist": "observation.images.right_rgb", "observation/state": "observation.state", "observation/ee_pose": "observation.ee_pose", "actions": "action", "action_ee_pose": "action.ee_pose", "prompt": "prompt", } ) ] ) data_transforms = _transforms.Group( inputs=[yam_policy.YamJointEeInputs(model_type=model_config.model_type)], outputs=[yam_policy.YamOutputs()], ) if self.use_delta_joint_actions: delta_action_mask = _transforms.make_bool_mask(6, -1, 6, -1) data_transforms = data_transforms.push( inputs=[_transforms.DeltaActions(delta_action_mask)], outputs=[_transforms.AbsoluteActions(delta_action_mask)], )
return dataclasses.replace( self.create_base_config(assets_dirs, model_config), repack_transforms=repack_transform, data_transforms=data_transforms, model_transforms=ModelTransformFactory()(model_config), action_sequence_keys=("action", "action.ee_pose"), )
@dataclasses.dataclass(frozen=True)class LeRobotLiberoDataConfig(DataConfigFactory): """ This config is used to configure transforms that are applied at various parts of the data pipeline. For your own dataset, you can copy this class and modify the transforms to match your dataset based on the comments below. """
extra_delta_transform: bool = False
@override def create(self, assets_dirs: pathlib.Path, model_config: _model.BaseModelConfig) -> DataConfig: # The repack transform is *only* applied to the data coming from the dataset, # and *not* during inference. We can use it to make inputs from the dataset look # as close as possible to those coming from the inference environment (e.g. match the keys). # Below, we match the keys in the dataset (which we defined in the data conversion script) to # the keys we use in our inference pipeline (defined in the inference script for libero). # For your own dataset, first figure out what keys your environment passes to the policy server # and then modify the mappings below so your dataset's keys get matched to those target keys. # The repack transform simply remaps key names here. repack_transform = _transforms.Group( inputs=[ _transforms.RepackTransform( { "observation/image": "image", "observation/wrist_image": "wrist_image", "observation/state": "state", "actions": "actions", "prompt": "prompt", } ) ] )
# The data transforms are applied to the data coming from the dataset *and* during inference. # Below, we define the transforms for data going into the model (``inputs``) and the transforms # for data coming out of the model (``outputs``) (the latter is only used during inference). # We defined these transforms in `libero_policy.py`. You can check the detailed comments there for # how to modify the transforms to match your dataset. Once you created your own transforms, you can # replace the transforms below with your own. data_transforms = _transforms.Group( inputs=[libero_policy.LiberoInputs(model_type=model_config.model_type)], outputs=[libero_policy.LiberoOutputs()], )
# One additional data transform: pi0 models are trained on delta actions (relative to the first # state in each action chunk). IF your data has ``absolute`` actions (e.g. target joint angles) # you can uncomment the following line to convert the actions to delta actions. The only exception # is for the gripper actions which are always absolute. # In the example below, we would apply the delta conversion to the first 6 actions (joints) and # leave the 7th action (gripper) unchanged, i.e. absolute. # In Libero, the raw actions in the dataset are already delta actions, so we *do not* need to # apply a separate delta conversion (that's why it's commented out). Choose whether to apply this # transform based on whether your dataset uses ``absolute`` or ``delta`` actions out of the box.
# LIBERO already represents actions as deltas, but we have some old Pi0 checkpoints that are trained with this # extra delta transform. if self.extra_delta_transform: delta_action_mask = _transforms.make_bool_mask(6, -1) data_transforms = data_transforms.push( inputs=[_transforms.DeltaActions(delta_action_mask)], outputs=[_transforms.AbsoluteActions(delta_action_mask)], )
# Model transforms include things like tokenizing the prompt and action targets # You do not need to change anything here for your own dataset. model_transforms = ModelTransformFactory()(model_config)
# We return all data transforms for training and inference. No need to change anything here. return dataclasses.replace( self.create_base_config(assets_dirs, model_config), repack_transforms=repack_transform, data_transforms=data_transforms, model_transforms=model_transforms, )
@dataclasses.dataclass(frozen=True)class LeRobotWujiDataConfig(DataConfigFactory): """ Config for Tianji Marvin + dual Wuji Hand Gen1 (adapted from wuji-openpi).
Dataset features: - observation.state: 54 dims (7 left arm + 20 left hand + 7 right arm + 20 right hand) - action: 54 dims - observation.images.cam_left_wrist / cam_right_wrist - base camera: observation.images.stereo_right (default) or cam_high via base_image_key
Requires model.action_dim=54. Load pi05_base with PartialCheckpointWeightLoader. """
extra_delta_transform: bool = False # LeRobot key for the head / stereo base camera. base_image_key: str = "observation.images.stereo_right" action_sequence_keys: Sequence[str] = ("action",)
@override def create(self, assets_dirs: pathlib.Path, model_config: _model.BaseModelConfig) -> DataConfig: repack_transform = _transforms.Group( inputs=[ _transforms.RepackTransform( { "observation/image": self.base_image_key, "observation/left_wrist_image": "observation.images.cam_left_wrist", "observation/right_wrist_image": "observation.images.cam_right_wrist", "observation/state": "observation.state", "actions": "action", "prompt": "prompt", } ) ] )
data_transforms = _transforms.Group( inputs=[wuji_policy.WujiInputs(model_type=model_config.model_type)], outputs=[wuji_policy.WujiOutputs(action_dim=model_config.action_dim)], )
# Arms: delta; hands: absolute (same as wuji-openpi). if self.extra_delta_transform: delta_action_mask = _transforms.make_bool_mask(7, -20, 7, -20) data_transforms = data_transforms.push( inputs=[_transforms.DeltaActions(delta_action_mask)], outputs=[_transforms.AbsoluteActions(delta_action_mask)], )
model_transforms = ModelTransformFactory()(model_config)
return dataclasses.replace( self.create_base_config(assets_dirs, model_config), repack_transforms=repack_transform, data_transforms=data_transforms, model_transforms=model_transforms, action_sequence_keys=self.action_sequence_keys, )
@dataclasses.dataclass(frozen=True)class RLDSDroidDataConfig(DataConfigFactory): """ Config for training on DROID, using RLDS data format (for efficient training on larger datasets). """
rlds_data_dir: str | None = None action_space: droid_rlds_dataset.DroidActionSpace | None = None
# Filtering options. Can pass a path to a dictionary that maps episodes to timestep ranges # to tuples denoting ranges of time steps to keep (start, end). Episodes are uniquely identified with # f"{recording_folderpath}--{file_path}", both of which are present in the RLDS episode metadata.
# List of datasets to sample from: name, version, weight, and optionally filter_dict_path datasets: Sequence[droid_rlds_dataset.RLDSDataset] = ( droid_rlds_dataset.RLDSDataset( name="droid", version="1.0.1", weight=1.0, filter_dict_path="gs://openpi-assets/droid/droid_sample_ranges_v1_0_1.json", ), )
@override def create(self, assets_dirs: pathlib.Path, model_config: _model.BaseModelConfig) -> DataConfig: repack_transform = _transforms.Group( inputs=[ _transforms.RepackTransform( { "observation/exterior_image_1_left": "observation/image", "observation/wrist_image_left": "observation/wrist_image", "observation/joint_position": "observation/joint_position", "observation/gripper_position": "observation/gripper_position", "actions": "actions", "prompt": "prompt", } ) ] )
data_transforms = _transforms.Group( inputs=[droid_policy.DroidInputs(model_type=model_config.model_type)], outputs=[droid_policy.DroidOutputs()], )
if self.action_space == droid_rlds_dataset.DroidActionSpace.JOINT_POSITION: # Data loader returns absolute joint position actions -- convert to delta actions for training. delta_action_mask = _transforms.make_bool_mask(7, -1) data_transforms = data_transforms.push( inputs=[_transforms.DeltaActions(delta_action_mask)], outputs=[_transforms.AbsoluteActions(delta_action_mask)], )
model_transforms = ModelTransformFactory()(model_config)
assert self.rlds_data_dir is not None, "Need to set rlds data dir for RLDS data loader."
return dataclasses.replace( self.create_base_config(assets_dirs, model_config), repack_transforms=repack_transform, data_transforms=data_transforms, model_transforms=model_transforms, rlds_data_dir=self.rlds_data_dir, action_space=self.action_space, datasets=self.datasets, )
@dataclasses.dataclass(frozen=True)class LeRobotDROIDDataConfig(DataConfigFactory): """ Example data config for custom DROID dataset in LeRobot format. To convert your custom DROID dataset (<10s of hours) to LeRobot format, see examples/droid/convert_droid_data_to_lerobot.py """
@override def create(self, assets_dirs: pathlib.Path, model_config: _model.BaseModelConfig) -> DataConfig: repack_transform = _transforms.Group( inputs=[ _transforms.RepackTransform( { "observation/exterior_image_1_left": "exterior_image_1_left", "observation/exterior_image_2_left": "exterior_image_2_left", "observation/wrist_image_left": "wrist_image_left", "observation/joint_position": "joint_position", "observation/gripper_position": "gripper_position", "actions": "actions", "prompt": "prompt", } ) ] ) # We assume joint *velocity* actions, so we should *not* apply an additional delta transform. data_transforms = _transforms.Group( inputs=[droid_policy.DroidInputs(model_type=model_config.model_type)], outputs=[droid_policy.DroidOutputs()], ) model_transforms = ModelTransformFactory()(model_config)
return dataclasses.replace( self.create_base_config(assets_dirs, model_config), repack_transforms=repack_transform, data_transforms=data_transforms, model_transforms=model_transforms, )
@dataclasses.dataclass(frozen=True)class TrainConfig: # Name of the config. Must be unique. Will be used to reference this config. name: tyro.conf.Suppress[str] # Project name. project_name: str = "openpi" # Experiment name. Will be used to name the metadata and checkpoint directories. exp_name: str = tyro.MISSING
# Defines the model config. Some attributes (action_dim, action_horizon, and max_token_len) are shared by all models # -- see BaseModelConfig. Specific model implementations (e.g., Pi0Config) inherit from BaseModelConfig and may # define additional attributes. model: _model.BaseModelConfig = dataclasses.field(default_factory=pi0_config.Pi0Config)
# A weight loader can optionally load (possibly partial) weights from disk after the model is initialized. weight_loader: weight_loaders.WeightLoader = dataclasses.field(default_factory=weight_loaders.NoOpWeightLoader)
# Optional path to a PyTorch checkpoint to load weights from. pytorch_weight_path: str | None = None
# Precision for PyTorch training. pytorch_training_precision: Literal["bfloat16", "float32"] = "bfloat16"
lr_schedule: _optimizer.LRScheduleConfig = dataclasses.field(default_factory=_optimizer.CosineDecaySchedule) optimizer: _optimizer.OptimizerConfig = dataclasses.field(default_factory=_optimizer.AdamW) ema_decay: float | None = 0.99
# Specifies which weights should be frozen. freeze_filter: tyro.conf.Suppress[Filter] = dataclasses.field(default_factory=nnx.Nothing)
# Determines the data to be trained on. data: DataConfigFactory = dataclasses.field(default_factory=FakeDataConfig)
# Base directory for config assets (e.g., norm stats). assets_base_dir: str = "./assets" # Base directory for checkpoints. checkpoint_base_dir: str = "./checkpoints" # Optional exact checkpoint directory. XPolicyLab train.sh uses this to # keep policy checkpoints under policy/<name>/checkpoints/<6-tuple>. checkpoint_dir_override: str | None = None
# Random seed that will be used by random generators during training. seed: int = 42 # Global batch size. batch_size: int = 32 # Number of workers to use for the data loader. Increasing this number will speed up data loading but # will increase memory and CPU usage. num_workers: int = 8 # CPU batches to prefetch across epochs; 0 preserves synchronous loading. prefetch_batches: int = 0 # Number of train steps (batches) to run. num_train_steps: int = 30_000
# How often (in steps) to log training metrics. log_interval: int = 100 # How often (in steps) to save checkpoints. save_interval: int = 1000 # If set, any existing checkpoints matching step % keep_period == 0 will not be deleted. keep_period: int | None = 5000 # Maximum number of recent checkpoints to retain in addition to keep_period checkpoints. max_to_keep: int | None = 1
# If true, will overwrite the checkpoint directory if it already exists. overwrite: bool = False # If true, will resume training from the last checkpoint. resume: bool = False
# If true, will enable wandb logging. wandb_enabled: bool = True
# Used to pass metadata to the policy server. policy_metadata: dict[str, Any] | None = None
# If the value is greater than 1, FSDP will be enabled and shard across number of specified devices; overall # device memory will be reduced but training could potentially be slower. # eg. if total device is 4 and fsdp devices is 2; then the model will shard to 2 devices and run # data parallel between 2 groups of devices. fsdp_devices: int = 1
@property def assets_dirs(self) -> pathlib.Path: """Get the assets directory for this config.""" return (pathlib.Path(self.assets_base_dir) / self.name).resolve()
@property def checkpoint_dir(self) -> pathlib.Path: """Get the checkpoint directory for this config.""" if not self.exp_name: raise ValueError("--exp_name must be set") if self.checkpoint_dir_override: return pathlib.Path(self.checkpoint_dir_override).resolve() return (pathlib.Path(self.checkpoint_base_dir) / self.name / self.exp_name).resolve()
@property def trainable_filter(self) -> nnx.filterlib.Filter: """Get the filter for the trainable parameters.""" return nnx.All(nnx.Param, nnx.Not(self.freeze_filter))
def __post_init__(self) -> None: if self.resume and self.overwrite: raise ValueError("Cannot resume and overwrite at the same time.")
# Use `get_config` if you need to get a config by name in your code._CONFIGS = [ TrainConfig( name="pi05_yam", model=pi0_config.Pi0Config(pi05=True, action_horizon=50), data=LeRobotYamDataConfig( repo_id=os.environ.get("OPENPI_LEROBOT_REPO_ID", "yam_pick_red_ball_box_v1"), base_config=DataConfig(prompt_from_task=True, video_backend="pyav"), ), weight_loader=weight_loaders.CheckpointWeightLoader( os.environ.get("OPENPI_BASE_PARAMS", "gs://openpi-assets/checkpoints/pi05_base/params") ), batch_size=8, num_workers=int(os.environ.get("OPENPI_NUM_WORKERS", "2")), assets_base_dir=os.environ.get("OPENPI_ASSETS_BASE_DIR", "./assets"), num_train_steps=10_000, save_interval=500, keep_period=2_500, max_to_keep=10, ), TrainConfig( name="pi05_yam_joint_ee", model=pi0_config.Pi0Config(pi05=True, action_horizon=50), data=LeRobotYamJointEeDataConfig( repo_id=os.environ.get( "OPENPI_LEROBOT_REPO_ID", "yam_assemble_screwdriver_20260825_v1_joint_ee" ), base_config=DataConfig(prompt_from_task=True, video_backend="pyav"), ), weight_loader=weight_loaders.CheckpointWeightLoader( os.environ.get("OPENPI_BASE_PARAMS", "gs://openpi-assets/checkpoints/pi05_base/params") ), batch_size=8, num_workers=int(os.environ.get("OPENPI_NUM_WORKERS", "2")), assets_base_dir=os.environ.get("OPENPI_ASSETS_BASE_DIR", "./assets"), num_train_steps=10_000, save_interval=500, keep_period=2_500, max_to_keep=10, ), TrainConfig( name="pi05_base_aloha_full_sim_arx-x5_seed_0", model=pi0_config.Pi0Config(pi05=True), data=LeRobotAlohaDataConfig( repo_id="RoboDojo_sim_arx-x5_v30", assets=AssetsConfig( assets_dir=str(_ROBODOJO_ASSETS_DIR), asset_id="arx_x5_sim", ), repack_transforms=_transforms.Group( inputs=[ _transforms.RepackTransform( { "images": { "cam_high": "observation.images.cam_high", "cam_left_wrist": "observation.images.cam_left_wrist", "cam_right_wrist": "observation.images.cam_right_wrist", }, "state": "observation.state", "actions": "action", "prompt": "prompt", } ) ] ), base_config=DataConfig( prompt_from_task=True, # Set to True for prompt by task_name ), ), weight_loader=weight_loaders.CheckpointWeightLoader("gs://openpi-assets/checkpoints/pi05_base/params"), seed=0, batch_size=256, fsdp_devices=2, num_train_steps=60000, ), TrainConfig( name="pi05_base_aloha_full_sim_arx-x5_seed_1", model=pi0_config.Pi0Config(pi05=True), data=LeRobotAlohaDataConfig( repo_id="RoboDojo_sim_arx-x5_v30", assets=AssetsConfig( assets_dir=str(_ROBODOJO_ASSETS_DIR), asset_id="arx_x5_sim", ), repack_transforms=_transforms.Group( inputs=[ _transforms.RepackTransform( { "images": { "cam_high": "observation.images.cam_high", "cam_left_wrist": "observation.images.cam_left_wrist", "cam_right_wrist": "observation.images.cam_right_wrist", }, "state": "observation.state", "actions": "action", "prompt": "prompt", } ) ] ), base_config=DataConfig( prompt_from_task=True, # Set to True for prompt by task_name ), ), weight_loader=weight_loaders.CheckpointWeightLoader("gs://openpi-assets/checkpoints/pi05_base/params"), seed=1, batch_size=256, fsdp_devices=2, num_train_steps=60000, ), TrainConfig( name="pi05_base_aloha_full_sim_arx-x5_seed_2", model=pi0_config.Pi0Config(pi05=True), data=LeRobotAlohaDataConfig( repo_id="RoboDojo_sim_arx-x5_v30", assets=AssetsConfig( assets_dir=str(_ROBODOJO_ASSETS_DIR), asset_id="arx_x5_sim", ), repack_transforms=_transforms.Group( inputs=[ _transforms.RepackTransform( { "images": { "cam_high": "observation.images.cam_high", "cam_left_wrist": "observation.images.cam_left_wrist", "cam_right_wrist": "observation.images.cam_right_wrist", }, "state": "observation.state", "actions": "action", "prompt": "prompt", } ) ] ), base_config=DataConfig( prompt_from_task=True, # Set to True for prompt by task_name ), ), weight_loader=weight_loaders.CheckpointWeightLoader("gs://openpi-assets/checkpoints/pi05_base/params"), seed=2, batch_size=256, fsdp_devices=2, num_train_steps=60000, ), # Tianji Marvin + dual Wuji Hand Gen1 (54D). Set data.repo_id to your LeRobot dataset # before compute_norm_stats / train. Skip RoboDojo process_data.py; use wuji mcap→LeRobot. TrainConfig( name="pi05_wuji_marvin_54d", model=pi0_config.Pi0Config(pi05=True, action_dim=54, action_horizon=50, max_token_len=256), data=LeRobotWujiDataConfig( # Replace with your LeRobot repo id or local dataset id under HF_LEROBOT_HOME. repo_id="tianji_marvin_wuji", assets=AssetsConfig( assets_dir=str(_WUJI_ASSETS_DIR), asset_id="tianji_marvin_wuji", ), base_config=DataConfig( prompt_from_task=True, ), extra_delta_transform=True, # If your dataset uses cam_high instead of stereo_right, set: # base_image_key="observation.images.cam_high", ), weight_loader=weight_loaders.PartialCheckpointWeightLoader( "gs://openpi-assets/checkpoints/pi05_base/params" ), num_train_steps=30_000, batch_size=64, lr_schedule=_optimizer.CosineDecaySchedule( warmup_steps=1_000, peak_lr=5e-5, decay_steps=30_000, decay_lr=5e-6, ), ),]
if len({config.name for config in _CONFIGS}) != len(_CONFIGS): raise ValueError("Config names must be unique.")_CONFIGS_DICT = {config.name: config for config in _CONFIGS}
def cli() -> TrainConfig: return tyro.extras.overridable_config_cli({k: (k, v) for k, v in _CONFIGS_DICT.items()})
def get_config(config_name: str) -> TrainConfig: """Get a config by name.""" if config_name not in _CONFIGS_DICT: closest = difflib.get_close_matches(config_name, _CONFIGS_DICT.keys(), n=1, cutoff=0.0) closest_str = f" Did you mean '{closest[0]}'? " if closest else "" raise ValueError(f"Config '{config_name}' not found.{closest_str}")
return _CONFIGS_DICT[config_name]123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122"""Policy transforms for bimanual YAM LeRobot datasets.
Dataset layout: observation.state (14,) = [L: 6 joints + gripper, R: 6 joints + gripper] action (14,) with the same ordering observation.ee_pose optional (24,) = per arm [position 3 + rotation matrix 9] action.ee_pose optional (24,) with the same ordering observation.images.top_rgb third-person camera observation.images.left_rgb left-side camera observation.images.right_rgb right-side camera"""
import dataclasses
import einopsimport numpy as npfrom scipy.spatial.transform import Rotation
from openpi import transformsfrom openpi.models import model as _model
YAM_ACTION_DIM = 14YAM_EE_POSE_DIM = 24YAM_JOINT_EE_ACTION_DIM = 26
def _parse_image(image) -> np.ndarray: image = np.asarray(image) if np.issubdtype(image.dtype, np.floating): image = (255 * image).astype(np.uint8) if image.shape[0] == 3: image = einops.rearrange(image, "c h w -> h w c") return image
@dataclasses.dataclass(frozen=True)class YamInputs(transforms.DataTransformFn): """Map YAM observations/actions onto OpenPI's canonical model inputs."""
model_type: _model.ModelType
def __call__(self, data: dict) -> dict: inputs = { "state": data["observation/state"], "image": { "base_0_rgb": _parse_image(data["observation/image"]), "left_wrist_0_rgb": _parse_image(data["observation/left_wrist"]), "right_wrist_0_rgb": _parse_image(data["observation/right_wrist"]), }, "image_mask": { "base_0_rgb": np.True_, "left_wrist_0_rgb": np.True_, "right_wrist_0_rgb": np.True_, }, } if "actions" in data: inputs["actions"] = data["actions"] if "prompt" in data: inputs["prompt"] = data["prompt"] return inputs
def relative_ee_actions(current_pose: np.ndarray, target_poses: np.ndarray) -> np.ndarray: """Convert absolute dual-arm EE targets into current-EE-frame 6D deltas.""" current_pose = np.asarray(current_pose, dtype=np.float32) target_poses = np.asarray(target_poses, dtype=np.float32) if current_pose.shape != (YAM_EE_POSE_DIM,): raise ValueError(f"expected current EE pose ({YAM_EE_POSE_DIM},), got {current_pose.shape}") if target_poses.shape[-1] != YAM_EE_POSE_DIM: raise ValueError( f"expected target EE pose last dim {YAM_EE_POSE_DIM}, got {target_poses.shape}" )
deltas = [] for offset in (0, 12): current_position = current_pose[offset : offset + 3] current_rotation = current_pose[offset + 3 : offset + 12].reshape(3, 3) target_position = target_poses[..., offset : offset + 3] target_rotation = target_poses[..., offset + 3 : offset + 12].reshape( *target_poses.shape[:-1], 3, 3 ) relative_position = np.einsum( "ij,...j->...i", current_rotation.T, target_position - current_position ) relative_rotation = np.einsum("ij,...jk->...ik", current_rotation.T, target_rotation) relative_axis_angle = Rotation.from_matrix( relative_rotation.reshape(-1, 3, 3) ).as_rotvec().reshape(*target_poses.shape[:-1], 3) deltas.append(np.concatenate([relative_position, relative_axis_angle], axis=-1)) return np.concatenate(deltas, axis=-1).astype(np.float32)
@dataclasses.dataclass(frozen=True)class YamJointEeInputs(transforms.DataTransformFn): """Build joint actions plus 12D dual-arm EE auxiliary targets."""
model_type: _model.ModelType
def __call__(self, data: dict) -> dict: inputs = YamInputs(model_type=self.model_type)(data) has_ee_observation = "observation/ee_pose" in data has_ee_action = "action_ee_pose" in data if "actions" in data and has_ee_observation and has_ee_action: ee_actions = relative_ee_actions( data["observation/ee_pose"], data["action_ee_pose"] ) inputs["actions"] = np.concatenate( [np.asarray(data["actions"], dtype=np.float32), ee_actions], axis=-1 ) elif has_ee_observation != has_ee_action: raise ValueError("joint+EE training requires both observation.ee_pose and action.ee_pose") return inputs
@dataclasses.dataclass(frozen=True)class YamOutputs(transforms.DataTransformFn): """Remove OpenPI action padding while preserving YAM joint/gripper order."""
action_dim: int = YAM_ACTION_DIM
def __call__(self, data: dict) -> dict: return {"actions": np.asarray(data["actions"][..., : self.action_dim])}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428{ "format": "yam-robot-assets-1", "files": [ { "path": "README.txt", "bytes": 2667, "sha256": "e2ef9b8df10056ed95069470472f07a962865a6ddd81d68227ec130ab858c71f" }, { "path": "assembly/assembly-m.stl", "bytes": 961184, "sha256": "7cc82d521ea4fcd1c118a1036527eb0577d5f19fb50a1c78798e488542f8fdc1" }, { "path": "assembly/assembly-mm.stl", "bytes": 961184, "sha256": "7010aeaecbcd14a08a34008c37292cddc588200e02e6225d10bd3722640fcf79" }, { "path": "assembly/yam_d405_mount.yaml", "bytes": 1662, "sha256": "80f86326b5f9205ca976f737184fb34e5d991e57887022593d6dc8c3bb03be78" }, { "path": "calibration/rig_second_longtest.yaml", "bytes": 2612, "sha256": "0787e686630fb86213abee1afa1256e19298c9196b355a4baf4afeec92489bf4" }, { "path": "calibration/source_records/fit-overlays.jpg", "bytes": 181898, "sha256": "6c9809276e9fac1da25c51254963c4b0bf54cfea31f5c9f3620e12b7a7d86139" }, { "path": "calibration/source_records/fit-report.json", "bytes": 5583, "sha256": "09cc1a3727e0ed9ad64ecc87739ee673cf62713b6bc1deefa8219daa47175f23" }, { "path": "calibration/source_records/mount-resolved.yaml", "bytes": 4204, "sha256": "e6c2b35c8296deb0dc349a0a6cd670e301c3958319041b54a56e3624a1bfb09a" }, { "path": "calibration/source_records/native-cpu-projection.jpg", "bytes": 44978, "sha256": "214a9e97e28c8284b6826eab5689414ffea15d53299c4ffe0c15620719ee835d" }, { "path": "calibration/source_records/registration.json", "bytes": 2038, "sha256": "c8be6f49e7d3dbcd7c471026824bb4bc64f2c8d32644929fcaefe17b520245c3" }, { "path": "check_package.py", "bytes": 3676, "sha256": "2ab912ddfe66199b27be91e657048979ae8760c0863261bdc6386c3a6c2a633a" }, { "path": "config/retained_K_control_summary.yaml", "bytes": 1190, "sha256": "f73c677e437e4731000139db84f97245ed6e733060da6e1fbf5dd3ee8dec59c9" }, { "path": "config/retained_K_robot.yaml", "bytes": 10762, "sha256": "ef300a53a4b7f0c43a7592395d39c9f938620b6e2dc2e3a380ea03ff1a583663" }, { "path": "config/retained_K_timing.yaml", "bytes": 591, "sha256": "98bc8fea319bdfe5c26b432fe6f35ca5e8efce91a724f75aa63eca85bd05749c" }, { "path": "config/second_longtest_robot.yaml", "bytes": 10141, "sha256": "24f7e6262e011331939cccf96c40595923c451669396d625245f9988f0340c34" }, { "path": "config/second_longtest_timing.yaml", "bytes": 519, "sha256": "99d6046f2e9029ecfeac72c2e9168850282f9ccf91527a4029096ce89f1ac032" }, { "path": "dependency_validation.json", "bytes": 1268, "sha256": "f543291685cbdfa71280090b263c97b5796779462aa74fe07949ac0eefe0cdd3" }, { "path": "licenses/i2rt-MIT.txt", "bytes": 1073, "sha256": "7cd0a0224a287ebd6c45703eb6623d264c7810f8958d65de8f99e87ccd9f4891" }, { "path": "references/i2rt_models/robot_models/arm/yam/README.md", "bytes": 8626, "sha256": "8e182957abc90fd5e19139c85d95be951baa9454c811166186006bdae83ef46b" }, { "path": "references/i2rt_models/robot_models/arm/yam/assets/base.stl", "bytes": 437784, "sha256": "d95a5aa0c06a5ef6da02788b0df5a14e4202c1ae8eb2771a7f6f8947e3a490c7" }, { "path": "references/i2rt_models/robot_models/arm/yam/assets/gripper.stl", "bytes": 379584, "sha256": "e0dad958755f0a9d58e6bea4f16fed2849146ae81c0dbd45487aff308cb49e58" }, { "path": "references/i2rt_models/robot_models/arm/yam/assets/link1.stl", "bytes": 308684, "sha256": "41f7dfbd0471a0f96884c73782e82927f2bbc6aced9b55c0111da1b52d6e0c50" }, { "path": "references/i2rt_models/robot_models/arm/yam/assets/link2.stl", "bytes": 1495784, "sha256": "067b51567a95a631d50fc02515bd045a2eb7f2f34489d5aec31d9f3f6ce58b30" }, { "path": "references/i2rt_models/robot_models/arm/yam/assets/link3.stl", "bytes": 1507584, "sha256": "9650a114393881b54a68822ba3fb48fcd3318023ebecaf251e4f7804e91f801c" }, { "path": "references/i2rt_models/robot_models/arm/yam/assets/link4.stl", "bytes": 185484, "sha256": "42740ce2bb8693760a35dc6e9e8fe0981999c02d6bf167a465c9936acf41c557" }, { "path": "references/i2rt_models/robot_models/arm/yam/assets/link5.stl", "bytes": 56884, "sha256": "f70eb1191d6a1ccbb748a46fe8ba541f38094c9829fd1859300e70360c5a07c7" }, { "path": "references/i2rt_models/robot_models/arm/yam/assets/tip_left.stl", "bytes": 1555584, "sha256": "281354d77e4914ccd994b6c71fecce49a91527701f268d318f801769a6913685" }, { "path": "references/i2rt_models/robot_models/arm/yam/assets/tip_right.stl", "bytes": 1555484, "sha256": "070925233d4b742c05c4d5508e951deba5947c2fabfa336a4e33db599c70ac3a" }, { "path": "references/i2rt_models/robot_models/arm/yam/yam.urdf", "bytes": 9128, "sha256": "5b9ccf966aa353ccf1e82ad6e751b899333fab7c0b4d1071316172201da68c4e" }, { "path": "references/i2rt_models/robot_models/arm/yam/yam.xml", "bytes": 4715, "sha256": "87d0dd959d931cdb4e8c9f8083fc63a65ecd8f9e1fb5c7e406b363078f099498" }, { "path": "references/i2rt_models/robot_models/gripper/linear_4310/assets/gripper.stl", "bytes": 400084, "sha256": "d949c401186197d842ca8f9b23bfcbf24bed8461b421df06093c65e4ead21f5d" }, { "path": "references/i2rt_models/robot_models/gripper/linear_4310/assets/tip_left.stl", "bytes": 400084, "sha256": "03d94f53d7b5e9e1871ea6f3925c68d7a2f894b08e0c575fa0b9ed4024684ff7" }, { "path": "references/i2rt_models/robot_models/gripper/linear_4310/assets/tip_right.stl", "bytes": 400084, "sha256": "8f620aae9c15e00e2ea4e5bf5e9a49e7edb2d23128b8955cfacc0da8da45c72f" }, { "path": "references/i2rt_models/robot_models/gripper/linear_4310/linear_4310.xml", "bytes": 2154, "sha256": "1ae64edff48e7a1d1de727d90c2a77a98aa519796b72233a26f2c1ab1bf66652" }, { "path": "references/sdk_source_5d47b35/i2rt__motor_drivers__utils.py", "bytes": 6679, "sha256": "652573c93022bbc20531e1215640acc555372c087a9883e924c54ae9d2a35ff8" }, { "path": "references/sdk_source_5d47b35/i2rt__robots__motor_chain_robot.py", "bytes": 34307, "sha256": "755dfd973c46b20d42a68cba74ac81156d6ec994b6ab2026ae25309bc62b28bc" }, { "path": "references/sdk_source_5d47b35/i2rt__robots__utils.py", "bytes": 31188, "sha256": "fa8a609cd564188e309f46a188e3963217d00604bb53244548ca742d0634a29d" }, { "path": "references/sdk_source_5d47b35/sdk-receipt.json", "bytes": 1597, "sha256": "65e339a1ef64260753bd2e0ca455f39ad9374a5fed5dbb251e556c1e5821f3b9" }, { "path": "references/sdk_source_5d47b35/yam.yml", "bytes": 401, "sha256": "d4ebd6ea4f0846bb16f40832be80a1ddee988451bc0a71b94d8fff2b72626835" }, { "path": "robot/configuration/yam_base.usd", "bytes": 7485523, "sha256": "3edc03bb7d0e9097106b4df4d5d2983968de2ab663c5e5292647d54b06bd0e46" }, { "path": "robot/configuration/yam_physics.usd", "bytes": 5836, "sha256": "702e437f2d4aecf46c64a2dc016b64cf69c08107f29c2f047e3b8f9d7449dbc0" }, { "path": "robot/configuration/yam_robot.usd", "bytes": 1794, "sha256": "85b3895b7d5bf227b25f953af6438cf7f310cec9221b0b2500d5475cf56b9599" }, { "path": "robot/configuration/yam_sensor.usd", "bytes": 643, "sha256": "6a0ba3ed03fa03affdec65855a64f8d914a4c2b254f673c18bf8847d90b43ea7" }, { "path": "robot/left-embodiment.yaml", "bytes": 495, "sha256": "8c59cf8567e901979d36a9410c407518e165a7e3c90b6fe00a22a45997dee9b4" }, { "path": "robot/meshes/00_base.stl", "bytes": 437784, "sha256": "d95a5aa0c06a5ef6da02788b0df5a14e4202c1ae8eb2771a7f6f8947e3a490c7" }, { "path": "robot/meshes/01_link1.stl", "bytes": 308684, "sha256": "41f7dfbd0471a0f96884c73782e82927f2bbc6aced9b55c0111da1b52d6e0c50" }, { "path": "robot/meshes/02_link2.stl", "bytes": 1495784, "sha256": "067b51567a95a631d50fc02515bd045a2eb7f2f34489d5aec31d9f3f6ce58b30" }, { "path": "robot/meshes/03_link3.stl", "bytes": 1507584, "sha256": "9650a114393881b54a68822ba3fb48fcd3318023ebecaf251e4f7804e91f801c" }, { "path": "robot/meshes/04_link4.stl", "bytes": 185484, "sha256": "42740ce2bb8693760a35dc6e9e8fe0981999c02d6bf167a465c9936acf41c557" }, { "path": "robot/meshes/05_link5.stl", "bytes": 56884, "sha256": "f70eb1191d6a1ccbb748a46fe8ba541f38094c9829fd1859300e70360c5a07c7" }, { "path": "robot/meshes/06_gripper.stl", "bytes": 400084, "sha256": "d949c401186197d842ca8f9b23bfcbf24bed8461b421df06093c65e4ead21f5d" }, { "path": "robot/meshes/07_tip_left.stl", "bytes": 400084, "sha256": "03d94f53d7b5e9e1871ea6f3925c68d7a2f894b08e0c575fa0b9ed4024684ff7" }, { "path": "robot/meshes/08_tip_right.stl", "bytes": 400084, "sha256": "8f620aae9c15e00e2ea4e5bf5e9a49e7edb2d23128b8955cfacc0da8da45c72f" }, { "path": "robot/meshes/09_bracket-color0.stl", "bytes": 2272684, "sha256": "0959348effc7a1429ac9150dc3303e9007b35b553d1b480b08c6439f6127d6ed" }, { "path": "robot/meshes/10_camera-color0.stl", "bytes": 184284, "sha256": "c9a5a5778335c425c7f8980348948dc8449fdf589b5420773a60747b91e125a6" }, { "path": "robot/meshes/11_camera-color1.stl", "bytes": 3631884, "sha256": "dda091228478a477b7a4d441d6b3c9c62179d371861289cd30bd5482724d12ad" }, { "path": "robot/meshes/12_camera-color2.stl", "bytes": 1129684, "sha256": "b4b957934c5f6c440d7ba84cb9f30bc55654a0eef5da9642362238c54809047b" }, { "path": "robot/right-embodiment.yaml", "bytes": 495, "sha256": "8c59cf8567e901979d36a9410c407518e165a7e3c90b6fe00a22a45997dee9b4" }, { "path": "robot/source_robot.usd", "bytes": 2568, "sha256": "bf9dbd5699bd665105db4e4795ecbd0d1670d199bb9d055ef5f4d8dba8356f26" }, { "path": "robot/yam.urdf", "bytes": 12250, "sha256": "bf45d859a0773a6ed08acf3545d3ebc00152d4b642e1b6801b8e39f5a7d990d7" }, { "path": "robot/yam.usd", "bytes": 9101569, "sha256": "0e437092412c69be0daeacc149327e464c6d9949f903c2829af57d7ea11cdd6c" }, { "path": "source_provenance.json", "bytes": 956, "sha256": "fd7eaaade9f73ba611ef830705ad1d6ff2d4283a9aef585ec777e7179a888998" }, { "path": "variants/retained_K/robot/configuration/yam_base.usd", "bytes": 7485523, "sha256": "3edc03bb7d0e9097106b4df4d5d2983968de2ab663c5e5292647d54b06bd0e46" }, { "path": "variants/retained_K/robot/configuration/yam_physics.usd", "bytes": 5836, "sha256": "702e437f2d4aecf46c64a2dc016b64cf69c08107f29c2f047e3b8f9d7449dbc0" }, { "path": "variants/retained_K/robot/configuration/yam_robot.usd", "bytes": 1794, "sha256": "85b3895b7d5bf227b25f953af6438cf7f310cec9221b0b2500d5475cf56b9599" }, { "path": "variants/retained_K/robot/configuration/yam_sensor.usd", "bytes": 643, "sha256": "6a0ba3ed03fa03affdec65855a64f8d914a4c2b254f673c18bf8847d90b43ea7" }, { "path": "variants/retained_K/robot/left-embodiment.yaml", "bytes": 695, "sha256": "fd6887116e7572bef116058647de4ee7c5e1a88804729348c3bf7d711d488907" }, { "path": "variants/retained_K/robot/meshes/00_base.stl", "bytes": 437784, "sha256": "d95a5aa0c06a5ef6da02788b0df5a14e4202c1ae8eb2771a7f6f8947e3a490c7" }, { "path": "variants/retained_K/robot/meshes/01_link1.stl", "bytes": 308684, "sha256": "41f7dfbd0471a0f96884c73782e82927f2bbc6aced9b55c0111da1b52d6e0c50" }, { "path": "variants/retained_K/robot/meshes/02_link2.stl", "bytes": 1495784, "sha256": "067b51567a95a631d50fc02515bd045a2eb7f2f34489d5aec31d9f3f6ce58b30" }, { "path": "variants/retained_K/robot/meshes/03_link3.stl", "bytes": 1507584, "sha256": "9650a114393881b54a68822ba3fb48fcd3318023ebecaf251e4f7804e91f801c" }, { "path": "variants/retained_K/robot/meshes/04_link4.stl", "bytes": 185484, "sha256": "42740ce2bb8693760a35dc6e9e8fe0981999c02d6bf167a465c9936acf41c557" }, { "path": "variants/retained_K/robot/meshes/05_link5.stl", "bytes": 56884, "sha256": "f70eb1191d6a1ccbb748a46fe8ba541f38094c9829fd1859300e70360c5a07c7" }, { "path": "variants/retained_K/robot/meshes/06_gripper.stl", "bytes": 400084, "sha256": "d949c401186197d842ca8f9b23bfcbf24bed8461b421df06093c65e4ead21f5d" }, { "path": "variants/retained_K/robot/meshes/07_tip_left.stl", "bytes": 400084, "sha256": "03d94f53d7b5e9e1871ea6f3925c68d7a2f894b08e0c575fa0b9ed4024684ff7" }, { "path": "variants/retained_K/robot/meshes/08_tip_right.stl", "bytes": 400084, "sha256": "8f620aae9c15e00e2ea4e5bf5e9a49e7edb2d23128b8955cfacc0da8da45c72f" }, { "path": "variants/retained_K/robot/meshes/09_bracket-color0.stl", "bytes": 2272684, "sha256": "0959348effc7a1429ac9150dc3303e9007b35b553d1b480b08c6439f6127d6ed" }, { "path": "variants/retained_K/robot/meshes/10_camera-color0.stl", "bytes": 184284, "sha256": "c9a5a5778335c425c7f8980348948dc8449fdf589b5420773a60747b91e125a6" }, { "path": "variants/retained_K/robot/meshes/11_camera-color1.stl", "bytes": 3631884, "sha256": "dda091228478a477b7a4d441d6b3c9c62179d371861289cd30bd5482724d12ad" }, { "path": "variants/retained_K/robot/meshes/12_camera-color2.stl", "bytes": 1129684, "sha256": "b4b957934c5f6c440d7ba84cb9f30bc55654a0eef5da9642362238c54809047b" }, { "path": "variants/retained_K/robot/right-embodiment.yaml", "bytes": 695, "sha256": "fd6887116e7572bef116058647de4ee7c5e1a88804729348c3bf7d711d488907" }, { "path": "variants/retained_K/robot/source_robot.usd", "bytes": 2568, "sha256": "bf9dbd5699bd665105db4e4795ecbd0d1670d199bb9d055ef5f4d8dba8356f26" }, { "path": "variants/retained_K/robot/yam.urdf", "bytes": 12247, "sha256": "e7aa99596aadcdd88aa0aae96d6a5c10658058ed9eae093ccaf1beeb0c375dab" }, { "path": "variants/retained_K/robot/yam.usd", "bytes": 9103339, "sha256": "24632b7d311f68b00520da14b206aed6245ca19a7528d48f450b6a894f981cac" } ], "count": 84, "total_bytes": 69026586, "manifest_excludes_itself": true}123456789101112131415161718192021222324252627282930YAM机器人资料迁移包(2026-11-04)
一、先选版本,模型和参数成套使用robot/:上一条回复所指模型,第二次完整40×3长测所用的10月31日几何版本。 配套:config/second_longtest_robot.yaml、config/second_longtest_timing.yaml。variants/retained_K/robot/:后续暂停保留的研究版本,含11月2日手指零位修订。 配套:config/retained_K_robot.yaml、config/retained_K_timing.yaml。两个版本均包含yam.urdf、yam.usd、source_robot.usd、configuration/、meshes/及左右embodiment映射。运行入口使用yam.usd。source_robot.usd与configuration/是原始导入档案,保留其已有的空link6视觉引用警告,不作为运行入口。
二、其他已有资料assembly/:实际腕部相机/支架装配STL,米和毫米版本,以及相机安装参数。calibration/:双臂基座和相机位姿/内参,以及已有标定来源记录、拟合报告和检查图。references/i2rt_models/:ManiMux随包的SDK模型资产,仅作来源参考,不要和默认robot/混用。references/sdk_source_5d47b35/:已有固定SDK配置和相关实现片段。不是完整SDK安装包,也不证明历史真机实际安装了这个版本。licenses/:随原资产附带的i2rt MIT许可。MANIFEST.json:各文件SHA256与字节数;source_provenance.json记录来源和包内改动。
三、复制到其他主机1. 整包解压,保持目录结构。左右embodiment已经使用包内相对URDF/USD路径。2. 可先运行 python3 check_package.py,检查文件完整性、URDF网格与本地路径。3. 单独查看模型可打开robot/yam.usd或robot/yam.urdf;加载到ARISE时,将所选config中的robots/sensors等片段合入目标场景。4. config中的robot.yaml文件是机器人/相机片段,不是完整任务场景,未包含任务方块、背景场或策略权重。5. USD使用Isaac Sim的标准OmniPBR.mdl材质,目标主机由Isaac Sim/Omniverse提供该运行时组件。模型与网格文件均在包内,Python/Isaac/ARISE环境需要另行准备。
四、证据边界保存的控制参数中有SDK数值、公开模型先验及示教等效拟合。标定参数也不是独立硬件测量认证。保留K版为研究基线,尚未实现真机成功率和策略排序对齐。其余关节摩擦为零不表示真机实测为零。calibration/source_records/及provenance字段中的原机器路径只用于溯源,不是需要访问的运行依赖;可执行模型/映射引用均已相对化。完整SDK、逐周期电机日志、原始示教视频、模型权重和完整任务运行环境不属于此机器人资料包。123version https://git-lfs.github.com/spec/v1oid sha256:7cc82d521ea4fcd1c118a1036527eb0577d5f19fb50a1c78798e488542f8fdc1size 961184123version https://git-lfs.github.com/spec/v1oid sha256:7010aeaecbcd14a08a34008c37292cddc588200e02e6225d10bd3722640fcf79size 961184123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960version: rigid-camera-assembly-2name: yam-d405-human-assembly-20261026parent_link: gripperhuman_assembly: assembly-m.stlsource_units: mclipping_range_m:- 0.01- 10.0robot_urdf: ../robot/yam.urdfrobot_usd: ../robot/yam.usdparent_to_bracket: position_m: - -0.023748103097081183 - 0.025999976077407595 - -0.044999831975996496 quaternion_xyzw: - 0.0 - 0.7071067811865475 - 0.0 - -0.7071067811865475bracket_to_camera_cad: position_m: - -0.03200597461789609 - -0.01700000085633358 - 0.04668706029109925 quaternion_xyzw: - -0.5963678095961072 - 0.5963678110522435 - 0.37992819805529227 - -0.3799281957696158camera_cad_to_nominal_color_optical: position_m: - 0.009 - 0.0 - -0.0038 quaternion_xyzw: - 0.0 - 0.0 - 1.0 - 0.0optical_residual_rotvec_deg: left: - 0.00759883333581609 - -0.12081429830581478 - -0.09727040625514755 right: - 0.007284387124712845 - -0.8707570981982529 - 0.8959902136440747provenance: kind: estimated source: ${project}/workbench/experiments/yam-d405-manual-20261026/registration.json scope: Solid installation from supplied manual assembly; coordinate recovery is numerical registration, not hardware metrology. Optional optical residuals from source images are bounded1degree per axis. Intrinsics unchanged. Same physical mount applies to both wrists as confirmed by user. physics: Reuse current rigid links, inertia and colliders; no accessory mass assumptions. clipping: 10mm near distance excludes the camera's own simplified front glass. It is a rendering setting, not a change to camera pose, robot geometry or measured range.123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107world_frame: left_baserobot_base_poses: left: position_m: - 0 - 0 - 0 quaternion_xyzw: - 0 - 0 - 0 - 1 right: position_m: - -0.0018389269542761766 - -0.6103084868418773 - 0.003sensors:- name: left kind: rgb resolution: - 640 - 480 model: pinhole intrinsics: - 394.2466125488281 - 393.6261901855469 - 319.2265930175781 - 241.67579650878906 clipping_range_m: - 0.01 - 10.0 motion: mounted mount: left/gripper pose: position_m: - -0.07084770644295035 - -0.00011766587018894056 - -0.07163054371835158 quaternion_xyzw: - 0.6885504735881672 - 0.6962739333647276 - 0.13817487490702018 - 0.14835281926121519 provenance: kind: estimated source: /home/jw/projects/ARISE/workbench/experiments/yam-stack-alignment-20261028/visual-release100g/source-joint-masks.npz/d6d335b9879b9f4138ee800c2d0b75dd724dea789e4f3614129444e74c3bbecb note: Shared-world semantic estimate; temporal/native validation required.- name: top kind: rgb resolution: - 640 - 480 model: pinhole intrinsics: - 394.7972412109375 - 394.2569885253906 - 317.49383544921875 - 241.21372985839844 motion: fixed pose: position_m: - -0.08663596530622888 - -0.2963260148121947 - 1.0067741046436975 quaternion_xyzw: - 0.6880734945166583 - -0.6926611904926215 - 0.16034412971469184 - -0.1451382147989178 provenance: kind: estimated source: /home/jw/projects/ARISE/workbench/experiments/yam-control-repair-20261025/manimux-camera-reference/reference.yaml note: K is copied exactly from ManiMux D405 reference; mount remains the prior checked against source and nativeFK, not independent hardware metrology.- name: right kind: rgb resolution: - 640 - 480 model: pinhole intrinsics: - 394.0639953613281 - 393.66046142578125 - 321.9771728515625 - 244.92794799804688 clipping_range_m: - 0.01 - 10.0 motion: mounted mount: right/gripper pose: position_m: - -0.07204111276450359 - -2.4793490101260307e-08 - -0.07356183703268372 quaternion_xyzw: - 0.6968748592539689 - 0.6837535834308751 - 0.1489438939044896 - 0.15704198213779186 provenance: kind: estimated source: /home/jw/projects/ARISE/workbench/experiments/yam-d405-manual-20261026/fit-report.json note: Installation fixed by human assembledSTL. D405 left/color nominal optical offset plus bounded per-unit source-estimated optical-axis rotation; K unchanged. Not measured factory/handeye calibration.123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209{ "version": "manual-installed-camera-optics-check-1", "parent_pose": { "position_m": [ -0.023748103097081183, 0.025999976077407595, -0.044999831975996496 ], "quaternion_xyzw": [ 0.0, 0.7071067811865475, 0.0, -0.7071067811865475 ] }, "optical_pose": { "position_m": [ -0.07204111276450359, -2.4793490101260307e-08, -0.07356183703268372 ], "quaternion_xyzw": [ 0.6903455268690845, 0.690345527455658, 0.1530459196837535, 0.15304591703789241 ] }, "bracket_camera": { "position_m": [ -0.03200597461789609, -0.01700000085633358, 0.04668706029109925 ], "quaternion_xyzw": [ -0.5963678095961072, 0.5963678110522435, 0.37992819805529227, -0.3799281957696158 ] }, "camera_optical": { "position_m": [ 0.009, 0.0, -0.0038 ], "quaternion_xyzw": [ 0.0, 0.0, 1.0, 0.0 ] }, "rows": [ { "side": "left", "frame": 200, "fit": true, "opening": 0.9985043437716401, "before_mean_px": 1.4320919513702393, "before_p95_px": 4.775000095367432, "manual_nominal_mean_px": 1.9523236751556396, "manual_nominal_p95_px": 5.730000019073486, "after_mean_px": 1.9192441701889038, "after_p95_px": 5.189300060272217 }, { "side": "left", "frame": 350, "fit": true, "opening": 0.9984790396089972, "before_mean_px": 1.5043163299560547, "before_p95_px": 4.775000095367432, "manual_nominal_mean_px": 1.9602464437484741, "manual_nominal_p95_px": 5.730000019073486, "after_mean_px": 1.8853654861450195, "after_p95_px": 5.189300060272217 }, { "side": "left", "frame": 450, "fit": true, "opening": 0.9984785916105194, "before_mean_px": 2.090818166732788, "before_p95_px": 5.062900066375732, "manual_nominal_mean_px": 2.2712008953094482, "manual_nominal_p95_px": 6.432199954986572, "after_mean_px": 2.1982598304748535, "after_p95_px": 5.730000019073486 }, { "side": "left", "frame": 274, "fit": false, "opening": 0.9984934825647576, "before_mean_px": 1.4178287982940674, "before_p95_px": 4.775000095367432, "manual_nominal_mean_px": 1.9670588970184326, "manual_nominal_p95_px": 5.730000019073486, "after_mean_px": 1.9442813396453857, "after_p95_px": 5.189300060272217 }, { "side": "right", "frame": 50, "fit": true, "opening": 0.9981810244470314, "before_mean_px": 1.8033875226974487, "before_p95_px": 4.648600101470947, "manual_nominal_mean_px": 7.798077583312988, "manual_nominal_p95_px": 15.996239662170405, "after_mean_px": 3.060643434524536, "after_p95_px": 8.054300308227539 }, { "side": "right", "frame": 350, "fit": true, "opening": 0.9981810244470314, "before_mean_px": 1.8926196098327637, "before_p95_px": 3.819999933242798, "manual_nominal_mean_px": 7.9205474853515625, "manual_nominal_p95_px": 15.279999732971191, "after_mean_px": 2.3023812770843506, "after_p95_px": 6.972899913787842 }, { "side": "right", "frame": 712, "fit": true, "opening": 0.9981810244470314, "before_mean_px": 1.712756633758545, "before_p95_px": 3.819999933242798, "manual_nominal_mean_px": 7.915633678436279, "manual_nominal_p95_px": 15.694299697875977, "after_mean_px": 2.2533211708068848, "after_p95_px": 7.099299907684326 }, { "side": "right", "frame": 434, "fit": false, "opening": 0.9981810244470314, "before_mean_px": 1.7791709899902344, "before_p95_px": 3.819999933242798, "manual_nominal_mean_px": 7.9538750648498535, "manual_nominal_p95_px": 15.624779701232887, "after_mean_px": 2.269402265548706, "after_p95_px": 7.010819911956782 } ], "optical_residual_rotvec_deg": { "left": [ 0.00759883333581609, -0.12081429830581478, -0.09727040625514755 ], "right": [ 0.007284387124712845, -0.8707570981982529, 0.8959902136440747 ] }, "optical_poses": { "left": { "position_m": [ -0.07204111276450359, -2.4793490101260307e-08, -0.07356183703268372 ], "quaternion_xyzw": [ 0.6899304028382707, 0.6907796813328816, 0.15214225502720508, 0.15385774381649145 ] }, "right": { "position_m": [ -0.07204111276450359, -2.4793490101260307e-08, -0.07356183703268372 ], "quaternion_xyzw": [ 0.6968748592539689, 0.6837535834308751, 0.1489438939044896, 0.15704198213779186 ] } }, "mask_threshold_srgb": 135, "manual_assembly_preserved": true, "nominal_optical": { "position_m": [ -0.07204111276450359, -2.4793490101260307e-08, -0.07356183703268372 ], "quaternion_xyzw": [ 0.6903455268690845, 0.690345527455658, 0.1530459196837535, 0.15304591703789241 ] }, "scope": "Human STL fixes the entire bracket/camera installation. Only bounded1degree optical-axis residuals estimated against source contours; no translation fitting. Raw K retained. Held times excluded from fit. Does not identify missing screw positions, true camera calibration or policy success."}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161version: manual-installed-camera-assembly-1registration: version: manual-stl-camera-registration-1 chosen_source: "/home/jw/\u4E0B\u8F7D/gripper-cammera.STL" chosen_units: m alternate_source: "/home/jw/\u4E0B\u8F7D/gripper.STL" alternate_to_m_scale: 0.001 unit_equivalence_max_m: 1.2755393991037423e-08 manual_to_urdf_palm: position_m: - -0.1009764219969511 - -0.051000025600835684 - -0.0858825376868248 quaternion_xyzw: - 0.0 - 0.0 - 0.0 - 1.0 palm_registration_p95_m: 7.483250778162943e-09 palm_registration_alternatives_mse: - 3.9519096179177536e-11 - 2.2031676152391812e-06 - 0.00033956732161311725 - 0.00033957836658346865 parent_to_bracket: position_m: - -0.023748103097081183 - 0.025999976077407595 - -0.044999831975996496 quaternion_xyzw: - 0.0 - 0.7071067811865475 - 0.0 - -0.7071067811865475 parent_to_camera_cad: position_m: - -0.07043516338818043 - 0.008999975221074014 - -0.07700580659389258 quaternion_xyzw: - 0.6903455274556581 - -0.6903455268690846 - 0.15304591703789241 - -0.15304591968375353 parent_to_nominal_color_optical: position_m: - -0.07204111276450359 - -2.4793490101260307e-08 - -0.07356183703268372 quaternion_xyzw: - 0.6903455268690845 - 0.690345527455658 - 0.1530459196837535 - 0.15304591703789241 bracket_to_camera_cad: position_m: - -0.03200597461789609 - -0.01700000085633358 - 0.04668706029109925 quaternion_xyzw: - -0.5963678095961072 - 0.5963678110522435 - 0.37992819805529227 - -0.3799281957696158 original_components: 12 ignored_tiny_components: 8 scope: Recover geometry placement from the human-assembled STL. CAD optical offset remains nominal. No image-fitted translation or altered robot collision/inertia.visuals:- name: d405_bracket_0 mesh: /home/jw/projects/ARISE/workbench/assets/hardware/yam-d405-20261026/bracket/bracket-color0.stl pose: position_m: - -0.023748103097081183 - 0.025999976077407595 - -0.044999831975996496 quaternion_xyzw: - 0.0 - 0.7071067811865475 - 0.0 - -0.7071067811865475 rgba: - 0.5019607843137255 - 0.5019607843137255 - 0.5019607843137255 - 1.0- name: d405_camera_0 mesh: /home/jw/projects/ARISE/workbench/assets/hardware/yam-d405-20261026/camera/camera-color0.stl pose: position_m: - -0.07043516338818043 - 0.008999975221074014 - -0.07700580659389258 quaternion_xyzw: - 0.6903455274556581 - -0.6903455268690846 - 0.15304591703789241 - -0.15304591968375353 rgba: - 0.0 - 0.0 - 0.0 - 1.0- name: d405_camera_1 mesh: /home/jw/projects/ARISE/workbench/assets/hardware/yam-d405-20261026/camera/camera-color1.stl pose: position_m: - -0.07043516338818043 - 0.008999975221074014 - -0.07700580659389258 quaternion_xyzw: - 0.6903455274556581 - -0.6903455268690846 - 0.15304591703789241 - -0.15304591968375353 rgba: - 0.9568627450980393 - 0.9568627450980393 - 0.9568627450980393 - 1.0- name: d405_camera_2 mesh: /home/jw/projects/ARISE/workbench/assets/hardware/yam-d405-20261026/camera/camera-color2.stl pose: position_m: - -0.07043516338818043 - 0.008999975221074014 - -0.07700580659389258 quaternion_xyzw: - 0.6903455274556581 - -0.6903455268690846 - 0.15304591703789241 - -0.15304591968375353 rgba: - 0.996078431372549 - 0.996078431372549 - 1.0 - 1.0optics: left: position_m: - -0.07204111276450359 - -2.4793490101260307e-08 - -0.07356183703268372 quaternion_xyzw: - 0.6899304028382707 - 0.6907796813328816 - 0.15214225502720508 - 0.15385774381649145 right: position_m: - -0.07204111276450359 - -2.4793490101260307e-08 - -0.07356183703268372 quaternion_xyzw: - 0.6968748592539689 - 0.6837535834308751 - 0.1489438939044896 - 0.15704198213779186provenance: Human manual STL fixes all solid poses; bounded optical rotation residuals are source estimates, not changes to assembly. Intrinsics, physics, task and controls unchanged..gitattributes+2
policy/pi05_yam_latest_20261012_300ep_30k/inference_source/src/openpi_client/runtime/agent.pyAdded+17
policy/pi05_yam_latest_20261012_300ep_30k/inference_source/src/openpi_client/runtime/agents/policy_agent.pyAdded+18
policy/pi05_yam_latest_20261012_300ep_30k/inference_source/src/openpi_client/runtime/environment.pyAdded+32
policy/pi05_yam_latest_20261012_300ep_30k/inference_source/src/openpi_client/runtime/runtime.pyAdded+92
policy/pi05_yam_latest_20261012_300ep_30k/inference_source/src/openpi_client/runtime/subscriber.pyAdded+20
policy/pi05_yam_latest_20261012_300ep_30k/inference_source/src/openpi_client/websocket_client_policy.pyAdded+58
policy/pi05_yam_latest_20261012_300ep_30k/provenance/FROZEN_INPUTS.jsonAdded+132
policy/pi05_yam_latest_20261012_300ep_30k/provenance/PI05_DATA_READY.jsonAdded+17
policy/pi05_yam_latest_20261012_300ep_30k/provenance/data_info.jsonAdded+274
policy/pi05_yam_latest_20261012_300ep_30k/provenance/pi05.envAdded+9
policy/pi05_yam_latest_20261012_300ep_30k/provenance/pi0_config.pyAdded+117
policy/pi05_yam_latest_20261012_300ep_30k/provenance/policy_config.pyAdded+94
policy/pi05_yam_latest_20261012_300ep_30k/provenance/train_pi05.shAdded+20
policy/pi05_yam_latest_20261012_300ep_30k/provenance/training_config.pyAdded+919
policy/pi05_yam_latest_20261012_300ep_30k/provenance/yam_policy.pyAdded+122
robot/YAM_robot_assets_20261104/MANIFEST.jsonAdded+428
robot/YAM_robot_assets_20261104/README.txtAdded+30
robot/YAM_robot_assets_20261104/assembly/assembly-m.stlAdded+3
robot/YAM_robot_assets_20261104/assembly/assembly-mm.stlAdded+3
robot/YAM_robot_assets_20261104/assembly/yam_d405_mount.yamlAdded+60
robot/YAM_robot_assets_20261104/calibration/rig_second_longtest.yamlAdded+107
robot/YAM_robot_assets_20261104/calibration/source_records/fit-overlays.jpgAdded

Large File Pointer Details
- SHA256: 6c9809276e9fac1da25c51254963c4b0bf54cfea31f5c9f3620e12b7a7d86139
- Pointer size: 131 Bytes
- Size of remote file: 182 kB
robot/YAM_robot_assets_20261104/calibration/source_records/fit-report.jsonAdded+209
robot/YAM_robot_assets_20261104/calibration/source_records/mount-resolved.yamlAdded+161
robot/YAM_robot_assets_20261104/calibration/source_records/native-cpu-projection.jpgAdded

Large File Pointer Details
- SHA256: 214a9e97e28c8284b6826eab5689414ffea15d53299c4ffe0c15620719ee835d
- Pointer size: 130 Bytes
- Size of remote file: 45 kB