opentau 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (114) hide show
  1. opentau-0.1.0/LICENSE +508 -0
  2. opentau-0.1.0/PKG-INFO +161 -0
  3. opentau-0.1.0/README.md +63 -0
  4. opentau-0.1.0/pyproject.toml +169 -0
  5. opentau-0.1.0/setup.cfg +4 -0
  6. opentau-0.1.0/src/opentau/__init__.py +179 -0
  7. opentau-0.1.0/src/opentau/__version__.py +24 -0
  8. opentau-0.1.0/src/opentau/configs/__init__.py +19 -0
  9. opentau-0.1.0/src/opentau/configs/default.py +297 -0
  10. opentau-0.1.0/src/opentau/configs/libero.py +113 -0
  11. opentau-0.1.0/src/opentau/configs/parser.py +393 -0
  12. opentau-0.1.0/src/opentau/configs/policies.py +297 -0
  13. opentau-0.1.0/src/opentau/configs/reward.py +42 -0
  14. opentau-0.1.0/src/opentau/configs/train.py +370 -0
  15. opentau-0.1.0/src/opentau/configs/types.py +76 -0
  16. opentau-0.1.0/src/opentau/constants.py +52 -0
  17. opentau-0.1.0/src/opentau/datasets/__init__.py +84 -0
  18. opentau-0.1.0/src/opentau/datasets/backward_compatibility.py +78 -0
  19. opentau-0.1.0/src/opentau/datasets/compute_stats.py +333 -0
  20. opentau-0.1.0/src/opentau/datasets/dataset_mixture.py +460 -0
  21. opentau-0.1.0/src/opentau/datasets/factory.py +232 -0
  22. opentau-0.1.0/src/opentau/datasets/grounding/__init__.py +67 -0
  23. opentau-0.1.0/src/opentau/datasets/grounding/base.py +154 -0
  24. opentau-0.1.0/src/opentau/datasets/grounding/clevr.py +110 -0
  25. opentau-0.1.0/src/opentau/datasets/grounding/cocoqa.py +130 -0
  26. opentau-0.1.0/src/opentau/datasets/grounding/dummy.py +101 -0
  27. opentau-0.1.0/src/opentau/datasets/grounding/pixmo.py +177 -0
  28. opentau-0.1.0/src/opentau/datasets/grounding/vsr.py +141 -0
  29. opentau-0.1.0/src/opentau/datasets/image_writer.py +304 -0
  30. opentau-0.1.0/src/opentau/datasets/lerobot_dataset.py +1910 -0
  31. opentau-0.1.0/src/opentau/datasets/online_buffer.py +442 -0
  32. opentau-0.1.0/src/opentau/datasets/push_dataset_to_hub/utils.py +132 -0
  33. opentau-0.1.0/src/opentau/datasets/sampler.py +99 -0
  34. opentau-0.1.0/src/opentau/datasets/standard_data_format_mapping.py +278 -0
  35. opentau-0.1.0/src/opentau/datasets/transforms.py +330 -0
  36. opentau-0.1.0/src/opentau/datasets/utils.py +1243 -0
  37. opentau-0.1.0/src/opentau/datasets/v2/batch_convert_dataset_v1_to_v2.py +887 -0
  38. opentau-0.1.0/src/opentau/datasets/v2/convert_dataset_v1_to_v2.py +829 -0
  39. opentau-0.1.0/src/opentau/datasets/v21/_remove_language_instruction.py +109 -0
  40. opentau-0.1.0/src/opentau/datasets/v21/batch_convert_dataset_v20_to_v21.py +60 -0
  41. opentau-0.1.0/src/opentau/datasets/v21/convert_dataset_v20_to_v21.py +183 -0
  42. opentau-0.1.0/src/opentau/datasets/v21/convert_stats.py +150 -0
  43. opentau-0.1.0/src/opentau/datasets/video_utils.py +597 -0
  44. opentau-0.1.0/src/opentau/envs/__init__.py +18 -0
  45. opentau-0.1.0/src/opentau/envs/configs.py +178 -0
  46. opentau-0.1.0/src/opentau/envs/factory.py +99 -0
  47. opentau-0.1.0/src/opentau/envs/libero.py +439 -0
  48. opentau-0.1.0/src/opentau/envs/utils.py +204 -0
  49. opentau-0.1.0/src/opentau/optim/__init__.py +16 -0
  50. opentau-0.1.0/src/opentau/optim/factory.py +43 -0
  51. opentau-0.1.0/src/opentau/optim/optimizers.py +121 -0
  52. opentau-0.1.0/src/opentau/optim/schedulers.py +140 -0
  53. opentau-0.1.0/src/opentau/planner/__init__.py +82 -0
  54. opentau-0.1.0/src/opentau/planner/high_level_planner.py +366 -0
  55. opentau-0.1.0/src/opentau/planner/utils/memory.py +64 -0
  56. opentau-0.1.0/src/opentau/planner/utils/utils.py +65 -0
  57. opentau-0.1.0/src/opentau/policies/__init__.py +24 -0
  58. opentau-0.1.0/src/opentau/policies/factory.py +172 -0
  59. opentau-0.1.0/src/opentau/policies/normalize.py +315 -0
  60. opentau-0.1.0/src/opentau/policies/pi0/__init__.py +19 -0
  61. opentau-0.1.0/src/opentau/policies/pi0/configuration_pi0.py +250 -0
  62. opentau-0.1.0/src/opentau/policies/pi0/modeling_pi0.py +994 -0
  63. opentau-0.1.0/src/opentau/policies/pi0/paligemma_with_expert.py +516 -0
  64. opentau-0.1.0/src/opentau/policies/pi05/__init__.py +20 -0
  65. opentau-0.1.0/src/opentau/policies/pi05/configuration_pi05.py +231 -0
  66. opentau-0.1.0/src/opentau/policies/pi05/modeling_pi05.py +1257 -0
  67. opentau-0.1.0/src/opentau/policies/pi05/paligemma_with_expert.py +572 -0
  68. opentau-0.1.0/src/opentau/policies/pretrained.py +315 -0
  69. opentau-0.1.0/src/opentau/policies/utils.py +123 -0
  70. opentau-0.1.0/src/opentau/policies/value/__init__.py +18 -0
  71. opentau-0.1.0/src/opentau/policies/value/configuration_value.py +170 -0
  72. opentau-0.1.0/src/opentau/policies/value/modeling_value.py +512 -0
  73. opentau-0.1.0/src/opentau/policies/value/reward.py +87 -0
  74. opentau-0.1.0/src/opentau/policies/value/siglip_gemma.py +221 -0
  75. opentau-0.1.0/src/opentau/scripts/actions_mse_loss.py +89 -0
  76. opentau-0.1.0/src/opentau/scripts/bin_to_safetensors.py +116 -0
  77. opentau-0.1.0/src/opentau/scripts/compute_max_token_length.py +111 -0
  78. opentau-0.1.0/src/opentau/scripts/display_sys_info.py +90 -0
  79. opentau-0.1.0/src/opentau/scripts/download_libero_benchmarks.py +54 -0
  80. opentau-0.1.0/src/opentau/scripts/eval.py +877 -0
  81. opentau-0.1.0/src/opentau/scripts/export_to_onnx.py +180 -0
  82. opentau-0.1.0/src/opentau/scripts/fake_tensor_training.py +87 -0
  83. opentau-0.1.0/src/opentau/scripts/get_advantage_and_percentiles.py +220 -0
  84. opentau-0.1.0/src/opentau/scripts/high_level_planner_inference.py +114 -0
  85. opentau-0.1.0/src/opentau/scripts/inference.py +70 -0
  86. opentau-0.1.0/src/opentau/scripts/launch_train.py +63 -0
  87. opentau-0.1.0/src/opentau/scripts/libero_simulation_parallel.py +356 -0
  88. opentau-0.1.0/src/opentau/scripts/libero_simulation_sequential.py +122 -0
  89. opentau-0.1.0/src/opentau/scripts/nav_high_level_planner_inference.py +61 -0
  90. opentau-0.1.0/src/opentau/scripts/train.py +379 -0
  91. opentau-0.1.0/src/opentau/scripts/visualize_dataset.py +294 -0
  92. opentau-0.1.0/src/opentau/scripts/visualize_dataset_html.py +507 -0
  93. opentau-0.1.0/src/opentau/scripts/zero_to_fp32.py +760 -0
  94. opentau-0.1.0/src/opentau/utils/__init__.py +20 -0
  95. opentau-0.1.0/src/opentau/utils/accelerate_utils.py +79 -0
  96. opentau-0.1.0/src/opentau/utils/benchmark.py +98 -0
  97. opentau-0.1.0/src/opentau/utils/fake_tensor.py +81 -0
  98. opentau-0.1.0/src/opentau/utils/hub.py +209 -0
  99. opentau-0.1.0/src/opentau/utils/import_utils.py +79 -0
  100. opentau-0.1.0/src/opentau/utils/io_utils.py +137 -0
  101. opentau-0.1.0/src/opentau/utils/libero.py +214 -0
  102. opentau-0.1.0/src/opentau/utils/libero_dataset_recorder.py +460 -0
  103. opentau-0.1.0/src/opentau/utils/logging_utils.py +180 -0
  104. opentau-0.1.0/src/opentau/utils/monkey_patch.py +278 -0
  105. opentau-0.1.0/src/opentau/utils/random_utils.py +244 -0
  106. opentau-0.1.0/src/opentau/utils/train_utils.py +198 -0
  107. opentau-0.1.0/src/opentau/utils/utils.py +471 -0
  108. opentau-0.1.0/src/opentau.egg-info/PKG-INFO +161 -0
  109. opentau-0.1.0/src/opentau.egg-info/SOURCES.txt +112 -0
  110. opentau-0.1.0/src/opentau.egg-info/dependency_links.txt +1 -0
  111. opentau-0.1.0/src/opentau.egg-info/entry_points.txt +2 -0
  112. opentau-0.1.0/src/opentau.egg-info/requires.txt +88 -0
  113. opentau-0.1.0/src/opentau.egg-info/top_level.txt +1 -0
  114. opentau-0.1.0/tests/test_available.py +46 -0
opentau-0.1.0/LICENSE ADDED
@@ -0,0 +1,508 @@
1
+ Copyright 2024 The Hugging Face team. All rights reserved.
2
+ Copyright 2026 Tensor Auto Inc. All rights reserved.
3
+
4
+ Apache License
5
+ Version 2.0, January 2004
6
+ http://www.apache.org/licenses/
7
+
8
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
9
+
10
+ 1. Definitions.
11
+
12
+ "License" shall mean the terms and conditions for use, reproduction,
13
+ and distribution as defined by Sections 1 through 9 of this document.
14
+
15
+ "Licensor" shall mean the copyright owner or entity authorized by
16
+ the copyright owner that is granting the License.
17
+
18
+ "Legal Entity" shall mean the union of the acting entity and all
19
+ other entities that control, are controlled by, or are under common
20
+ control with that entity. For the purposes of this definition,
21
+ "control" means (i) the power, direct or indirect, to cause the
22
+ direction or management of such entity, whether by contract or
23
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
24
+ outstanding shares, or (iii) beneficial ownership of such entity.
25
+
26
+ "You" (or "Your") shall mean an individual or Legal Entity
27
+ exercising permissions granted by this License.
28
+
29
+ "Source" form shall mean the preferred form for making modifications,
30
+ including but not limited to software source code, documentation
31
+ source, and configuration files.
32
+
33
+ "Object" form shall mean any form resulting from mechanical
34
+ transformation or translation of a Source form, including but
35
+ not limited to compiled object code, generated documentation,
36
+ and conversions to other media types.
37
+
38
+ "Work" shall mean the work of authorship, whether in Source or
39
+ Object form, made available under the License, as indicated by a
40
+ copyright notice that is included in or attached to the work
41
+ (an example is provided in the Appendix below).
42
+
43
+ "Derivative Works" shall mean any work, whether in Source or Object
44
+ form, that is based on (or derived from) the Work and for which the
45
+ editorial revisions, annotations, elaborations, or other modifications
46
+ represent, as a whole, an original work of authorship. For the purposes
47
+ of this License, Derivative Works shall not include works that remain
48
+ separable from, or merely link (or bind by name) to the interfaces of,
49
+ the Work and Derivative Works thereof.
50
+
51
+ "Contribution" shall mean any work of authorship, including
52
+ the original version of the Work and any modifications or additions
53
+ to that Work or Derivative Works thereof, that is intentionally
54
+ submitted to Licensor for inclusion in the Work by the copyright owner
55
+ or by an individual or Legal Entity authorized to submit on behalf of
56
+ the copyright owner. For the purposes of this definition, "submitted"
57
+ means any form of electronic, verbal, or written communication sent
58
+ to the Licensor or its representatives, including but not limited to
59
+ communication on electronic mailing lists, source code control systems,
60
+ and issue tracking systems that are managed by, or on behalf of, the
61
+ Licensor for the purpose of discussing and improving the Work, but
62
+ excluding communication that is conspicuously marked or otherwise
63
+ designated in writing by the copyright owner as "Not a Contribution."
64
+
65
+ "Contributor" shall mean Licensor and any individual or Legal Entity
66
+ on behalf of whom a Contribution has been received by Licensor and
67
+ subsequently incorporated within the Work.
68
+
69
+ 2. Grant of Copyright License. Subject to the terms and conditions of
70
+ this License, each Contributor hereby grants to You a perpetual,
71
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
72
+ copyright license to reproduce, prepare Derivative Works of,
73
+ publicly display, publicly perform, sublicense, and distribute the
74
+ Work and such Derivative Works in Source or Object form.
75
+
76
+ 3. Grant of Patent License. Subject to the terms and conditions of
77
+ this License, each Contributor hereby grants to You a perpetual,
78
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
79
+ (except as stated in this section) patent license to make, have made,
80
+ use, offer to sell, sell, import, and otherwise transfer the Work,
81
+ where such license applies only to those patent claims licensable
82
+ by such Contributor that are necessarily infringed by their
83
+ Contribution(s) alone or by combination of their Contribution(s)
84
+ with the Work to which such Contribution(s) was submitted. If You
85
+ institute patent litigation against any entity (including a
86
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
87
+ or a Contribution incorporated within the Work constitutes direct
88
+ or contributory patent infringement, then any patent licenses
89
+ granted to You under this License for that Work shall terminate
90
+ as of the date such litigation is filed.
91
+
92
+ 4. Redistribution. You may reproduce and distribute copies of the
93
+ Work or Derivative Works thereof in any medium, with or without
94
+ modifications, and in Source or Object form, provided that You
95
+ meet the following conditions:
96
+
97
+ (a) You must give any other recipients of the Work or
98
+ Derivative Works a copy of this License; and
99
+
100
+ (b) You must cause any modified files to carry prominent notices
101
+ stating that You changed the files; and
102
+
103
+ (c) You must retain, in the Source form of any Derivative Works
104
+ that You distribute, all copyright, patent, trademark, and
105
+ attribution notices from the Source form of the Work,
106
+ excluding those notices that do not pertain to any part of
107
+ the Derivative Works; and
108
+
109
+ (d) If the Work includes a "NOTICE" text file as part of its
110
+ distribution, then any Derivative Works that You distribute must
111
+ include a readable copy of the attribution notices contained
112
+ within such NOTICE file, excluding those notices that do not
113
+ pertain to any part of the Derivative Works, in at least one
114
+ of the following places: within a NOTICE text file distributed
115
+ as part of the Derivative Works; within the Source form or
116
+ documentation, if provided along with the Derivative Works; or,
117
+ within a display generated by the Derivative Works, if and
118
+ wherever such third-party notices normally appear. The contents
119
+ of the NOTICE file are for informational purposes only and
120
+ do not modify the License. You may add Your own attribution
121
+ notices within Derivative Works that You distribute, alongside
122
+ or as an addendum to the NOTICE text from the Work, provided
123
+ that such additional attribution notices cannot be construed
124
+ as modifying the License.
125
+
126
+ You may add Your own copyright statement to Your modifications and
127
+ may provide additional or different license terms and conditions
128
+ for use, reproduction, or distribution of Your modifications, or
129
+ for any such Derivative Works as a whole, provided Your use,
130
+ reproduction, and distribution of the Work otherwise complies with
131
+ the conditions stated in this License.
132
+
133
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
134
+ any Contribution intentionally submitted for inclusion in the Work
135
+ by You to the Licensor shall be under the terms and conditions of
136
+ this License, without any additional terms or conditions.
137
+ Notwithstanding the above, nothing herein shall supersede or modify
138
+ the terms of any separate license agreement you may have executed
139
+ with Licensor regarding such Contributions.
140
+
141
+ 6. Trademarks. This License does not grant permission to use the trade
142
+ names, trademarks, service marks, or product names of the Licensor,
143
+ except as required for reasonable and customary use in describing the
144
+ origin of the Work and reproducing the content of the NOTICE file.
145
+
146
+ 7. Disclaimer of Warranty. Unless required by applicable law or
147
+ agreed to in writing, Licensor provides the Work (and each
148
+ Contributor provides its Contributions) on an "AS IS" BASIS,
149
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
150
+ implied, including, without limitation, any warranties or conditions
151
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
152
+ PARTICULAR PURPOSE. You are solely responsible for determining the
153
+ appropriateness of using or redistributing the Work and assume any
154
+ risks associated with Your exercise of permissions under this License.
155
+
156
+ 8. Limitation of Liability. In no event and under no legal theory,
157
+ whether in tort (including negligence), contract, or otherwise,
158
+ unless required by applicable law (such as deliberate and grossly
159
+ negligent acts) or agreed to in writing, shall any Contributor be
160
+ liable to You for damages, including any direct, indirect, special,
161
+ incidental, or consequential damages of any character arising as a
162
+ result of this License or out of the use or inability to use the
163
+ Work (including but not limited to damages for loss of goodwill,
164
+ work stoppage, computer failure or malfunction, or any and all
165
+ other commercial damages or losses), even if such Contributor
166
+ has been advised of the possibility of such damages.
167
+
168
+ 9. Accepting Warranty or Additional Liability. While redistributing
169
+ the Work or Derivative Works thereof, You may choose to offer,
170
+ and charge a fee for, acceptance of support, warranty, indemnity,
171
+ or other liability obligations and/or rights consistent with this
172
+ License. However, in accepting such obligations, You may act only
173
+ on Your own behalf and on Your sole responsibility, not on behalf
174
+ of any other Contributor, and only if You agree to indemnify,
175
+ defend, and hold each Contributor harmless for any liability
176
+ incurred by, or claims asserted against, such Contributor by reason
177
+ of your accepting any such warranty or additional liability.
178
+
179
+ END OF TERMS AND CONDITIONS
180
+
181
+ APPENDIX: How to apply the Apache License to your work.
182
+
183
+ To apply the Apache License to your work, attach the following
184
+ boilerplate notice, with the fields enclosed by brackets "[]"
185
+ replaced with your own identifying information. (Don't include
186
+ the brackets!) The text should be enclosed in the appropriate
187
+ comment syntax for the file format. We also recommend that a
188
+ file or class name and description of purpose be included on the
189
+ same "printed page" as the copyright notice for easier
190
+ identification within third-party archives.
191
+
192
+ Copyright [yyyy] [name of copyright owner]
193
+
194
+ Licensed under the Apache License, Version 2.0 (the "License");
195
+ you may not use this file except in compliance with the License.
196
+ You may obtain a copy of the License at
197
+
198
+ http://www.apache.org/licenses/LICENSE-2.0
199
+
200
+ Unless required by applicable law or agreed to in writing, software
201
+ distributed under the License is distributed on an "AS IS" BASIS,
202
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
203
+ See the License for the specific language governing permissions and
204
+ limitations under the License.
205
+
206
+
207
+ ## Some of lerobot's code is derived from Diffusion Policy, which is subject to the following copyright notice:
208
+
209
+ MIT License
210
+
211
+ Copyright (c) 2023 Columbia Artificial Intelligence and Robotics Lab
212
+
213
+ Permission is hereby granted, free of charge, to any person obtaining a copy
214
+ of this software and associated documentation files (the "Software"), to deal
215
+ in the Software without restriction, including without limitation the rights
216
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
217
+ copies of the Software, and to permit persons to whom the Software is
218
+ furnished to do so, subject to the following conditions:
219
+
220
+ The above copyright notice and this permission notice shall be included in all
221
+ copies or substantial portions of the Software.
222
+
223
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
224
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
225
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
226
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
227
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
228
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
229
+ SOFTWARE.
230
+
231
+
232
+ ## Some of lerobot's code is derived from FOWM, which is subject to the following copyright notice:
233
+
234
+ MIT License
235
+
236
+ Copyright (c) 2023 Yunhai Feng
237
+
238
+ Permission is hereby granted, free of charge, to any person obtaining a copy
239
+ of this software and associated documentation files (the "Software"), to deal
240
+ in the Software without restriction, including without limitation the rights
241
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
242
+ copies of the Software, and to permit persons to whom the Software is
243
+ furnished to do so, subject to the following conditions:
244
+
245
+ The above copyright notice and this permission notice shall be included in all
246
+ copies or substantial portions of the Software.
247
+
248
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
249
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
250
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
251
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
252
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
253
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
254
+ SOFTWARE.
255
+
256
+
257
+ ## Some of lerobot's code is derived from simxarm, which is subject to the following copyright notice:
258
+
259
+ MIT License
260
+
261
+ Copyright (c) 2023 Nicklas Hansen & Yanjie Ze
262
+
263
+ Permission is hereby granted, free of charge, to any person obtaining a copy
264
+ of this software and associated documentation files (the "Software"), to deal
265
+ in the Software without restriction, including without limitation the rights
266
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
267
+ copies of the Software, and to permit persons to whom the Software is
268
+ furnished to do so, subject to the following conditions:
269
+
270
+ The above copyright notice and this permission notice shall be included in all
271
+ copies or substantial portions of the Software.
272
+
273
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
274
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
275
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
276
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
277
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
278
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
279
+ SOFTWARE.
280
+
281
+
282
+ ## Some of lerobot's code is derived from ALOHA, which is subject to the following copyright notice:
283
+
284
+ MIT License
285
+
286
+ Copyright (c) 2023 Tony Z. Zhao
287
+
288
+ Permission is hereby granted, free of charge, to any person obtaining a copy
289
+ of this software and associated documentation files (the "Software"), to deal
290
+ in the Software without restriction, including without limitation the rights
291
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
292
+ copies of the Software, and to permit persons to whom the Software is
293
+ furnished to do so, subject to the following conditions:
294
+
295
+ The above copyright notice and this permission notice shall be included in all
296
+ copies or substantial portions of the Software.
297
+
298
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
299
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
300
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
301
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
302
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
303
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
304
+ SOFTWARE.
305
+
306
+ ## Some of lerobot's code is derived from DETR, which is subject to the following copyright notice:
307
+
308
+ Apache License
309
+ Version 2.0, January 2004
310
+ http://www.apache.org/licenses/
311
+
312
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
313
+
314
+ 1. Definitions.
315
+
316
+ "License" shall mean the terms and conditions for use, reproduction,
317
+ and distribution as defined by Sections 1 through 9 of this document.
318
+
319
+ "Licensor" shall mean the copyright owner or entity authorized by
320
+ the copyright owner that is granting the License.
321
+
322
+ "Legal Entity" shall mean the union of the acting entity and all
323
+ other entities that control, are controlled by, or are under common
324
+ control with that entity. For the purposes of this definition,
325
+ "control" means (i) the power, direct or indirect, to cause the
326
+ direction or management of such entity, whether by contract or
327
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
328
+ outstanding shares, or (iii) beneficial ownership of such entity.
329
+
330
+ "You" (or "Your") shall mean an individual or Legal Entity
331
+ exercising permissions granted by this License.
332
+
333
+ "Source" form shall mean the preferred form for making modifications,
334
+ including but not limited to software source code, documentation
335
+ source, and configuration files.
336
+
337
+ "Object" form shall mean any form resulting from mechanical
338
+ transformation or translation of a Source form, including but
339
+ not limited to compiled object code, generated documentation,
340
+ and conversions to other media types.
341
+
342
+ "Work" shall mean the work of authorship, whether in Source or
343
+ Object form, made available under the License, as indicated by a
344
+ copyright notice that is included in or attached to the work
345
+ (an example is provided in the Appendix below).
346
+
347
+ "Derivative Works" shall mean any work, whether in Source or Object
348
+ form, that is based on (or derived from) the Work and for which the
349
+ editorial revisions, annotations, elaborations, or other modifications
350
+ represent, as a whole, an original work of authorship. For the purposes
351
+ of this License, Derivative Works shall not include works that remain
352
+ separable from, or merely link (or bind by name) to the interfaces of,
353
+ the Work and Derivative Works thereof.
354
+
355
+ "Contribution" shall mean any work of authorship, including
356
+ the original version of the Work and any modifications or additions
357
+ to that Work or Derivative Works thereof, that is intentionally
358
+ submitted to Licensor for inclusion in the Work by the copyright owner
359
+ or by an individual or Legal Entity authorized to submit on behalf of
360
+ the copyright owner. For the purposes of this definition, "submitted"
361
+ means any form of electronic, verbal, or written communication sent
362
+ to the Licensor or its representatives, including but not limited to
363
+ communication on electronic mailing lists, source code control systems,
364
+ and issue tracking systems that are managed by, or on behalf of, the
365
+ Licensor for the purpose of discussing and improving the Work, but
366
+ excluding communication that is conspicuously marked or otherwise
367
+ designated in writing by the copyright owner as "Not a Contribution."
368
+
369
+ "Contributor" shall mean Licensor and any individual or Legal Entity
370
+ on behalf of whom a Contribution has been received by Licensor and
371
+ subsequently incorporated within the Work.
372
+
373
+ 2. Grant of Copyright License. Subject to the terms and conditions of
374
+ this License, each Contributor hereby grants to You a perpetual,
375
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
376
+ copyright license to reproduce, prepare Derivative Works of,
377
+ publicly display, publicly perform, sublicense, and distribute the
378
+ Work and such Derivative Works in Source or Object form.
379
+
380
+ 3. Grant of Patent License. Subject to the terms and conditions of
381
+ this License, each Contributor hereby grants to You a perpetual,
382
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
383
+ (except as stated in this section) patent license to make, have made,
384
+ use, offer to sell, sell, import, and otherwise transfer the Work,
385
+ where such license applies only to those patent claims licensable
386
+ by such Contributor that are necessarily infringed by their
387
+ Contribution(s) alone or by combination of their Contribution(s)
388
+ with the Work to which such Contribution(s) was submitted. If You
389
+ institute patent litigation against any entity (including a
390
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
391
+ or a Contribution incorporated within the Work constitutes direct
392
+ or contributory patent infringement, then any patent licenses
393
+ granted to You under this License for that Work shall terminate
394
+ as of the date such litigation is filed.
395
+
396
+ 4. Redistribution. You may reproduce and distribute copies of the
397
+ Work or Derivative Works thereof in any medium, with or without
398
+ modifications, and in Source or Object form, provided that You
399
+ meet the following conditions:
400
+
401
+ (a) You must give any other recipients of the Work or
402
+ Derivative Works a copy of this License; and
403
+
404
+ (b) You must cause any modified files to carry prominent notices
405
+ stating that You changed the files; and
406
+
407
+ (c) You must retain, in the Source form of any Derivative Works
408
+ that You distribute, all copyright, patent, trademark, and
409
+ attribution notices from the Source form of the Work,
410
+ excluding those notices that do not pertain to any part of
411
+ the Derivative Works; and
412
+
413
+ (d) If the Work includes a "NOTICE" text file as part of its
414
+ distribution, then any Derivative Works that You distribute must
415
+ include a readable copy of the attribution notices contained
416
+ within such NOTICE file, excluding those notices that do not
417
+ pertain to any part of the Derivative Works, in at least one
418
+ of the following places: within a NOTICE text file distributed
419
+ as part of the Derivative Works; within the Source form or
420
+ documentation, if provided along with the Derivative Works; or,
421
+ within a display generated by the Derivative Works, if and
422
+ wherever such third-party notices normally appear. The contents
423
+ of the NOTICE file are for informational purposes only and
424
+ do not modify the License. You may add Your own attribution
425
+ notices within Derivative Works that You distribute, alongside
426
+ or as an addendum to the NOTICE text from the Work, provided
427
+ that such additional attribution notices cannot be construed
428
+ as modifying the License.
429
+
430
+ You may add Your own copyright statement to Your modifications and
431
+ may provide additional or different license terms and conditions
432
+ for use, reproduction, or distribution of Your modifications, or
433
+ for any such Derivative Works as a whole, provided Your use,
434
+ reproduction, and distribution of the Work otherwise complies with
435
+ the conditions stated in this License.
436
+
437
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
438
+ any Contribution intentionally submitted for inclusion in the Work
439
+ by You to the Licensor shall be under the terms and conditions of
440
+ this License, without any additional terms or conditions.
441
+ Notwithstanding the above, nothing herein shall supersede or modify
442
+ the terms of any separate license agreement you may have executed
443
+ with Licensor regarding such Contributions.
444
+
445
+ 6. Trademarks. This License does not grant permission to use the trade
446
+ names, trademarks, service marks, or product names of the Licensor,
447
+ except as required for reasonable and customary use in describing the
448
+ origin of the Work and reproducing the content of the NOTICE file.
449
+
450
+ 7. Disclaimer of Warranty. Unless required by applicable law or
451
+ agreed to in writing, Licensor provides the Work (and each
452
+ Contributor provides its Contributions) on an "AS IS" BASIS,
453
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
454
+ implied, including, without limitation, any warranties or conditions
455
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
456
+ PARTICULAR PURPOSE. You are solely responsible for determining the
457
+ appropriateness of using or redistributing the Work and assume any
458
+ risks associated with Your exercise of permissions under this License.
459
+
460
+ 8. Limitation of Liability. In no event and under no legal theory,
461
+ whether in tort (including negligence), contract, or otherwise,
462
+ unless required by applicable law (such as deliberate and grossly
463
+ negligent acts) or agreed to in writing, shall any Contributor be
464
+ liable to You for damages, including any direct, indirect, special,
465
+ incidental, or consequential damages of any character arising as a
466
+ result of this License or out of the use or inability to use the
467
+ Work (including but not limited to damages for loss of goodwill,
468
+ work stoppage, computer failure or malfunction, or any and all
469
+ other commercial damages or losses), even if such Contributor
470
+ has been advised of the possibility of such damages.
471
+
472
+ 9. Accepting Warranty or Additional Liability. While redistributing
473
+ the Work or Derivative Works thereof, You may choose to offer,
474
+ and charge a fee for, acceptance of support, warranty, indemnity,
475
+ or other liability obligations and/or rights consistent with this
476
+ License. However, in accepting such obligations, You may act only
477
+ on Your own behalf and on Your sole responsibility, not on behalf
478
+ of any other Contributor, and only if You agree to indemnify,
479
+ defend, and hold each Contributor harmless for any liability
480
+ incurred by, or claims asserted against, such Contributor by reason
481
+ of your accepting any such warranty or additional liability.
482
+
483
+ END OF TERMS AND CONDITIONS
484
+
485
+ APPENDIX: How to apply the Apache License to your work.
486
+
487
+ To apply the Apache License to your work, attach the following
488
+ boilerplate notice, with the fields enclosed by brackets "[]"
489
+ replaced with your own identifying information. (Don't include
490
+ the brackets!) The text should be enclosed in the appropriate
491
+ comment syntax for the file format. We also recommend that a
492
+ file or class name and description of purpose be included on the
493
+ same "printed page" as the copyright notice for easier
494
+ identification within third-party archives.
495
+
496
+ Copyright 2020 - present, Facebook, Inc
497
+
498
+ Licensed under the Apache License, Version 2.0 (the "License");
499
+ you may not use this file except in compliance with the License.
500
+ You may obtain a copy of the License at
501
+
502
+ http://www.apache.org/licenses/LICENSE-2.0
503
+
504
+ Unless required by applicable law or agreed to in writing, software
505
+ distributed under the License is distributed on an "AS IS" BASIS,
506
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
507
+ See the License for the specific language governing permissions and
508
+ limitations under the License.
opentau-0.1.0/PKG-INFO ADDED
@@ -0,0 +1,161 @@
1
+ Metadata-Version: 2.4
2
+ Name: opentau
3
+ Version: 0.1.0
4
+ Summary: OpenTau: Tensor's VLA Training Infrastructure for Real-World Robotics in Pytorch
5
+ Author-email: Shuheng Liu <wish1104@icloud.com>, William Yue <williamyue37@gmail.com>, Akshay Shah <akshayhitendrashah@gmail.com>, Xingrui Gu <xingrui_gu@berkeley.edu>
6
+ License: Apache-2.0
7
+ Project-URL: homepage, https://github.com/TensorAuto/OpenTau
8
+ Project-URL: issues, https://github.com/TensorAuto/OpenTau/issues
9
+ Project-URL: huggingface, https://huggingface.co/TensorAuto
10
+ Keywords: robotics,deep learning,pytorch
11
+ Classifier: Development Status :: 3 - Alpha
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: Intended Audience :: Education
14
+ Classifier: Intended Audience :: Science/Research
15
+ Classifier: Topic :: Software Development :: Build Tools
16
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
17
+ Classifier: License :: OSI Approved :: Apache Software License
18
+ Classifier: Programming Language :: Python :: 3.10
19
+ Requires-Python: ==3.10.*
20
+ Description-Content-Type: text/markdown
21
+ License-File: LICENSE
22
+ Requires-Dist: cmake>=3.29.0.1
23
+ Requires-Dist: datasets>=2.19.0
24
+ Requires-Dist: deepdiff>=7.0.1
25
+ Requires-Dist: diffusers>=0.27.2
26
+ Requires-Dist: draccus>=0.10.0
27
+ Requires-Dist: einops>=0.8.0
28
+ Requires-Dist: flask>=3.0.3
29
+ Requires-Dist: gdown>=5.1.0
30
+ Requires-Dist: h5py>=3.10.0
31
+ Requires-Dist: huggingface-hub[cli,hf-transfer]>=0.27.1; python_version < "4.0"
32
+ Requires-Dist: imageio[ffmpeg]>=2.34.0
33
+ Requires-Dist: jsonlines>=4.0.0
34
+ Requires-Dist: numba>=0.62.0
35
+ Requires-Dist: omegaconf>=2.3.0
36
+ Requires-Dist: opencv-python-headless>=4.9.0
37
+ Requires-Dist: packaging>=24.2
38
+ Requires-Dist: av>=12.0.5
39
+ Requires-Dist: pymunk>=6.6.0
40
+ Requires-Dist: pynput>=1.7.7
41
+ Requires-Dist: pyzmq>=26.2.1
42
+ Requires-Dist: rerun-sdk>=0.21.0
43
+ Requires-Dist: termcolor>=2.4.0
44
+ Requires-Dist: torch<2.8.0,>=2.7.1
45
+ Requires-Dist: torchcodec<0.5.0,>=0.4.0; sys_platform != "win32" and (sys_platform != "linux" or (platform_machine != "aarch64" and platform_machine != "arm64" and platform_machine != "armv7l")) and (sys_platform != "darwin" or platform_machine != "x86_64")
46
+ Requires-Dist: torchvision<0.23.0,>=0.22.1
47
+ Requires-Dist: wandb>=0.16.3
48
+ Requires-Dist: zarr>=2.17.0
49
+ Requires-Dist: scikit-learn>=1.7.1
50
+ Requires-Dist: onnx>=1.18.0
51
+ Requires-Dist: onnxruntime>=1.22.1; sys_platform == "darwin" or platform_machine == "arm64" or platform_machine == "aarch64"
52
+ Requires-Dist: onnxruntime-gpu>=1.22.0; (sys_platform == "linux" and platform_machine == "x86_64") or (sys_platform == "win32" and (platform_machine == "AMD64" or platform_machine == "x86_64"))
53
+ Requires-Dist: onnxscript>=0.3.1
54
+ Requires-Dist: onnx-ir>=0.1.4
55
+ Requires-Dist: opentau-transformers==4.53.3
56
+ Requires-Dist: scipy>=1.15.2
57
+ Requires-Dist: pytest>=8.1.0
58
+ Requires-Dist: pytest-cov>=5.0.0
59
+ Requires-Dist: pyserial>=3.5
60
+ Requires-Dist: pytest-xdist>=3.8.0
61
+ Requires-Dist: scikit-image>=0.23.2
62
+ Requires-Dist: pandas>=2.2.2
63
+ Requires-Dist: accelerate>=1.4.0
64
+ Requires-Dist: deepspeed>=0.17.1
65
+ Provides-Extra: dev
66
+ Requires-Dist: pre-commit>=3.7.0; extra == "dev"
67
+ Requires-Dist: debugpy>=1.8.1; extra == "dev"
68
+ Requires-Dist: pytest>=8.1.0; extra == "dev"
69
+ Requires-Dist: pytest-cov>=5.0.0; extra == "dev"
70
+ Requires-Dist: pyserial>=3.5; extra == "dev"
71
+ Requires-Dist: pytest-xdist>=3.8.0; extra == "dev"
72
+ Requires-Dist: sphinx>=8.1.3; extra == "dev"
73
+ Requires-Dist: sphinx-rtd-theme>=3.0.1; extra == "dev"
74
+ Requires-Dist: sphinx-copybutton>=0.5.2; extra == "dev"
75
+ Requires-Dist: sphinx-design>=0.6.1; extra == "dev"
76
+ Requires-Dist: myst-parser>=4.0.0; extra == "dev"
77
+ Provides-Extra: openai
78
+ Requires-Dist: openai>=1.0.0; extra == "openai"
79
+ Requires-Dist: python-dotenv>=1.0.0; extra == "openai"
80
+ Provides-Extra: libero
81
+ Requires-Dist: cmake<4; extra == "libero"
82
+ Requires-Dist: ninja; extra == "libero"
83
+ Requires-Dist: bddl==1.0.1; extra == "libero"
84
+ Requires-Dist: easydict==1.9; extra == "libero"
85
+ Requires-Dist: future==0.18.2; extra == "libero"
86
+ Requires-Dist: matplotlib>=3.5.3; extra == "libero"
87
+ Requires-Dist: robomimic==0.2.0; extra == "libero"
88
+ Requires-Dist: robosuite==1.4.0; extra == "libero"
89
+ Requires-Dist: thop==0.1.1.post2209072238; extra == "libero"
90
+ Requires-Dist: mujoco>=3.3.5; extra == "libero"
91
+ Requires-Dist: PyOpenGL==3.1.7; extra == "libero"
92
+ Requires-Dist: libero; extra == "libero"
93
+ Requires-Dist: numpy<2; extra == "libero"
94
+ Requires-Dist: gym<0.27,>=0.25; extra == "libero"
95
+ Requires-Dist: pyopengl-accelerate==3.1.7; sys_platform == "linux" and extra == "libero"
96
+ Requires-Dist: gymnasium[other]>=0.29; extra == "libero"
97
+ Dynamic: license-file
98
+
99
+ <p align="center">
100
+ <a href="https://www.tensor.auto">
101
+ <img src="assets/logo.png" alt="Logo">
102
+ </a>
103
+ </p>
104
+
105
+ # OpenTau - Train VLA models with state-of-the-art techniques by Tensor
106
+
107
+ At Tensor, we are pushing the frontier of large foundation models for physical AI. In robot learning, a vision-language-action (VLA) model is a multimodal foundation model that integrates vision, language, and action. Today, VLA represents the leading approach for embodied AI, spanning autonomous driving, robot manipulation, and navigation.
108
+
109
+ OpenTau is Tensor’s open-source training toolchain for frontier VLA models—designed to make training reproducible, accessible, and scalable. At Tensor, we believe in open research and reproducible progress for the robotics community. By open-sourcing our training toolchain, we aim to expand knowledge sharing and accelerate scientific progress that others can reproduce.
110
+
111
+ Whether you use the official OpenPi codebase or LeRobot’s reimplementation, you may still be missing key components. OpenTau implements these key capabilities in one place:
112
+
113
+ - Co-training on an adjustable mixture of heterogeneous datasets
114
+ - Discrete actions for fast VLM convergence in $\pi_{0.5}$
115
+ - Knowledge insulation between the VLM backbone and the action expert
116
+ - Dropout in the VLM to reduce overfitting
117
+ - A reinforcement learning pipeline described in $\pi^*_{0.6}$
118
+ - And more...
119
+
120
+ OpenTau ($\tau$) is a tool developed by *[Tensor][1]* to bridge this gap, and we also use it internally to train our proprietary in-house models. Our goal is to help you train VLAs on any dataset while fully leveraging state-of-the-art techniques. We plan to continuously upgrade this repository to keep pace with the state of the art in the robotics community.
121
+
122
+ | Features | OpenPi | LeRobot | **OpenTau** |
123
+ | -------------------------------------------------------: | :---------------------: | :------------------------------: | :---------: |
124
+ | Co-training with Heterogeneous Datasets | ❌ | ❌ | ✅ |
125
+ | Discrete Actions Training in $\pi_{0.5}$ | ❌ | ❌ | ✅ |
126
+ | Knowledge Insulation (KI) between VLM and Action Decoder | ❌ | ❌ | ✅ |
127
+ | Dropout Layers in PaliGemma | ✅ (Jax) <br>❌ (PyTorch) | ❌ | ✅ |
128
+ | Multi-Node and Multi-GPU Training | ❌ | ✅ | ✅ |
129
+ | Fully Functioning $\pi_{0.5}$ Checkpoint | ✅ | ❌ <br> (Missing Text Embeddings) | ✅ |
130
+ | Simulation Environments for Evaluating Models | ❌ | ✅ | ✅ |
131
+ | $\pi^{*}_{0.6}$ style Reinforcement Learning Pipeline | ❌ | ❌ | ✅ |
132
+ | Framework | Jax / PyTorch | PyTorch | PyTorch |
133
+
134
+ ## Quick Start
135
+ If you are familiar with LeRobot, getting started with OpenTau is very easy.
136
+ Because OpenTau is a fork of the popular LeRobot repository, any LeRobot-compliant policy and dataset can be used directly with OpenTau.
137
+ Check out our documentation to get started quickly.
138
+ We provide a quick start guide to help you get started with OpenTau.
139
+
140
+ For using local notebooks to train and evaluate models, find the notebooks at `notebooks/pi05_training.ipynb` and `notebooks/pi05_evaluation_only.ipynb`.
141
+
142
+ For using the Google Colab notebooks to train and evaluate models, find the colab notebooks here: [pi05_training](https://colab.research.google.com/drive/1DeU0lNnEzs1KHo0Nkgh4YKBr-xu9moBM?usp=sharing) and [pi05_evaluation_only](https://colab.research.google.com/drive/1U_AyuH9WYMT4anEWvsOtIT7g01jA0WGm?usp=sharing) respectively.
143
+
144
+ ## Checkpoints
145
+ We provide fully functioning $\pi_{0.5}$ checkpoints trained with high success rates. We plan to release more models in the near future.
146
+
147
+ | Model Checkpoint | Description | Success Rate (%) |
148
+ |-------------------------------|---------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------|
149
+ | [TensorAuto/tPi0.5-libero][2] | A $\pi_{0.5}$ model checkpoint trained on the LIBERO dataset with discrete actions and knowledge insulation. | 98.4% (10) <br> 97.6% (Goal) <br> 100% (Object) <br> 98% (Spatial) |
150
+ | [TensorAuto/pi05_base][5] | A $\pi_{0.5}$ model checkpoint converted from the official openpi checkpoint, with language embeddings added. | N/A |
151
+ | More coming soon... | | |
152
+
153
+ ## Acknowledgements
154
+
155
+ This project builds on the $\pi$ series of [papers][3] and many other open-source efforts—especially [LeRobot][4]—for re-implementing the $\pi$ models and helping standardize training infrastructure. OpenTau extends these foundations to provide a more accessible, comprehensive toolchain for training vision-language-action agents.
156
+
157
+ [1]: https://www.tensor.ai
158
+ [2]: https://huggingface.co/TensorAuto/tPi0.5-libero
159
+ [3]: https://www.pi.website/blog
160
+ [4]: https://huggingface.co/lerobot
161
+ [5]: https://huggingface.co/TensorAuto/pi05_base