Publish final RealMan right-hand bottle PI0 epoch60 step37140
Browse filesFiles changed (10)
- LICENSEAdded+201
- LICENSE_GEMMA.txtAdded+77
- README.mdAdded+66
- assets/realman_right_hand_bottle_video_all_6b16d38f698a/norm_stats.jsonAdded+180
- checkpoint_info.jsonAdded+19
- inference_config.jsonAdded+69
- load_policy.pyAdded+15
- model.safetensorsAdded+3
- source/realman_policy.pyAdded+49
- tokenizer/paligemma_tokenizer.modelAdded+3
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201 Apache License Version 2.0, January 2004 http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
(a) You must give any other recipients of the Work or Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.
You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677Gemma Terms of Use
Last modified: February 21, 2024
By using, reproducing, modifying, distributing, performing or displaying any portion or element of Gemma, Model Derivatives including via any Hosted Service, (each as defined below) (collectively, the "Gemma Services") or otherwise accepting the terms of this Agreement, you agree to be bound by this Agreement.
Section 1: DEFINITIONS1.1 Definitions(a) "Agreement" or "Gemma Terms of Use" means these terms and conditions that govern the use, reproduction, Distribution or modification of the Gemma Services and any terms and conditions incorporated by reference.
(b) "Distribution" or "Distribute" means any transmission, publication, or other sharing of Gemma or Model Derivatives to a third party, including by providing or making Gemma or its functionality available as a hosted service via API, web access, or any other electronic or remote means ("Hosted Service").
(c) "Gemma" means the set of machine learning language models, trained model weights and parameters identified at ai.google.dev/gemma, regardless of the source that you obtained it from.
(d) "Google" means Google LLC.
(e) "Model Derivatives" means all (i) modifications to Gemma, (ii) works based on Gemma, or (iii) any other machine learning model which is created by transfer of patterns of the weights, parameters, operations, or Output of Gemma, to that model in order to cause that model to perform similarly to Gemma, including distillation methods that use intermediate data representations or methods based on the generation of synthetic data Outputs by Gemma for training that model. For clarity, Outputs are not deemed Model Derivatives.
(f) "Output" means the information content output of Gemma or a Model Derivative that results from operating or otherwise using Gemma or the Model Derivative, including via a Hosted Service.
1.2As used in this Agreement, "including" means "including without limitation".
Section 2: ELIGIBILITY AND USAGE2.1 EligibilityYou represent and warrant that you have the legal capacity to enter into this Agreement (including being of sufficient age of consent). If you are accessing or using any of the Gemma Services for or on behalf of a legal entity, (a) you are entering into this Agreement on behalf of yourself and that legal entity, (b) you represent and warrant that you have the authority to act on behalf of and bind that entity to this Agreement and (c) references to "you" or "your" in the remainder of this Agreement refers to both you (as an individual) and that entity.
2.2 UseYou may use, reproduce, modify, Distribute, perform or display any of the Gemma Services only in accordance with the terms of this Agreement, and must not violate (or encourage or permit anyone else to violate) any term of this Agreement.
Section 3: DISTRIBUTION AND RESTRICTIONS3.1 Distribution and RedistributionYou may reproduce or Distribute copies of Gemma or Model Derivatives if you meet all of the following conditions:
You must include the use restrictions referenced in Section 3.2 as an enforceable provision in any agreement (e.g., license agreement, terms of use, etc.) governing the use and/or distribution of Gemma or Model Derivatives and you must provide notice to subsequent users you Distribute to that Gemma or Model Derivatives are subject to the use restrictions in Section 3.2.You must provide all third party recipients of Gemma or Model Derivatives a copy of this Agreement.You must cause any modified files to carry prominent notices stating that you modified the files.All Distributions (other than through a Hosted Service) must be accompanied by a "Notice" text file that contains the following notice: "Gemma is provided under and subject to the Gemma Terms of Use found at ai.google.dev/gemma/terms".You may add your own intellectual property statement to your modifications and, except as set forth in this Section, may provide additional or different terms and conditions for use, reproduction, or Distribution of your modifications, or for any such Model Derivatives as a whole, provided your use, reproduction, modification, Distribution, performance, and display of Gemma otherwise complies with the terms and conditions of this Agreement. Any additional or different terms and conditions you impose must not conflict with the terms of this Agreement.
3.2 Use RestrictionsYou must not use any of the Gemma Services:
for the restricted uses set forth in the Gemma Prohibited Use Policy at ai.google.dev/gemma/prohibited_use_policy ("Prohibited Use Policy"), which is hereby incorporated by reference into this Agreement; orin violation of applicable laws and regulations.To the maximum extent permitted by law, Google reserves the right to restrict (remotely or otherwise) usage of any of the Gemma Services that Google reasonably believes are in violation of this Agreement.
3.3 Generated OutputGoogle claims no rights in Outputs you generate using Gemma. You and your users are solely responsible for Outputs and their subsequent uses.
Section 4: ADDITIONAL PROVISIONS4.1 UpdatesGoogle may update Gemma from time to time, and you must make reasonable efforts to use the latest version of Gemma.
4.2 TrademarksNothing in this Agreement grants you any rights to use Google's trademarks, trade names, logos or to otherwise suggest endorsement or misrepresent the relationship between you and Google. Google reserves any rights not expressly granted herein.
4.3 DISCLAIMER OF WARRANTYUNLESS REQUIRED BY APPLICABLE LAW, THE GEMMA SERVICES, AND OUTPUTS, ARE PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE. YOU ARE SOLELY RESPONSIBLE FOR DETERMINING THE APPROPRIATENESS OF USING, REPRODUCING, MODIFYING, PERFORMING, DISPLAYING OR OR DISTRIBUTING ANY OF THE GEMMA SERVICES OR OUTPUTS AND ASSUME ANY AND ALL RISKS ASSOCIATED WITH YOUR USE OR DISTRIBUTION OF ANY OF THE GEMMA SERVICES OR OUTPUTS AND YOUR EXERCISE OF RIGHTS AND PERMISSIONS UNDER THIS AGREEMENT.
4.4 LIMITATION OF LIABILITYTO THE FULLEST EXTENT PERMITTED BY APPLICABLE LAW, IN NO EVENT AND UNDER NO LEGAL THEORY, WHETHER IN TORT (INCLUDING NEGLIGENCE), PRODUCT LIABILITY, CONTRACT, OR OTHERWISE, UNLESS REQUIRED BY APPLICABLE LAW, SHALL GOOGLE OR ITS AFFILIATES BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL, EXEMPLARY, CONSEQUENTIAL, OR PUNITIVE DAMAGES, OR LOST PROFITS OF ANY KIND ARISING FROM THIS AGREEMENT OR RELATED TO, ANY OF THE GEMMA SERVICES OR OUTPUTS EVEN IF GOOGLE OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
4.5 Term, Termination, and SurvivalThe term of this Agreement will commence upon your acceptance of this Agreement (including acceptance by your use, modification, or Distribution, reproduction, performance or display of any portion or element of the Gemma Services) and will continue in full force and effect until terminated in accordance with the terms of this Agreement. Google may terminate this Agreement if you are in breach of any term of this Agreement. Upon termination of this Agreement, you must delete and cease use and Distribution of all copies of Gemma and Model Derivatives in your possession or control. Sections 1, 2.1, 3.3, 4.2 to 4.9 shall survive the termination of this Agreement.
4.6 Governing Law and JurisdictionThis Agreement will be governed by the laws of the State of California without regard to choice of law principles. The UN Convention on Contracts for the International Sale of Goods does not apply to this Agreement. The state and federal courts of Santa Clara County, California shall have exclusive jurisdiction of any dispute arising out of this Agreement.
4.7 SeverabilityIf any provision of this Agreement is held to be invalid, illegal or unenforceable, the remaining provisions shall be unaffected thereby and remain valid as if such provision had not been set forth herein.
4.8 Entire AgreementThis Agreement states all the terms agreed between the parties and supersedes all other agreements between the parties as of the date of acceptance relating to its subject matter.
4.9 No WaiverGoogle will not be treated as having waived any rights by not exercising (or delaying the exercise of) any rights under this Agreement.123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566---language:- enlicense: otherlicense_name: apache-2.0-and-gemma-termslicense_link: https://huggingface.co/RainyBot/SeGo-pi-RealMan-RightHandBottle/blob/main/LICENSE_GEMMA.txttags:- robotics- openpi- pi0- pytorch- realman---
# SeGo-pi RealMan Right-Hand Bottle
Final PI0 policy fine-tuned from PI0 base PyTorch weights: 60 epochs,37,140 optimizer steps, eight Hygon DCUs, global batch64, bfloat16.This is PI0, despite the source dataset repository's pi05 name.
100 recordings /39,674 frames train in108 independent continuous segments;no validation split. Last-epoch logged mean training loss is0.003434.No robot task-success evaluation was performed.
## Package
Final model.safetensors, matching normalization statistics, tokenizer,inference_config.json, checkpoint provenance, adapter source, load_policy.py and licenses.Full optimizer/RNG training states are retained in the local training checkpoint.Source dataset: `Yyyyyyffffffff/pi05-realman-right-hand-bottle-20261122-lerobot`, pinned revision `6b16d38f698ac70b8eb5bf236f4043557db83d4a`.
## Interface
Measured state19: left7/right7 joints, two measured grippers, two head joints,one platform joint. Action20: left then right; each arm is`[x_m,y_m,z_m,r00,r10,r20,r01,r11,r21,gripper_command]`.Rotation6d encodes the matrix's first two **columns**. Actions are absolute end-effector targets;state and actions are different spaces. Preserve source coordinate frames and gripper units.
Provide `image` with `base_0_rgb`, `left_wrist_0_rgb`, `right_wrist_0_rgb`,RGB uint8 HWC shape360x480x3, `state` shape19 and optional `prompt`.Default prompt: `Grasp the water bottle and hand it over.`Images resize with aspect-preserving padding to224x224; state/action pad to32;output is32 steps x20 after inverse mean/std normalization.Synthetic30Hz timestamps do not guarantee uniform physical timing.
## Load
Requires the compatible OpenPI checkout containing`pi0_realman_right_hand_bottle_20261122` and `RealManInputs` (adapter copy in `source/`).Standard upstream OpenPI without this custom configuration is insufficient.The helper explicitly points to the packaged tokenizer and statistics, avoiding local training paths.
```pythonfrom huggingface_hub import snapshot_downloadimport importlib.utilroot = snapshot_download("RainyBot/SeGo-pi-RealMan-RightHandBottle")spec = importlib.util.spec_from_file_location("realman_loader", root + "/load_policy.py")module = importlib.util.module_from_spec(spec)spec.loader.exec_module(module)policy = module.load_policy(root, device="cuda:0")# policy.infer({"image": camera_images, "state": measured_state19})```
OpenPI code is Apache-2.0. Gemma-derived components remain subject to the includedGemma Terms of Use. See LICENSE and LICENSE_GEMMA.txt.123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180{ "norm_stats": { "state": { "mean": [ -0.7876872331386264, -1.2502922220246209, -0.00027544557098059834, -0.7017651173663396, -0.5617838230671562, -1.7333100795229037, 0.8693622089372188, 0.9530136403314781, 1.4789798946148531, 0.000019115213937660748, 0.5062040967581363, 0.67142157368792, 1.4594577127733244, -1.8786450413008722, 0.007890484228953866, 0.0659250234180793, 0.23639144466726394, -0.21143212149686413, 0.5 ], "std": [ 0.029013519252852477, 0.0776758669613194, 0.002613356214962096, 0.17939498169107473, 0.060138321059952905, 0.12927111127674668, 0.08409509918163127, 0.15190551734114202, 0.2681277812296837, 0.00011817151916327691, 0.45490912268777006, 0.17679508305430158, 0.3210479266899966, 0.5960427569585208, 0.000999038313064169, 0.11028474040344266, 0.35313713428080523, 0.14124071954668913, 0.0 ], "q01": [ -0.8526956105232238, -1.4986598432064056, -0.012468722630292176, -1.0276748073101043, -0.8254736602306366, -2.2294816970825195, 0.6429881483316422, 0.7451324462890625, 0.9775957655906677, -0.00022685001022182405, 0.003490000031888485, 0.34134801506996154, 0.5743325167894363, -2.8160462379455566, 0.006862745154649019, 0.006862759590148926, -0.5613852512836456, -0.4189999997615814, 0.5 ], "q99": [ -0.7088841134309769, -1.095301628112793, 0.00008724999497644603, -0.025293077789247147, -0.456666499376297, -1.4559143459796913, 1.0583263897895812, 1.37376868724823, 1.9098246228694915, 0.0003315499925520271, 1.5039447152614582, 1.150966608524322, 1.9673270618915557, -0.7878425449132924, 0.009803921915590763, 0.3382353186607361, 0.7406239956617353, 0.07657818175852207, 0.5 ] }, "actions": { "mean": [ -0.1699995527317251, 0.32577130010730604, 0.047406746741722676, 0.6961385807558231, 0.039549272181311414, -0.711567383186107, -0.7132049861966466, 0.046252517550716736, -0.6933658159460803, 0.0, -0.12513429305388535, -0.39742430873724965, -0.02143758248396587, 0.6391494847296101, -0.13019347641935908, -0.7145792025064844, 0.28308818204202707, 0.7276456564901757, 0.09927224952450746, 0.20806408945529548 ], "std": [ 0.010770640147467602, 0.013986881875080091, 0.01812399096402879, 0.04281211498595737, 0.06070059228136472, 0.044512374651345006, 0.04305204203215515, 0.06935324698885661, 0.04218822384645629, 0.0, 0.04617448933078222, 0.06549463911432271, 0.0484603621524029, 0.14825997867333288, 0.17289100363080678, 0.10973530666950224, 0.3517082738907146, 0.3154122250962908, 0.3966791128626252, 0.40394031323023477 ], "q01": [ -0.20288711786270142, 0.29679548740386963, 0.01855393685400486, 0.564051628112793, -0.14142726361751556, -0.824867308139801, -0.8250100612640381, -0.06952333450317383, -0.7930745482444763, 0.0, -0.19414131343364716, -0.5544359683990479, -0.13229353725910187, 0.2077784389257431, -0.5762863755226135, -0.9575933814048767, -0.28917041420936584, -0.0062677389942109585, -0.6168052554130554, 0.0 ], "q99": [ -0.1463494449853897, 0.38375046849250793, 0.105709969997406, 0.7960578799247742, 0.21021322906017303, -0.573123574256897, -0.5954689383506775, 0.2315599024295807, -0.5631702542304993, 0.0, 0.008013946004211903, -0.31949350237846375, 0.05246995761990547, 0.8915436267852783, 0.19371597468852997, -0.44040316343307495, 0.8304048180580139, 0.9993268847465515, 0.711478054523468, 1.0 ] } }}12345678910111213141516171819{ "global_step": 37140, "completed_epochs": 60, "source_recordings": 100, "training_segment_episodes": 108, "training_frames": 39674, "validation_split": null, "global_batch_size": 64, "devices": 8, "precision": "bfloat16", "base_model": "pi0_base_pytorch", "dataset_repo": "Yyyyyyffffffff/pi05-realman-right-hand-bottle-20261122-lerobot", "dataset_revision": "6b16d38f698ac70b8eb5bf236f4043557db83d4a", "saved_at": "2026-11-23T00:48:02.397457+00:00", "code_sha256": "948e0ca5f049baef0a13bc7c1a6d161466588d602b68a5b98e75bce810342476", "finite_weight_tensors_checked": 776, "last_epoch_logged_mean_loss": 0.0034343833517050362, "robot_evaluation": "not performed"}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869{ "config_name": "pi0_realman_right_hand_bottle_20261122", "framework": "pytorch", "model": { "action_dim": 32, "action_horizon": 32, "max_token_len": 48, "dtype": "bfloat16", "paligemma_variant": "gemma_2b", "action_expert_variant": "gemma_300m", "pi05": false, "discrete_state_input": false, "pytorch_compile_mode": null }, "asset_id": "realman_right_hand_bottle_video_all_6b16d38f698a", "state_dim": 19, "action_output_dim": 20, "model_dim": 32, "action_horizon": 32, "arm_order": [ "left", "right" ], "per_arm_action_order": [ "x_m", "y_m", "z_m", "r00", "r10", "r20", "r01", "r11", "r21", "gripper_command" ], "state_order": [ "left_joint1", "left_joint2", "left_joint3", "left_joint4", "left_joint5", "left_joint6", "left_joint7", "right_joint1", "right_joint2", "right_joint3", "right_joint4", "right_joint5", "right_joint6", "right_joint7", "left_gripper_measured", "right_gripper_measured", "head_joint1", "head_joint2", "platform_joint" ], "image_keys": [ "base_0_rgb", "left_wrist_0_rgb", "right_wrist_0_rgb" ], "image_format": "RGB uint8 HWC 360x480x3", "image_preprocess": "resize_with_pad224", "action_representation": "absolute_EE_xyz_m_first_two_matrix_columns_rotation6d_gripper", "state_representation": "measured_joint19", "use_quantile_norm": false, "statistics_path": "assets/realman_right_hand_bottle_video_all_6b16d38f698a/norm_stats.json", "tokenizer_path": "tokenizer/paligemma_tokenizer.model"}123456789101112131415"""Load with the compatible OpenPI checkout used for this RealMan experiment."""import dataclassesfrom pathlib import Pathfrom openpi.training import configfrom openpi.policies import policy_config
def load_policy(checkpoint_dir, device=None): root = Path(checkpoint_dir).resolve() cfg = config.get_config("pi0_realman_right_hand_bottle_20261122") data = dataclasses.replace(cfg.data, tokenizer_path=str(root / "tokenizer/paligemma_tokenizer.model"), assets=config.AssetsConfig(assets_dir=str(root / "assets"))) cfg = dataclasses.replace(cfg, data=data) return policy_config.create_trained_policy(cfg, root, default_prompt="Grasp the water bottle and hand it over.", pytorch_device=device)123version https://git-lfs.github.com/spec/v1oid sha256:dc8fe41409a2b6be5038b51b328cab09a800429a1ccb8a3c17bd380bdba8556csize 648489644012345678910111213141516171819202122232425262728293031323334353637383940414243444546474849"""Native three-camera RealMan with measured joint19 and absolute EE20.
The six rotation components preserve the source matrix's first two columns.OpenPI treats them as action components; no pose or relative-action transformis applied. The same input adapter accepts training and inference inputs."""
import dataclasses
import numpy as np
from openpi import transforms
@dataclasses.dataclass(frozen=True)class RealManInputs(transforms.DataTransformFn): def __call__(self, data: dict) -> dict: data = transforms.TorchToNumpy()(data) state = np.asarray(data["state"], dtype=np.float32) if state.shape != (19,) or not np.isfinite(state).all(): raise ValueError("RealMan requires finite measured joint state19") images = {} expected_keys = {"base_0_rgb", "left_wrist_0_rgb", "right_wrist_0_rgb"} if set(data["image"]) != expected_keys: raise ValueError("RealMan requires all three native RGB cameras") for key, raw_image in data["image"].items(): image = np.asarray(raw_image) if image.shape == (3, 360, 480) and np.issubdtype(image.dtype, np.floating): if not np.isfinite(image).all() or image.min() < 0 or image.max() > 1: raise ValueError("Expected LeRobot RGB float in 0..1") image = np.round(image.transpose(1, 2, 0) * 255).astype(np.uint8) if image.shape != (360, 480, 3) or image.dtype != np.uint8: raise ValueError(f"Expected native HWC RGB uint8 for {key}, got {image.shape}/{image.dtype}") images[key] = image result = {"state": state, "image": images, "image_mask": dict.fromkeys(images, np.True_)} if "actions" in data: actions = np.asarray(data["actions"], dtype=np.float32) if actions.ndim != 2 or actions.shape[-1] != 20 or not np.isfinite(actions).all(): raise ValueError("RealMan requires finite absolute EE action horizon x 20") result["actions"] = actions if "prompt" in data: result["prompt"] = data["prompt"] return result
@dataclasses.dataclass(frozen=True)class RealManOutputs(transforms.DataTransformFn): def __call__(self, data: dict) -> dict: return {"actions": np.asarray(data["actions"][..., :20])}123version https://git-lfs.github.com/spec/v1oid sha256:8986bb4f423f07f8c7f70d0dbe3526fb2316056c17bae71b1ea975e77a168fc6size 4264023LICENSEAdded+201
LICENSE_GEMMA.txtAdded+77
README.mdAdded+66
assets/realman_right_hand_bottle_video_all_6b16d38f698a/norm_stats.jsonAdded+180
checkpoint_info.jsonAdded+19
inference_config.jsonAdded+69
load_policy.pyAdded+15
model.safetensorsAdded+3
source/realman_policy.pyAdded+49
tokenizer/paligemma_tokenizer.modelAdded+3