CyberNative AI LLC commited on
Commit ·
04782c0
1
Parent(s): eb19843
Publish SO-arm task clock dataset and reproduction scripts
Browse files- LICENSE +202 -0
- README.md +145 -0
- clock.tsv +14 -0
- datasets.tsv +0 -0
- labels.tsv +60 -0
- prices.tsv +9 -0
- sample_ids.txt +0 -0
- scripts/analyse.py +105 -0
- scripts/classify.py +37 -0
- scripts/fetch.py +105 -0
- scripts/hub.py +74 -0
- scripts/labelcheck.py +22 -0
- scripts/list.py +59 -0
- scripts/sample.py +26 -0
LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
Apache License
|
| 3 |
+
Version 2.0, January 2004
|
| 4 |
+
http://www.apache.org/licenses/
|
| 5 |
+
|
| 6 |
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
| 7 |
+
|
| 8 |
+
1. Definitions.
|
| 9 |
+
|
| 10 |
+
"License" shall mean the terms and conditions for use, reproduction,
|
| 11 |
+
and distribution as defined by Sections 1 through 9 of this document.
|
| 12 |
+
|
| 13 |
+
"Licensor" shall mean the copyright owner or entity authorized by
|
| 14 |
+
the copyright owner that is granting the License.
|
| 15 |
+
|
| 16 |
+
"Legal Entity" shall mean the union of the acting entity and all
|
| 17 |
+
other entities that control, are controlled by, or are under common
|
| 18 |
+
control with that entity. For the purposes of this definition,
|
| 19 |
+
"control" means (i) the power, direct or indirect, to cause the
|
| 20 |
+
direction or management of such entity, whether by contract or
|
| 21 |
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
| 22 |
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
| 23 |
+
|
| 24 |
+
"You" (or "Your") shall mean an individual or Legal Entity
|
| 25 |
+
exercising permissions granted by this License.
|
| 26 |
+
|
| 27 |
+
"Source" form shall mean the preferred form for making modifications,
|
| 28 |
+
including but not limited to software source code, documentation
|
| 29 |
+
source, and configuration files.
|
| 30 |
+
|
| 31 |
+
"Object" form shall mean any form resulting from mechanical
|
| 32 |
+
transformation or translation of a Source form, including but
|
| 33 |
+
not limited to compiled object code, generated documentation,
|
| 34 |
+
and conversions to other media types.
|
| 35 |
+
|
| 36 |
+
"Work" shall mean the work of authorship, whether in Source or
|
| 37 |
+
Object form, made available under the License, as indicated by a
|
| 38 |
+
copyright notice that is included in or attached to the work
|
| 39 |
+
(an example is provided in the Appendix below).
|
| 40 |
+
|
| 41 |
+
"Derivative Works" shall mean any work, whether in Source or Object
|
| 42 |
+
form, that is based on (or derived from) the Work and for which the
|
| 43 |
+
editorial revisions, annotations, elaborations, or other modifications
|
| 44 |
+
represent, as a whole, an original work of authorship. For the purposes
|
| 45 |
+
of this License, Derivative Works shall not include works that remain
|
| 46 |
+
separable from, or merely link (or bind by name) to the interfaces of,
|
| 47 |
+
the Work and Derivative Works thereof.
|
| 48 |
+
|
| 49 |
+
"Contribution" shall mean any work of authorship, including
|
| 50 |
+
the original version of the Work and any modifications or additions
|
| 51 |
+
to that Work or Derivative Works thereof, that is intentionally
|
| 52 |
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
| 53 |
+
or by an individual or Legal Entity authorized to submit on behalf of
|
| 54 |
+
the copyright owner. For the purposes of this definition, "submitted"
|
| 55 |
+
means any form of electronic, verbal, or written communication sent
|
| 56 |
+
to the Licensor or its representatives, including but not limited to
|
| 57 |
+
communication on electronic mailing lists, source code control systems,
|
| 58 |
+
and issue tracking systems that are managed by, or on behalf of, the
|
| 59 |
+
Licensor for the purpose of discussing and improving the Work, but
|
| 60 |
+
excluding communication that is conspicuously marked or otherwise
|
| 61 |
+
designated in writing by the copyright owner as "Not a Contribution."
|
| 62 |
+
|
| 63 |
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
| 64 |
+
on behalf of whom a Contribution has been received by Licensor and
|
| 65 |
+
subsequently incorporated within the Work.
|
| 66 |
+
|
| 67 |
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
| 68 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 69 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 70 |
+
copyright license to reproduce, prepare Derivative Works of,
|
| 71 |
+
publicly display, publicly perform, sublicense, and distribute the
|
| 72 |
+
Work and such Derivative Works in Source or Object form.
|
| 73 |
+
|
| 74 |
+
3. Grant of Patent License. Subject to the terms and conditions of
|
| 75 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 76 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 77 |
+
(except as stated in this section) patent license to make, have made,
|
| 78 |
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
| 79 |
+
where such license applies only to those patent claims licensable
|
| 80 |
+
by such Contributor that are necessarily infringed by their
|
| 81 |
+
Contribution(s) alone or by combination of their Contribution(s)
|
| 82 |
+
with the Work to which such Contribution(s) was submitted. If You
|
| 83 |
+
institute patent litigation against any entity (including a
|
| 84 |
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
| 85 |
+
or a Contribution incorporated within the Work constitutes direct
|
| 86 |
+
or contributory patent infringement, then any patent licenses
|
| 87 |
+
granted to You under this License for that Work shall terminate
|
| 88 |
+
as of the date such litigation is filed.
|
| 89 |
+
|
| 90 |
+
4. Redistribution. You may reproduce and distribute copies of the
|
| 91 |
+
Work or Derivative Works thereof in any medium, with or without
|
| 92 |
+
modifications, and in Source or Object form, provided that You
|
| 93 |
+
meet the following conditions:
|
| 94 |
+
|
| 95 |
+
(a) You must give any other recipients of the Work or
|
| 96 |
+
Derivative Works a copy of this License; and
|
| 97 |
+
|
| 98 |
+
(b) You must cause any modified files to carry prominent notices
|
| 99 |
+
stating that You changed the files; and
|
| 100 |
+
|
| 101 |
+
(c) You must retain, in the Source form of any Derivative Works
|
| 102 |
+
that You distribute, all copyright, patent, trademark, and
|
| 103 |
+
attribution notices from the Source form of the Work,
|
| 104 |
+
excluding those notices that do not pertain to any part of
|
| 105 |
+
the Derivative Works; and
|
| 106 |
+
|
| 107 |
+
(d) If the Work includes a "NOTICE" text file as part of its
|
| 108 |
+
distribution, then any Derivative Works that You distribute must
|
| 109 |
+
include a readable copy of the attribution notices contained
|
| 110 |
+
within such NOTICE file, excluding those notices that do not
|
| 111 |
+
pertain to any part of the Derivative Works, in at least one
|
| 112 |
+
of the following places: within a NOTICE text file distributed
|
| 113 |
+
as part of the Derivative Works; within the Source form or
|
| 114 |
+
documentation, if provided along with the Derivative Works; or,
|
| 115 |
+
within a display generated by the Derivative Works, if and
|
| 116 |
+
wherever such third-party notices normally appear. The contents
|
| 117 |
+
of the NOTICE file are for informational purposes only and
|
| 118 |
+
do not modify the License. You may add Your own attribution
|
| 119 |
+
notices within Derivative Works that You distribute, alongside
|
| 120 |
+
or as an addendum to the NOTICE text from the Work, provided
|
| 121 |
+
that such additional attribution notices cannot be construed
|
| 122 |
+
as modifying the License.
|
| 123 |
+
|
| 124 |
+
You may add Your own copyright statement to Your modifications and
|
| 125 |
+
may provide additional or different license terms and conditions
|
| 126 |
+
for use, reproduction, or distribution of Your modifications, or
|
| 127 |
+
for any such Derivative Works as a whole, provided Your use,
|
| 128 |
+
reproduction, and distribution of the Work otherwise complies with
|
| 129 |
+
the conditions stated in this License.
|
| 130 |
+
|
| 131 |
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
| 132 |
+
any Contribution intentionally submitted for inclusion in the Work
|
| 133 |
+
by You to the Licensor shall be under the terms and conditions of
|
| 134 |
+
this License, without any additional terms or conditions.
|
| 135 |
+
Notwithstanding the above, nothing herein shall supersede or modify
|
| 136 |
+
the terms of any separate license agreement you may have executed
|
| 137 |
+
with Licensor regarding such Contributions.
|
| 138 |
+
|
| 139 |
+
6. Trademarks. This License does not grant permission to use the trade
|
| 140 |
+
names, trademarks, service marks, or product names of the Licensor,
|
| 141 |
+
except as required for reasonable and customary use in describing the
|
| 142 |
+
origin of the Work and reproducing the content of the NOTICE file.
|
| 143 |
+
|
| 144 |
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
| 145 |
+
agreed to in writing, Licensor provides the Work (and each
|
| 146 |
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
| 147 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
| 148 |
+
implied, including, without limitation, any warranties or conditions
|
| 149 |
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
| 150 |
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
| 151 |
+
appropriateness of using or redistributing the Work and assume any
|
| 152 |
+
risks associated with Your exercise of permissions under this License.
|
| 153 |
+
|
| 154 |
+
8. Limitation of Liability. In no event and under no legal theory,
|
| 155 |
+
whether in tort (including negligence), contract, or otherwise,
|
| 156 |
+
unless required by applicable law (such as deliberate and grossly
|
| 157 |
+
negligent acts) or agreed to in writing, shall any Contributor be
|
| 158 |
+
liable to You for damages, including any direct, indirect, special,
|
| 159 |
+
incidental, or consequential damages of any character arising as a
|
| 160 |
+
result of this License or out of the use or inability to use the
|
| 161 |
+
Work (including but not limited to damages for loss of goodwill,
|
| 162 |
+
work stoppage, computer failure or malfunction, or any and all
|
| 163 |
+
other commercial damages or losses), even if such Contributor
|
| 164 |
+
has been advised of the possibility of such damages.
|
| 165 |
+
|
| 166 |
+
9. Accepting Warranty or Additional Liability. While redistributing
|
| 167 |
+
the Work or Derivative Works thereof, You may choose to offer,
|
| 168 |
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
| 169 |
+
or other liability obligations and/or rights consistent with this
|
| 170 |
+
License. However, in accepting such obligations, You may act only
|
| 171 |
+
on Your own behalf and on Your sole responsibility, not on behalf
|
| 172 |
+
of any other Contributor, and only if You agree to indemnify,
|
| 173 |
+
defend, and hold each Contributor harmless for any liability
|
| 174 |
+
incurred by, or claims asserted against, such Contributor by reason
|
| 175 |
+
of your accepting any such warranty or additional liability.
|
| 176 |
+
|
| 177 |
+
END OF TERMS AND CONDITIONS
|
| 178 |
+
|
| 179 |
+
APPENDIX: How to apply the Apache License to your work.
|
| 180 |
+
|
| 181 |
+
To apply the Apache License to your work, attach the following
|
| 182 |
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
| 183 |
+
replaced with your own identifying information. (Don't include
|
| 184 |
+
the brackets!) The text should be enclosed in the appropriate
|
| 185 |
+
comment syntax for the file format. We also recommend that a
|
| 186 |
+
file or class name and description of purpose be included on the
|
| 187 |
+
same "printed page" as the copyright notice for easier
|
| 188 |
+
identification within third-party archives.
|
| 189 |
+
|
| 190 |
+
Copyright [yyyy] [name of copyright owner]
|
| 191 |
+
|
| 192 |
+
Licensed under the Apache License, Version 2.0 (the "License");
|
| 193 |
+
you may not use this file except in compliance with the License.
|
| 194 |
+
You may obtain a copy of the License at
|
| 195 |
+
|
| 196 |
+
http://www.apache.org/licenses/LICENSE-2.0
|
| 197 |
+
|
| 198 |
+
Unless required by applicable law or agreed to in writing, software
|
| 199 |
+
distributed under the License is distributed on an "AS IS" BASIS,
|
| 200 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 201 |
+
See the License for the specific language governing permissions and
|
| 202 |
+
limitations under the License.
|
README.md
ADDED
|
@@ -0,0 +1,145 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
pretty_name: SO-arm task clock
|
| 4 |
+
tags:
|
| 5 |
+
- lerobot
|
| 6 |
+
- robotics
|
| 7 |
+
- so-100
|
| 8 |
+
- so-101
|
| 9 |
+
size_categories:
|
| 10 |
+
- 1K<n<10K
|
| 11 |
+
configs:
|
| 12 |
+
- config_name: default
|
| 13 |
+
data_files:
|
| 14 |
+
- split: train
|
| 15 |
+
path: datasets.tsv
|
| 16 |
+
sep: "\t"
|
| 17 |
+
---
|
| 18 |
+
|
| 19 |
+
# SO-arm task clock
|
| 20 |
+
|
| 21 |
+
How long is one recorded episode of a common task on an SO-100 or SO-101 arm? This is a dated snapshot built from the
|
| 22 |
+
public metadata of LeRobot datasets on Hugging Face, listed on 2026-11-18.
|
| 23 |
+
|
| 24 |
+
**Sample.** 14,839 SO-arm datasets from 2,830 authors were in the listing (rule below). We drew up to three per author
|
| 25 |
+
(5,872 datasets) and read their metadata. 109 could not be read; 1,984 were read and left out (fewer than 5 episodes,
|
| 26 |
+
or no frame or fps count); **3,779 were analysed**. By repository name, 3,447 of those look like teleoperated
|
| 27 |
+
recordings (2,065 authors) and 332 look like policy rollouts.
|
| 28 |
+
|
| 29 |
+
Seconds per recorded episode, likely-teleop datasets. For each author we take the median of their datasets' mean
|
| 30 |
+
episode times within the family, so one busy account counts once; the percentiles are across authors.
|
| 31 |
+
|
| 32 |
+
| task family | authors | episodes | p10 s | **p50 s** | p90 s | episodes an hour at p50 (illustrative) |
|
| 33 |
+
|---|---|---|---|---|---|---|
|
| 34 |
+
| pick and place | 1,758 | 229,441 | 9.0 | **16.7** | 29.9 | 215 |
|
| 35 |
+
| stack | 76 | 26,556 | 9.1 | **19.0** | 38.7 | 190 |
|
| 36 |
+
| sort | 47 | 10,557 | 10.7 | **23.7** | 40.3 | 152 |
|
| 37 |
+
| fold (cloth, towel, shirt) | 42 | 4,830 | 11.6 | **27.1** | 77.7 | 133 |
|
| 38 |
+
| insert (peg, plug, slot) | 35 | 4,957 | 11.2 | **15.0** | 26.1 | 241 |
|
| 39 |
+
| push | 31 | 7,712 | 7.1 | **14.9** | 29.9 | 241 |
|
| 40 |
+
| press (button, switch) | 23 | 6,427 | 7.9 | **13.1** | 19.9 | 276 |
|
| 41 |
+
| pour or scoop | 19 | 1,857 | 15.8 | **25.9** | 42.4 | 139 |
|
| 42 |
+
| hand over | 15 | 1,188 | 11.3 | **19.9** | 27.7 | 181 |
|
| 43 |
+
|
| 44 |
+
The last column is 3,600 divided by the p50: the rate of back-to-back recording at the median episode length, with no
|
| 45 |
+
resets. It is an illustration, not a measured throughput, and a recorded episode need not end in a finished task.
|
| 46 |
+
|
| 47 |
+
Likely policy rollouts are counted apart. Only pick and place has enough rollout-name authors (210): median **23.4 s**
|
| 48 |
+
an episode against 16.7 s in the likely-teleop group. The records carry no success label, so this compares recorded
|
| 49 |
+
time between two name-based groups, not time to succeed.
|
| 50 |
+
|
| 51 |
+
## What you can use it for
|
| 52 |
+
|
| 53 |
+
- **Planning a recording session.** In this snapshot, 1,595 of 1,758 authors' typical pick-and-place episode is under
|
| 54 |
+
30 s, and 50 episodes at the median are about 14 minutes of recorded episode time, before resets.
|
| 55 |
+
- **Choosing an episode length.** The p10 to p90 range of your task family shows how long other owners' episodes ran.
|
| 56 |
+
Recorded length can be set by the recorder's time limit (`--dataset.episode_time_s` in LeRobot) as well as by the
|
| 57 |
+
task, so treat the table as a reference range, not a target.
|
| 58 |
+
- **Comparing a rollout.** A rollout far outside the p10-p90 range of its family is worth a look at the video; the
|
| 59 |
+
table cannot say why it ran long.
|
| 60 |
+
- **Choosing a task to teach.** `prices.tsv` sets the folding row next to public prices for the work it imitates:
|
| 61 |
+
award-derived estimates of USD 0.41 to 1.09 per pound for the whole institutional laundry service at three US
|
| 62 |
+
Veterans Affairs medical centres (the 0.41-0.53 estimate assumes the VISN 1 schedule quantity is yearly; the file
|
| 63 |
+
gives each calculation), and a manufacturer's rating of up to 1,200 towels an hour for automatic towel folders.
|
| 64 |
+
|
| 65 |
+
## Files
|
| 66 |
+
|
| 67 |
+
`load_dataset("CyberNative-AI/so-arm-task-clock")` returns `datasets.tsv` as the `train` split: 3,779 rows, 12
|
| 68 |
+
columns, with `NA` in `fixed_length` read as null. That uses the `configs` entry above, which `datasets` 2.14 and later
|
| 69 |
+
read (we checked 2.14.0, 3.6.0 and 5.2.0). Older versions ignore it and fail on the mixed tables; there, pass
|
| 70 |
+
`data_files="datasets.tsv"` (checked on 2.13.2). Download the other files directly.
|
| 71 |
+
|
| 72 |
+
- `clock.tsv`: the table above, plus the families we did not publish and why. Written by `analyse.py`.
|
| 73 |
+
- `datasets.tsv`: one row per analysed dataset (3,779): id, author namespace, kind (`teleop` or `policy`, a
|
| 74 |
+
repository-name proxy), family, robot type, LeRobot version, episodes, frames, fps, mean and median episode seconds,
|
| 75 |
+
`fixed_length`. No task text, video or frame data.
|
| 76 |
+
- `prices.tsv`: the public prices joined to the families they imitate, with the record, the calculation and a link.
|
| 77 |
+
- `labels.tsv`: our hand labels and the rule's family for the 59-dataset rule check.
|
| 78 |
+
- `sample_ids.txt`: the 5,872 dataset ids drawn.
|
| 79 |
+
- `scripts/`, Python 3 standard library only:
|
| 80 |
+
|
| 81 |
+
| script | reads | writes |
|
| 82 |
+
|---|---|---|
|
| 83 |
+
| `list.py OUT [MAX_PAGES]` | Hub listing `filter=LeRobot` | creates `OUT/`; appends `OUT/datasets.jsonl`; replaces `OUT/cursor.txt` (resume point) |
|
| 84 |
+
| `sample.py OUT/datasets.jsonl OUT` | the listing | replaces `OUT/so_ids.txt`, `OUT/sample_ids.txt` |
|
| 85 |
+
| `fetch.py OUT/sample_ids.txt OUT/meta.jsonl` | each dataset's `meta/` files | appends `OUT/meta.jsonl` (skips ids already done) |
|
| 86 |
+
| `analyse.py OUT/meta.jsonl RESULT [OUT/sample_ids.txt]` | `meta.jsonl` | creates `RESULT/`; replaces `clock.json`, `clock.tsv`, `datasets.tsv` |
|
| 87 |
+
| `labelcheck.py LABEL_META.jsonl labels.tsv` | fetch output for the label ids | nothing |
|
| 88 |
+
| `classify.py`, `hub.py` | (imported) | nothing |
|
| 89 |
+
|
| 90 |
+
Use a new `OUT` and `RESULT` directory for a fresh run. The scripts only send GET requests to `huggingface.co` and
|
| 91 |
+
Hugging Face file storage (`*.huggingface.co`, `*.hf.co`) over HTTPS; any other destination, including a redirect or a
|
| 92 |
+
next-page link, is refused. Redirects are followed by `hub.py` itself (at most 5, redirect bodies are not read), and
|
| 93 |
+
each final response is size-limited before it is parsed. `fetch.py` paces itself
|
| 94 |
+
to about 6 requests a second and backs off on a rate-limit reply. A run today reads today's Hub, so counts will differ
|
| 95 |
+
from this snapshot. Run on the retained metadata of this snapshot, `analyse.py` reproduces `datasets.tsv` byte for byte.
|
| 96 |
+
|
| 97 |
+
## How it was made, and its limits
|
| 98 |
+
|
| 99 |
+
- **SO-arm rule.** A listed dataset counts as SO-arm when the case-insensitive pattern
|
| 100 |
+
`so[\W_]?10[01]|so[\W_]?arm|so[\W_]?follower` matches anywhere in its full repository id (author namespace included)
|
| 101 |
+
or in any of its tags. 63 datasets from 8 authors match only through the author namespace. The pattern also matches
|
| 102 |
+
inside longer words. `robot_type` was not used to select.
|
| 103 |
+
- **Draw.** For each author in sorted order, their sorted ids are shuffled with one `random.Random(20261118)` and the
|
| 104 |
+
first three kept (`sample.py`).
|
| 105 |
+
- **Episode time** is a dataset's frames divided by fps and by episodes: the mean recorded time per episode. Recording
|
| 106 |
+
ends when the person ends the episode or when the recorder's time limit runs out, and some recorders include pauses.
|
| 107 |
+
- **`fixed_length`** is `yes` when the usable episode lengths read for a dataset all lie within 2 frames of each
|
| 108 |
+
other. It is computed only for v2 datasets, from the positive `length` values in the first 5,000 lines of
|
| 109 |
+
`meta/episodes.jsonl`, and only when there are 5 or more of them (`NA` otherwise). Those lengths are not always every
|
| 110 |
+
episode: in 6 datasets with a value, the number read differs from the reported episode total (one of them is a `yes`).
|
| 111 |
+
It shows near-constant length; whether a time limit caused it is unknown. Among 979 likely-teleop datasets with those lengths, 183 are `yes`. Leaving them out moves a
|
| 112 |
+
published family's p50 by at most 0.5 s (stack, 19.0 to 19.5 s; `clock.tsv`). The v3 datasets, most of the sample,
|
| 113 |
+
are not checked.
|
| 114 |
+
- **Teleop or rollout** is a guess from the repository name: a name with `eval`, `rollout` or `infer` (so also `inference`) at
|
| 115 |
+
the start of the name or after a non-letter is a likely policy rollout; every other dataset is counted as likely
|
| 116 |
+
teleop. The metadata does not record the controller, so a row can be in the wrong group.
|
| 117 |
+
- **Families** come from fixed keyword rules (`classify.py`) on the dataset name and the task strings, first match
|
| 118 |
+
wins, not from what happened in the video. Rows the rules do not match are `other` (166 likely-teleop authors).
|
| 119 |
+
"Hand over" means the name or task says hand over, pass, or left, right or other hand; it does not establish two
|
| 120 |
+
arms. Task strings come from
|
| 121 |
+
`meta/tasks.jsonl` for v2 datasets; for v3 they are printable text fragments taken from `meta/tasks.parquet` without
|
| 122 |
+
a parquet reader, so a string can be split or missed.
|
| 123 |
+
- **Rule check.** 90 SO-arm ids were drawn at random (seed 20261118); the 59 that were readable with 5 or more episodes
|
| 124 |
+
were hand-labelled from name and task strings. The final rules agree on 55 of 59 (93%); `labels.tsv` holds both
|
| 125 |
+
labels and `labelcheck.py` prints the four misses. The metadata it was run on is not shipped (SHA-256
|
| 126 |
+
`85ba9842928efb19e7bea1b287058a9a05498ef60785e71e8dc1776047a4c5b1`); `fetch.py` on those ids gives today's version.
|
| 127 |
+
- **Purity reading.** For each family with 10 or more authors we read 10 random members by hand; a family under 8 of
|
| 128 |
+
10 is not published. Pick and place, pour and hand over scored 10, stack and sort 9, push and press 8. Fold (4),
|
| 129 |
+
insert (7) and open-close (3) failed; their rules were tightened once to require the action and were re-read on a
|
| 130 |
+
fresh 10: fold 10, insert 10, open-close 7 (not published). Draw was tightened the same way and scored 8 of 9; it has
|
| 131 |
+
7 authors and is not published.
|
| 132 |
+
- **Teleop is not autonomy.** These are recorded times. They say nothing about how often a person or a policy
|
| 133 |
+
succeeded.
|
| 134 |
+
- **Prices** cover folding only, and the laundry prices are for the whole service, not folding alone. A search of
|
| 135 |
+
US federal notices found no public price for kitting, assembly or mail sorting by the piece.
|
| 136 |
+
- **Ids and removal.** Every id here appeared in the public, anonymous Hub listing on 2026-11-18. A dataset
|
| 137 |
+
made private or deleted since then still appears in this snapshot; ask and we will remove it.
|
| 138 |
+
|
| 139 |
+
## Licence
|
| 140 |
+
|
| 141 |
+
Apache-2.0 covers what this project publishes here: the tables, the labels and the scripts. The datasets these rows
|
| 142 |
+
describe belong to their authors and keep their own licences and terms on the Hub.
|
| 143 |
+
|
| 144 |
+
Prepared by CyberNative AI LLC, an AI-run company, using AI agents. Corrections, including a dataset in the wrong
|
| 145 |
+
family: open a discussion on this dataset or write to hello@cybernative.ai. We date each correction in this card.
|
clock.tsv
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
family authors datasets episodes recorded_hours p10_s p50_s p90_s p50_s_without_fixed_length_datasets illustrative_episodes_per_hour_at_p50 rollout_proxy_authors rollout_proxy_p50_s note
|
| 2 |
+
pick-place 1758 2764 229441 983.4 9.0 16.7 29.9 16.7 215 210 23.4 published
|
| 3 |
+
stack 76 101 26556 102.7 9.1 19.0 38.7 19.5 190 7 NA published
|
| 4 |
+
sort 47 73 10557 56.5 10.7 23.7 40.3 23.7 152 3 NA published
|
| 5 |
+
fold 42 60 4830 42.7 11.6 27.1 77.7 27.1 133 4 NA published
|
| 6 |
+
insert 35 53 4957 21.6 11.2 15.0 26.1 15.3 241 4 NA published
|
| 7 |
+
push 31 37 7712 22.3 7.1 14.9 29.9 14.9 241 1 NA published
|
| 8 |
+
press 23 33 6427 26.8 7.9 13.1 19.9 12.7 276 3 NA published
|
| 9 |
+
pour 19 25 1857 12.8 15.8 25.9 42.4 25.9 139 2 NA published
|
| 10 |
+
handover 15 24 1188 5.4 11.3 19.9 27.7 19.8 181 3 NA published
|
| 11 |
+
open-close 22 30 3478 17.9 NA NA NA NA NA NA NA not published: failed the family purity reading twice (7/10 on the fresh sample)
|
| 12 |
+
draw 7 9 366 1.5 NA NA NA NA NA NA NA not published: 7 authors (rule needs 10)
|
| 13 |
+
wipe 5 5 181 1.2 NA NA NA NA NA NA NA not published: 5 authors (rule needs 10)
|
| 14 |
+
other 166 233 14742 65.5 NA NA NA NA NA NA NA unmatched by every family rule
|
datasets.tsv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
labels.tsv
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
n id hand_label rule_family
|
| 2 |
+
1 digas99/so101_tray_train_v2corrAB pick-place pick-place
|
| 3 |
+
2 Faless/SO-101-Red-Cube-v3 pick-place pick-place
|
| 4 |
+
3 Alloune/SO-101_box_to_bin_20260522_090836 pick-place pick-place
|
| 5 |
+
4 Winster/so100_cube pick-place pick-place
|
| 6 |
+
5 mabstruct/so101_pick_place_test_20260819_153406 pick-place pick-place
|
| 7 |
+
6 zaowu/zhr_so101arm_smallrandom_100epo_4 pick-place pick-place
|
| 8 |
+
7 Petitlouis1/so101_reach_v2 other other
|
| 9 |
+
8 UD77/latchbench-so101-v0 insert insert
|
| 10 |
+
9 1lyz123576/so101_test-1 pick-place pick-place
|
| 11 |
+
10 YKB0123/so101_red_cube_plastic_box_front_50_dynamic_trim pick-place pick-place
|
| 12 |
+
11 oghyhk1/so101_test other other
|
| 13 |
+
12 Da-Hayashi/so101-teleop-vials-to-rack-real_20260818_184718 pick-place pick-place
|
| 14 |
+
13 Tacoin/so101_simple_pick pick-place pick-place
|
| 15 |
+
14 anvilbot-patrickhhh/SO101_PickAndPlace_3cams_smolVLA_eval pick-place pick-place
|
| 16 |
+
15 edmos7/so100_pickplace_1cam pick-place pick-place
|
| 17 |
+
16 HyeonseokE/SO101-pnp_ma_40epi pick-place pick-place
|
| 18 |
+
17 mr-dee/dylan-so101-train1 pick-place pick-place
|
| 19 |
+
18 TaeJun123123/so101_lego_drop_real_50 pick-place pick-place
|
| 20 |
+
19 hannb/so100_test pick-place pick-place
|
| 21 |
+
20 Miical/so101-30episodes-augmented pick-place pick-place
|
| 22 |
+
21 TobinH/so101_pen_in_cup_1 pick-place pick-place
|
| 23 |
+
22 riversnow/so101-wall-building-cam01 stack push
|
| 24 |
+
23 m1b/so100_bluelego pick-place pick-place
|
| 25 |
+
24 jaydef/so101_pick_place_v2 pick-place pick-place
|
| 26 |
+
25 TylerCasper/so101legobowltrial50_episodes pick-place pick-place
|
| 27 |
+
26 CursedRock17/so101_two_cam pick-place pick-place
|
| 28 |
+
27 kozo2/so101_test_20261024_161449 pick-place pick-place
|
| 29 |
+
28 NeuramateSUSU/so101_penholder_demo_v2 pick-place pick-place
|
| 30 |
+
29 hoon-shin/so100_basketball pick-place pick-place
|
| 31 |
+
30 emectronics/so101_smolvla_dataset_20260609_183515 pick-place pick-place
|
| 32 |
+
31 Delcastillo8/so101_cube_to_tray pick-place pick-place
|
| 33 |
+
32 bigtraveler/so101_record_test_40 pick-place pick-place
|
| 34 |
+
33 di-techinnova/so-arm-101-pouring-0.2 pour pour
|
| 35 |
+
34 saksham04/so101_tape_in_cup_20260530_225208 pick-place pick-place
|
| 36 |
+
35 wqz25/so101_pill_bottle pick-place pick-place
|
| 37 |
+
36 gainz248ai/eval_so101_ACTLego_40k pick-place pick-place
|
| 38 |
+
37 Norimatsu2/so101-pickup-test pick-place pick-place
|
| 39 |
+
38 hi-space/SO-ARM101-PICK-BANANA pick-place pick-place
|
| 40 |
+
39 andrejarden/so101_airbag_bluebox_v6_20260512_125940 pick-place pick-place
|
| 41 |
+
40 wsagi/leisaac-real-pick-orange pick-place pick-place
|
| 42 |
+
41 dddw123/so101-left-arm-grab-and-pull-only other pick-place
|
| 43 |
+
42 Shizhec/so101-pick-marker pick-place pick-place
|
| 44 |
+
43 polrolnik2/so101_candy pick-place pick-place
|
| 45 |
+
44 aoisoratoumi/so101_pick_place pick-place pick-place
|
| 46 |
+
45 jiuyal2/eval_so100_pt50_only2_test pick-place pick-place
|
| 47 |
+
46 lab2000/so101_vinyl_tape_table_to_floor_v1 pick-place pick-place
|
| 48 |
+
47 sovrasov/fold_napkin fold fold
|
| 49 |
+
48 phospho-app/test_rtx_3_cube_bboxes pick-place pick-place
|
| 50 |
+
49 Natalish/eval_so101-painting draw draw
|
| 51 |
+
50 EdwardCHWang/so101_green_cube_vla_0223 pick-place pick-place
|
| 52 |
+
51 shamux/so101_sock_2cam_20261111_204039 pick-place pick-place
|
| 53 |
+
52 ganondorofu/so101_gpulearntestv3 pick-place pick-place
|
| 54 |
+
53 nikriz/so101_drawer_nvs_azim_5.0_tx_0_tz_-0.05 open-close open-close
|
| 55 |
+
54 BaboGaeguri/leftarm_v2 handover pick-place
|
| 56 |
+
55 armandomm09/so101_terminal_sort sort sort
|
| 57 |
+
56 HenryLouu/so101_test2 pick-place pick-place
|
| 58 |
+
57 Sahoj/so101_record3 pick-place pick-place
|
| 59 |
+
58 Deason11/so100_test_pick_and_place_50 pick-place pick-place
|
| 60 |
+
59 doganay-sirintuna/so101_jenga_pick_place pick-place stack
|
prices.tsv
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
family paid_work_it_imitates payer record period usd_per_unit unit kind calculation source
|
| 2 |
+
fold institutional laundry, whole service (pickup, wash, dry, fold, deliver) US Department of Veterans Affairs, VISN 1 solicitation 36C24122Q0263, award 36C24122P0384 (9W Halo) 2022-02-13 to 2023-12-12 0.41-0.53 lb soiled award-derived estimate schedule quantity 7,120,258 lb, period not stated, assumed yearly: USAspending obligation 5,316,010 / (7,120,258 x 22/12 years) = 0.41; award notice amount 3,799,370 / 7,120,258 = 0.53 https://www.usaspending.gov/award/CONT_AWD_36C24122P0384_3600_-NONE-_-NONE- ; https://sam.gov/opp/0c1a99177bec47e9992ef984526c38cf/view
|
| 3 |
+
fold institutional laundry, whole service US Department of Veterans Affairs, Brockton solicitation 36C24124Q0275, award 36C24124C0040 (Century Linen) 2024-02-13 to 2026-02-12 1.09 lb soiled award-derived estimate schedule 1,050,000 lb per 3 months = 4,200,000 a year: USAspending obligation 9,179,569 / 8,400,000 lb over 2 years = 1.09 https://www.usaspending.gov/award/CONT_AWD_36C24124C0040_3600_-NONE-_-NONE- ; https://sam.gov/opp/21ba5289c1aa497eb7531b4c51aaeb05/view
|
| 4 |
+
fold institutional laundry, whole service US Department of Veterans Affairs, Central Iowa solicitation 36C26321Q0224, award 36C26321D0040 (ASI) 2021-03-01 to 2022-05-31 (15 months by the notice dates; the schedule quantity is 16 months) 0.63 lb award-derived estimate schedule quantity 940,000 lb (58,750 lb a month x 16 months as read on the schedule): award notice amount 595,584 / 940,000 = 0.63; an IDIQ award amount can differ from what was ordered https://sam.gov/opp/de1d6b2c0ef4422186f81d0053dec193/view
|
| 5 |
+
fold institutional laundry, whole service South Carolina Department of Mental Health solicitation 54000222864, written determination 2023-105 2022 bid 1.29 lb clean bid (not an award price) bid price as stated by the bidder; the same bidder's letter, quoted in the determination, says the current vendor charged 2.25 and earlier 2.90 (bidder's statements) https://procurement.sc.gov/files/cpo/File%202023-105%20Reg%202085B%20Decision%20ESI%20Bid.pdf
|
| 6 |
+
fold delivered machine for the folding step Girbau (manufacturer) FT towel folder series page read 2026-11-18 NA NA manufacturer capacity rating (no price) "folds up to 1,200 towels per hour", depending on model and towel https://www.girbau.com/towel-folding/ft/
|
| 7 |
+
pick-place kitting, assembly, mail by the piece none found SAM.gov public search of notices from 2021 on, 2026-11-18: kitting and assembly notices were product buys with no priced labour line NA NA NA none found NA https://sam.gov/
|
| 8 |
+
sort mail sorting by the piece none found same search, no priced labour line NA NA NA none found NA https://sam.gov/
|
| 9 |
+
other families NA not searched NA NA NA NA not searched NA NA
|
sample_ids.txt
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
scripts/analyse.py
ADDED
|
@@ -0,0 +1,105 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Task clock: per family, recorded seconds per episode across authors.
|
| 2 |
+
|
| 3 |
+
usage: analyse.py OUT_DIR/meta.jsonl RESULT_DIR [OUT_DIR/sample_ids.txt]
|
| 4 |
+
Creates RESULT_DIR if missing and replaces clock.json, clock.tsv and datasets.tsv in it. Use a new RESULT_DIR per run.
|
| 5 |
+
|
| 6 |
+
Per dataset: mean episode seconds = frames / fps / episodes; kept with 5 or more episodes and frames, fps > 0.
|
| 7 |
+
fixed_length (v2 only): the usable lengths read (positive numbers among the at most 5,000 fetch.py keeps) all lie
|
| 8 |
+
within 2 frames of each other, computed only with 5 or more of them. Usable lengths can number fewer than total_episodes.
|
| 9 |
+
kind: "policy" if the repository name matches classify.POLICY, else "teleop" (a name proxy, not a recorded fact).
|
| 10 |
+
Per family and kind: each author's median of their datasets' means, then p10/p50/p90 across authors (linear).
|
| 11 |
+
clock.tsv publishes a teleop family with MIN_AUTHORS or more authors that passed the purity reading (PURITY_FAILED)."""
|
| 12 |
+
import json, sys, os, statistics as st, collections
|
| 13 |
+
if len(sys.argv) < 3:
|
| 14 |
+
sys.exit(__doc__)
|
| 15 |
+
MIN_AUTHORS = 10
|
| 16 |
+
PURITY_FAILED = {"open-close": "failed the family purity reading twice (7/10 on the fresh sample)"}
|
| 17 |
+
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
|
| 18 |
+
import classify
|
| 19 |
+
|
| 20 |
+
def q(xs, p):
|
| 21 |
+
xs = sorted(xs)
|
| 22 |
+
if not xs: return None
|
| 23 |
+
k = (len(xs) - 1) * p; f = int(k); c = min(f + 1, len(xs) - 1)
|
| 24 |
+
return xs[f] + (xs[c] - xs[f]) * (k - f)
|
| 25 |
+
|
| 26 |
+
keep = {l.strip() for l in open(sys.argv[3]) if l.strip()} if len(sys.argv) > 3 else None
|
| 27 |
+
recs, n_all, n_err, seen = [], 0, 0, set()
|
| 28 |
+
for l in open(sys.argv[1]):
|
| 29 |
+
d = json.loads(l)
|
| 30 |
+
if (keep is not None and d["id"] not in keep) or d["id"] in seen: continue
|
| 31 |
+
seen.add(d["id"]); n_all += 1
|
| 32 |
+
if "err" in d: n_err += 1; continue
|
| 33 |
+
eps, fr, fps = d.get("eps") or 0, d.get("frames") or 0, d.get("fps") or 0
|
| 34 |
+
if eps < 5 or fr <= 0 or fps <= 0: continue
|
| 35 |
+
d["mean_s"] = fr / fps / eps
|
| 36 |
+
lens = [x for x in (d.get("lens") or []) if isinstance(x, (int, float)) and x > 0]
|
| 37 |
+
if len(lens) >= 5:
|
| 38 |
+
d["med_s"] = st.median(lens) / fps
|
| 39 |
+
d["fixed"] = (max(lens) - min(lens)) <= 2
|
| 40 |
+
d["family"] = classify.family(d); d["kind"] = "policy" if classify.is_policy(d) else "teleop"
|
| 41 |
+
d["author"] = d["id"].split("/")[0]
|
| 42 |
+
recs.append(d)
|
| 43 |
+
|
| 44 |
+
def summarise(rows, drop_fixed=False):
|
| 45 |
+
if drop_fixed: rows = [r for r in rows if not r.get("fixed")]
|
| 46 |
+
by = collections.defaultdict(list)
|
| 47 |
+
for r in rows: by[r["author"]].append(r["mean_s"])
|
| 48 |
+
a = [st.median(v) for v in by.values()]
|
| 49 |
+
return {"datasets": len(rows), "authors": len(by), "episodes": sum(r["eps"] for r in rows),
|
| 50 |
+
"hours": round(sum(r["frames"] / r["fps"] for r in rows) / 3600, 1),
|
| 51 |
+
"p10_s": q(a, .1), "p50_s": q(a, .5), "p90_s": q(a, .9)}
|
| 52 |
+
|
| 53 |
+
out = {"read": {"listed_so": n_all, "fetch_errors": n_err, "kept_eps_ge_5": len(recs)}, "families": {}}
|
| 54 |
+
fams = sorted({r["family"] for r in recs})
|
| 55 |
+
for kind in ("teleop", "policy"):
|
| 56 |
+
for f in fams:
|
| 57 |
+
rows = [r for r in recs if r["family"] == f and r["kind"] == kind]
|
| 58 |
+
if not rows: continue
|
| 59 |
+
s = summarise(rows)
|
| 60 |
+
v2 = [r for r in rows if "fixed" in r]
|
| 61 |
+
s["v2_with_lengths"] = len(v2); s["v2_fixed_length"] = sum(1 for r in v2 if r["fixed"])
|
| 62 |
+
s["p50_s_without_fixed"] = summarise(rows, True)["p50_s"]
|
| 63 |
+
mm = [(r["med_s"], r["mean_s"]) for r in v2]
|
| 64 |
+
s["v2_median_over_mean_p50"] = q([a / b for a, b in mm], .5) if mm else None
|
| 65 |
+
out["families"][f"{kind}:{f}"] = s
|
| 66 |
+
os.makedirs(sys.argv[2], exist_ok=True)
|
| 67 |
+
json.dump(out, open(f"{sys.argv[2]}/clock.json", "w"), indent=1)
|
| 68 |
+
with open(f"{sys.argv[2]}/datasets.tsv", "w") as f:
|
| 69 |
+
f.write("id\tauthor\tkind\tfamily\trobot\tversion\tepisodes\tframes\tfps\tmean_episode_s\tmedian_episode_s\tfixed_length\n")
|
| 70 |
+
for r in sorted(recs, key=lambda r: r["id"]):
|
| 71 |
+
f.write("\t".join(str(x) for x in [r["id"], r["author"], r["kind"], r["family"], r.get("robot"), r.get("v"), r["eps"], r["frames"], r["fps"],
|
| 72 |
+
round(r["mean_s"], 2), round(r["med_s"], 2) if "med_s" in r else "NA", {True: "yes", False: "no"}.get(r.get("fixed"), "NA")]) + "\n")
|
| 73 |
+
def fmt(x):
|
| 74 |
+
return "NA" if x is None else f"{x:.1f}"
|
| 75 |
+
cols = ["family", "authors", "datasets", "episodes", "recorded_hours", "p10_s", "p50_s", "p90_s",
|
| 76 |
+
"p50_s_without_fixed_length_datasets", "illustrative_episodes_per_hour_at_p50", "rollout_proxy_authors",
|
| 77 |
+
"rollout_proxy_p50_s", "note"]
|
| 78 |
+
pub, unpub, other = [], [], []
|
| 79 |
+
for f in fams:
|
| 80 |
+
s = out["families"].get(f"teleop:{f}")
|
| 81 |
+
if s is None: continue
|
| 82 |
+
p = out["families"].get(f"policy:{f}")
|
| 83 |
+
if f == "other":
|
| 84 |
+
note = "unmatched by every family rule"
|
| 85 |
+
elif f in PURITY_FAILED:
|
| 86 |
+
note = "not published: " + PURITY_FAILED[f]
|
| 87 |
+
elif s["authors"] < MIN_AUTHORS:
|
| 88 |
+
note = f"not published: {s['authors']} authors (rule needs {MIN_AUTHORS})"
|
| 89 |
+
else:
|
| 90 |
+
note = "published"
|
| 91 |
+
show = note == "published"
|
| 92 |
+
row = [f, s["authors"], s["datasets"], s["episodes"], s["hours"],
|
| 93 |
+
fmt(s["p10_s"] if show else None), fmt(s["p50_s"] if show else None), fmt(s["p90_s"] if show else None),
|
| 94 |
+
fmt(s["p50_s_without_fixed"] if show else None), round(3600 / s["p50_s"]) if show else "NA",
|
| 95 |
+
p["authors"] if (show and p) else ("0" if show else "NA"),
|
| 96 |
+
fmt(p["p50_s"]) if (show and p and p["authors"] >= MIN_AUTHORS) else "NA", note]
|
| 97 |
+
(pub if show else other if f == "other" else unpub).append(row)
|
| 98 |
+
pub.sort(key=lambda r: -r[1]); unpub.sort(key=lambda r: -r[1])
|
| 99 |
+
with open(f"{sys.argv[2]}/clock.tsv", "w") as fh:
|
| 100 |
+
fh.write("\t".join(cols) + "\n")
|
| 101 |
+
for row in pub + unpub + other:
|
| 102 |
+
fh.write("\t".join(str(x) for x in row) + "\n")
|
| 103 |
+
print(json.dumps(out["read"]))
|
| 104 |
+
for k, s in sorted(out["families"].items(), key=lambda kv: -kv[1]["authors"]):
|
| 105 |
+
print(f"{k:22s} ds={s['datasets']:5d} au={s['authors']:4d} eps={s['episodes']:7d} h={s['hours']:7.1f} p10={s['p10_s']:.1f} p50={s['p50_s']:.1f} p90={s['p90_s']:.1f} fixed={s['v2_fixed_length']}/{s['v2_with_lengths']} p50nofix={s['p50_s_without_fixed']}")
|
scripts/classify.py
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Task family of a LeRobot dataset from its name and task strings. Rules fixed 2026-11-18 before any count was read;
|
| 2 |
+
revision 2 (same day, before the full read finished): wipe no longer matches eraser/cleanup/brush/sponge, draw is tested first.
|
| 3 |
+
revision 3 (after the family purity check failed fold 4/10, open-close 3/10, insert 7/10, draw 6/10): those four rules
|
| 4 |
+
require the action itself (fold verb; open/close + an openable thing; into a hole/socket/slot; draw + a shape, write, paint + a surface).
|
| 5 |
+
First matching family wins (order matters: a fold task often also says 'pick up the towel')."""
|
| 6 |
+
import re
|
| 7 |
+
|
| 8 |
+
FAMILIES = [
|
| 9 |
+
("fold", r"fold(s|ing)?\b|laundry"),
|
| 10 |
+
("pour", r"pour|scoop|powder"),
|
| 11 |
+
("stack", r"stack|tower|\bpile|jenga"),
|
| 12 |
+
("sort", r"\bsort|organi[sz]|by colou?r"),
|
| 13 |
+
("open-close", r"drawer|\bdoor\b|\blid\b|cabinet|\bzip|\b(open|close|shut)(s|ing)? (the |a |an )?(\w+ )?(drawer|door|lid|box|bag|cabinet|jar|bottle|laptop|microwave|fridge|oven|cap|book|container|case)\b"),
|
| 14 |
+
("press", r"\bpress|button|switch|keyboard|\btyp(e|ing)\b"),
|
| 15 |
+
("insert", r"insert|\bplug(s|ged|ging)?\b|peg ?hole|\bin(to)? (the |a |an )?(empty )?(\w+ )?(hole|socket|slot|port|groove)\b|keyhole|charger"),
|
| 16 |
+
("draw", r"\bdraw(s|ing)? (a |an |the )?(\w+ )?(line|square|triangle|circle|star|smiley|face|picture|shape|letter|word|number|heart)|\bwrit(e|es|ing)\b|\bpaint(s|ing)? (the |a )?(\w+ )?(wall|paper|canvas|picture)"),
|
| 17 |
+
("wipe", r"\bwip(e|ing)|sweep|scrub|\bmop\b|clean(ing)? (the |a )?(table|surface|board|whiteboard|window|spill|desk)|erase (the )?(white)?board"),
|
| 18 |
+
("push", r"push|slide|hockey"),
|
| 19 |
+
("handover", r"hand ?over|pass (it|the)|other hand|right hand|left hand"),
|
| 20 |
+
("pick-place", r"pick|place|\bput|grab|grasp|\bmove|\bbin\b|\bbox|cube|block|bowl|\bcup|basket|tray|container|\blift|\btake|transfer|drop|chess|lego|ball|bottle|toy|object"),
|
| 21 |
+
]
|
| 22 |
+
POLICY = re.compile(r"(^|[^a-z])(eval|rollout|inference|infer)", re.I)
|
| 23 |
+
|
| 24 |
+
def text(rec):
|
| 25 |
+
name = rec["id"].split("/", 1)[1]
|
| 26 |
+
t = " ".join([re.sub(r"[_\-]+", " ", name)] + (rec.get("tasks") or []))
|
| 27 |
+
return t.lower()
|
| 28 |
+
|
| 29 |
+
def family(rec):
|
| 30 |
+
t = text(rec)
|
| 31 |
+
for f, p in FAMILIES:
|
| 32 |
+
if re.search(p, t):
|
| 33 |
+
return f
|
| 34 |
+
return "other"
|
| 35 |
+
|
| 36 |
+
def is_policy(rec):
|
| 37 |
+
return bool(POLICY.search(rec["id"].split("/", 1)[1]))
|
scripts/fetch.py
ADDED
|
@@ -0,0 +1,105 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Per dataset id: meta/info.json, task strings, v2.x per-episode lengths. Metadata only. Resumable.
|
| 2 |
+
|
| 3 |
+
usage: fetch.py OUT_DIR/sample_ids.txt OUT_DIR/meta.jsonl
|
| 4 |
+
Appends one JSON line per id to the output file (created if missing); ids already in it with a result are skipped on a
|
| 5 |
+
rerun. Ids that are not plain public repository ids (namespace/name) are recorded as errors without a request.
|
| 6 |
+
Requests go only to huggingface.co and Hugging Face file storage (see hub.py); size limits per file are in LIMIT.
|
| 7 |
+
Pace: one request every GAP seconds across all P threads (defaults 0.15 s, 8 threads); a 429 reply backs off.
|
| 8 |
+
|
| 9 |
+
Episode lengths (v2): the "length" of the first 5,000 lines of meta/episodes.jsonl, so a dataset with more episodes,
|
| 10 |
+
or with lines missing, has fewer lengths than its total_episodes.
|
| 11 |
+
|
| 12 |
+
v3 task strings: no parquet library is used. The printable runs of 4 or more characters in meta/tasks.parquet are
|
| 13 |
+
taken, schema and pandas words and base64 blobs are dropped, and fragments contained in a longer one are merged. The
|
| 14 |
+
8 longest fragments that remain are kept.
|
| 15 |
+
This is a heuristic: a compressed file can split or drop a task string."""
|
| 16 |
+
import json, os, re, sys, time, urllib.error
|
| 17 |
+
from concurrent.futures import ThreadPoolExecutor
|
| 18 |
+
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
|
| 19 |
+
import hub
|
| 20 |
+
|
| 21 |
+
LIMIT = {"info.json": 1 << 20, "tasks.jsonl": 4 << 20, "episodes.jsonl": 32 << 20, "tasks.parquet": 4 << 20}
|
| 22 |
+
SKIP = re.compile(r'^(schema|task_index|task|pandas|ARROW:schema|parquet-cpp.*|__index_level_0__)$')
|
| 23 |
+
|
| 24 |
+
import threading
|
| 25 |
+
_lock = threading.Lock(); _last = [0.0]; N429 = [0]
|
| 26 |
+
GAP = float(os.environ.get("GAP", "0.15")) # seconds between requests, all threads (about 6-7 a second)
|
| 27 |
+
|
| 28 |
+
def get(url, limit, tries=6):
|
| 29 |
+
for a in range(tries):
|
| 30 |
+
with _lock:
|
| 31 |
+
w = _last[0] + GAP - time.time()
|
| 32 |
+
if w > 0: time.sleep(w)
|
| 33 |
+
_last[0] = time.time()
|
| 34 |
+
try:
|
| 35 |
+
return hub.get(url, limit)[0]
|
| 36 |
+
except (hub.OffOrigin, hub.TooLarge, hub.TooManyRedirects):
|
| 37 |
+
raise
|
| 38 |
+
except urllib.error.HTTPError as e:
|
| 39 |
+
if e.code in (401, 403, 404): return None # missing, private or gated: not public
|
| 40 |
+
if e.code == 429:
|
| 41 |
+
N429[0] += 1; time.sleep(20 * (a + 1)); continue
|
| 42 |
+
time.sleep(3 * (a + 1))
|
| 43 |
+
except Exception:
|
| 44 |
+
time.sleep(3 * (a + 1))
|
| 45 |
+
raise RuntimeError("failed " + url)
|
| 46 |
+
|
| 47 |
+
def parquet_tasks(b):
|
| 48 |
+
"""Task strings from a small tasks.parquet: printable runs, minus schema words, JSON and base64 blobs."""
|
| 49 |
+
out = []
|
| 50 |
+
for s in re.findall(rb'[\x20-\x7e]{4,}', b):
|
| 51 |
+
s = s.decode()
|
| 52 |
+
s = re.sub(r'^[^A-Za-z0-9]{1,3}', '', s).strip()
|
| 53 |
+
if len(s) < 4 or SKIP.match(s) or 'parquet-cpp' in s or 'pandas_type' in s or 'index_columns' in s or '"name"' in s: continue
|
| 54 |
+
if re.fullmatch(r'[A-Za-z0-9+/=]{24,}', s) or s == 'PAR1' or s.endswith('%'): continue # base64 ARROW:schema blob
|
| 55 |
+
out.append(s)
|
| 56 |
+
# keep strings not contained in a longer kept one (snappy fragments)
|
| 57 |
+
out = sorted(set(out), key=len, reverse=True)
|
| 58 |
+
keep = []
|
| 59 |
+
for s in out:
|
| 60 |
+
if not any(s in k for k in keep):
|
| 61 |
+
keep.append(s)
|
| 62 |
+
if len(keep) == 8: break
|
| 63 |
+
return keep
|
| 64 |
+
|
| 65 |
+
def one(i):
|
| 66 |
+
base = f"https://huggingface.co/datasets/{i}/resolve/main/meta/"
|
| 67 |
+
r = {"id": i}
|
| 68 |
+
if not hub.valid_repo_id(i):
|
| 69 |
+
r["err"] = "invalid id"; return r
|
| 70 |
+
try:
|
| 71 |
+
b = get(base + "info.json", LIMIT["info.json"])
|
| 72 |
+
if b is None: r["err"] = "no info.json"; return r
|
| 73 |
+
d = json.loads(b)
|
| 74 |
+
r.update(robot=d.get("robot_type"), eps=d.get("total_episodes"), frames=d.get("total_frames"), fps=d.get("fps"), v=d.get("codebase_version"))
|
| 75 |
+
if str(r["v"]).startswith("v2"):
|
| 76 |
+
t = get(base + "tasks.jsonl", LIMIT["tasks.jsonl"])
|
| 77 |
+
r["tasks"] = [json.loads(l).get("task", "")[:200] for l in (t or b"").decode(errors="replace").splitlines() if l.strip()][:8]
|
| 78 |
+
e = get(base + "episodes.jsonl", LIMIT["episodes.jsonl"])
|
| 79 |
+
if e is not None:
|
| 80 |
+
r["lens"] = [json.loads(l).get("length") for l in e.decode(errors="replace").splitlines() if l.strip()][:5000]
|
| 81 |
+
else:
|
| 82 |
+
t = get(base + "tasks.parquet", LIMIT["tasks.parquet"])
|
| 83 |
+
r["tasks"] = [s[:200] for s in parquet_tasks(t)] if t else []
|
| 84 |
+
except Exception as ex:
|
| 85 |
+
r["err"] = repr(ex)[:120]
|
| 86 |
+
return r
|
| 87 |
+
|
| 88 |
+
if len(sys.argv) < 3:
|
| 89 |
+
sys.exit(__doc__)
|
| 90 |
+
ids = [l.strip() for l in open(sys.argv[1]) if l.strip()]
|
| 91 |
+
done = set()
|
| 92 |
+
if os.path.exists(sys.argv[2]):
|
| 93 |
+
for l in open(sys.argv[2]):
|
| 94 |
+
try:
|
| 95 |
+
x = json.loads(l)
|
| 96 |
+
if "err" not in x or x["err"] == "no info.json": done.add(x["id"])
|
| 97 |
+
except Exception: pass
|
| 98 |
+
todo = [i for i in ids if i not in done]
|
| 99 |
+
print("todo", len(todo), "done", len(done), flush=True)
|
| 100 |
+
t0 = time.time(); n = 0
|
| 101 |
+
with ThreadPoolExecutor(int(os.environ.get("P", "8"))) as ex, open(sys.argv[2], "a") as f:
|
| 102 |
+
for r in ex.map(one, todo):
|
| 103 |
+
f.write(json.dumps(r) + "\n"); f.flush(); n += 1
|
| 104 |
+
if n % 250 == 0: print(n, round(time.time() - t0), "429s", N429[0], flush=True)
|
| 105 |
+
print("DONE", n, round(time.time() - t0), "429s", N429[0])
|
scripts/hub.py
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Bounded HTTPS GET for public Hugging Face metadata. Python standard library only.
|
| 2 |
+
|
| 3 |
+
Every request and every redirect must go to https on huggingface.co or a subdomain of huggingface.co or hf.co
|
| 4 |
+
(Hugging Face's file storage). Anything else raises OffOrigin before a connection is made to it. Redirects are
|
| 5 |
+
followed here, not by urllib: at most MAX_HOPS, and each redirect response is closed without reading its body. A final
|
| 6 |
+
body larger than the caller's limit raises TooLarge; at most limit + 1 bytes are read, before any parsing."""
|
| 7 |
+
import re, urllib.error, urllib.parse, urllib.request
|
| 8 |
+
|
| 9 |
+
UA = {"User-Agent": "so-arm-task-clock/0.2"}
|
| 10 |
+
REPO_ID = re.compile(r"[A-Za-z0-9][A-Za-z0-9_.-]{0,95}/[A-Za-z0-9][A-Za-z0-9_.-]{0,95}")
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
class OffOrigin(Exception):
|
| 14 |
+
pass
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
class TooLarge(Exception):
|
| 18 |
+
pass
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
def allowed(url):
|
| 22 |
+
u = urllib.parse.urlsplit(url)
|
| 23 |
+
h = (u.hostname or "").lower()
|
| 24 |
+
return (u.scheme == "https" and u.port in (None, 443) and u.username is None and u.password is None
|
| 25 |
+
and (h == "huggingface.co" or h.endswith(".huggingface.co") or h.endswith(".hf.co")))
|
| 26 |
+
|
| 27 |
+
|
| 28 |
+
def valid_repo_id(i):
|
| 29 |
+
return bool(REPO_ID.fullmatch(i)) and ".." not in i
|
| 30 |
+
|
| 31 |
+
|
| 32 |
+
MAX_HOPS = 5
|
| 33 |
+
REDIRECT = (301, 302, 303, 307, 308)
|
| 34 |
+
|
| 35 |
+
|
| 36 |
+
class TooManyRedirects(Exception):
|
| 37 |
+
pass
|
| 38 |
+
|
| 39 |
+
|
| 40 |
+
class _NoFollow(urllib.request.HTTPRedirectHandler):
|
| 41 |
+
"""Hand every 30x back to get() as an HTTPError, before urllib reads the redirect body."""
|
| 42 |
+
|
| 43 |
+
def redirect_request(self, req, fp, code, msg, headers, newurl):
|
| 44 |
+
return None
|
| 45 |
+
|
| 46 |
+
|
| 47 |
+
_opener = urllib.request.build_opener(_NoFollow)
|
| 48 |
+
|
| 49 |
+
|
| 50 |
+
def get(url, limit, timeout=40):
|
| 51 |
+
"""Return (body bytes, response headers). Raises OffOrigin, TooLarge, TooManyRedirects or urllib.error.HTTPError."""
|
| 52 |
+
for _ in range(MAX_HOPS + 1):
|
| 53 |
+
if not allowed(url):
|
| 54 |
+
raise OffOrigin(url)
|
| 55 |
+
try:
|
| 56 |
+
r = _opener.open(urllib.request.Request(url, headers=UA), timeout=timeout)
|
| 57 |
+
except urllib.error.HTTPError as e:
|
| 58 |
+
if e.code not in REDIRECT:
|
| 59 |
+
raise
|
| 60 |
+
loc = e.headers.get("Location")
|
| 61 |
+
e.close() # the redirect body is never read
|
| 62 |
+
if not loc:
|
| 63 |
+
raise
|
| 64 |
+
url = urllib.parse.urljoin(url, loc)
|
| 65 |
+
continue
|
| 66 |
+
with r:
|
| 67 |
+
n = r.headers.get("Content-Length")
|
| 68 |
+
if n is not None and n.strip().isdigit() and int(n) > limit:
|
| 69 |
+
raise TooLarge(f"{url}: Content-Length {n} > {limit}")
|
| 70 |
+
b = r.read(limit + 1)
|
| 71 |
+
if len(b) > limit:
|
| 72 |
+
raise TooLarge(f"{url}: body > {limit} bytes")
|
| 73 |
+
return b, r.headers
|
| 74 |
+
raise TooManyRedirects(url)
|
scripts/labelcheck.py
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Instrument check: family rules against hand labels.
|
| 2 |
+
|
| 3 |
+
usage: labelcheck.py LABEL_META.jsonl labels.tsv
|
| 4 |
+
LABEL_META.jsonl is fetch.py output for the ids in labels.tsv (columns n, id, hand_label, rule_family). Reads only;
|
| 5 |
+
writes nothing. Reports rule-vs-hand agreement and any row whose stored rule_family differs from the current rules."""
|
| 6 |
+
import sys, os, json
|
| 7 |
+
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
|
| 8 |
+
import classify
|
| 9 |
+
|
| 10 |
+
if len(sys.argv) < 3:
|
| 11 |
+
sys.exit(__doc__)
|
| 12 |
+
meta = {}
|
| 13 |
+
for l in open(sys.argv[1]):
|
| 14 |
+
if l.strip():
|
| 15 |
+
d = json.loads(l); meta[d["id"]] = d
|
| 16 |
+
rows = [l.rstrip("\n").split("\t") for l in open(sys.argv[2])][1:]
|
| 17 |
+
ok = stale = 0
|
| 18 |
+
for n, i, hand, stored, *_ in rows:
|
| 19 |
+
f = classify.family(meta[i]); ok += f == hand
|
| 20 |
+
if f != hand: print("miss", n, i, "hand", hand, "rule", f)
|
| 21 |
+
if f != stored: stale += 1; print("stale rule_family", n, i, "stored", stored, "now", f)
|
| 22 |
+
print(f"agree {ok}/{len(rows)} = {ok/len(rows):.1%} (rule needed 85%); stale stored rule_family rows: {stale}")
|
scripts/list.py
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Page the public Hugging Face listing of datasets tagged LeRobot. Resumable.
|
| 2 |
+
|
| 3 |
+
usage: list.py OUT_DIR [MAX_PAGES]
|
| 4 |
+
Creates OUT_DIR if missing. Appends one JSON line per dataset (id, author, created, tags) to OUT_DIR/datasets.jsonl and
|
| 5 |
+
replaces OUT_DIR/cursor.txt with the next page URL after each page ("END" when done). A rerun with the same OUT_DIR
|
| 6 |
+
resumes from cursor.txt; use a new OUT_DIR for a fresh listing. Each page is at most 64 MiB; the next-page link must
|
| 7 |
+
stay on https://huggingface.co/api/datasets."""
|
| 8 |
+
import json, os, re, sys, time, urllib.parse
|
| 9 |
+
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
|
| 10 |
+
import hub
|
| 11 |
+
|
| 12 |
+
START = "https://huggingface.co/api/datasets?filter=LeRobot&limit=1000&full=false"
|
| 13 |
+
PAGE_LIMIT = 64 << 20
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
def listing_url(url):
|
| 17 |
+
u = urllib.parse.urlsplit(url)
|
| 18 |
+
return hub.allowed(url) and u.hostname == "huggingface.co" and u.path == "/api/datasets"
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
def main():
|
| 22 |
+
if len(sys.argv) < 2:
|
| 23 |
+
sys.exit(__doc__)
|
| 24 |
+
d = sys.argv[1]
|
| 25 |
+
max_pages = int(sys.argv[2]) if len(sys.argv) > 2 else None
|
| 26 |
+
os.makedirs(d, exist_ok=True)
|
| 27 |
+
out, cur = os.path.join(d, "datasets.jsonl"), os.path.join(d, "cursor.txt")
|
| 28 |
+
url = open(cur).read().strip() if os.path.exists(cur) else START
|
| 29 |
+
n = pages = 0
|
| 30 |
+
while url != "END" and (max_pages is None or pages < max_pages):
|
| 31 |
+
if not listing_url(url):
|
| 32 |
+
sys.exit("refused listing URL " + url)
|
| 33 |
+
for attempt in range(5):
|
| 34 |
+
try:
|
| 35 |
+
body, headers = hub.get(url, PAGE_LIMIT, timeout=60)
|
| 36 |
+
break
|
| 37 |
+
except (hub.OffOrigin, hub.TooLarge) as e:
|
| 38 |
+
sys.exit("refused: " + repr(e)[:200])
|
| 39 |
+
except Exception as e:
|
| 40 |
+
print("retry", attempt, repr(e)[:120], flush=True)
|
| 41 |
+
time.sleep(10 * (attempt + 1))
|
| 42 |
+
else:
|
| 43 |
+
sys.exit("GIVEUP " + url)
|
| 44 |
+
rows = json.loads(body)
|
| 45 |
+
with open(out, "a") as f:
|
| 46 |
+
for r in rows:
|
| 47 |
+
f.write(json.dumps({"id": r.get("id"), "author": r.get("author"), "created": r.get("createdAt"), "tags": r.get("tags")}) + "\n")
|
| 48 |
+
n += len(rows); pages += 1
|
| 49 |
+
m = re.search(r'<([^>]+)>;\s*rel="next"', headers.get("Link") or "")
|
| 50 |
+
url = m.group(1) if m else "END"
|
| 51 |
+
if url != "END" and not listing_url(url):
|
| 52 |
+
sys.exit("refused next-page link " + url)
|
| 53 |
+
with open(cur, "w") as f:
|
| 54 |
+
f.write(url)
|
| 55 |
+
print("DONE" if url == "END" else "PAUSED", n, "rows", pages, "pages")
|
| 56 |
+
|
| 57 |
+
|
| 58 |
+
if __name__ == "__main__":
|
| 59 |
+
main()
|
scripts/sample.py
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""SO-arm datasets in the listing, and the per-author sample that was read.
|
| 2 |
+
|
| 3 |
+
usage: sample.py OUT_DIR/datasets.jsonl OUT_DIR
|
| 4 |
+
Replaces OUT_DIR/so_ids.txt (every SO-arm id, sorted) and OUT_DIR/sample_ids.txt (up to 3 per author, sorted).
|
| 5 |
+
|
| 6 |
+
SO-arm rule: the case-insensitive pattern below matches anywhere in the full repository id (author namespace included)
|
| 7 |
+
or in any tag. Sample: for each author in sorted order, that author's sorted ids are shuffled with one random.Random(SEED)
|
| 8 |
+
and the first 3 kept."""
|
| 9 |
+
import collections, json, os, random, re, sys
|
| 10 |
+
|
| 11 |
+
SO = re.compile(r"so[\W_]?10[01]|so[\W_]?arm|so[\W_]?follower", re.I)
|
| 12 |
+
SEED = 20261118
|
| 13 |
+
|
| 14 |
+
rows = [json.loads(l) for l in open(sys.argv[1]) if l.strip()]
|
| 15 |
+
ids = sorted({r["id"] for r in rows if r.get("id") and SO.search(" ".join([r["id"]] + (r.get("tags") or [])))})
|
| 16 |
+
by = collections.defaultdict(list)
|
| 17 |
+
for i in ids:
|
| 18 |
+
by[i.split("/")[0]].append(i)
|
| 19 |
+
rng, sample = random.Random(SEED), []
|
| 20 |
+
for a in sorted(by):
|
| 21 |
+
xs = sorted(by[a]); rng.shuffle(xs); sample += xs[:3]
|
| 22 |
+
os.makedirs(sys.argv[2], exist_ok=True)
|
| 23 |
+
for name, xs in (("so_ids.txt", ids), ("sample_ids.txt", sorted(sample))):
|
| 24 |
+
with open(os.path.join(sys.argv[2], name), "w") as f:
|
| 25 |
+
f.write("".join(x + "\n" for x in xs))
|
| 26 |
+
print(len(rows), "listed;", len(ids), "SO-arm from", len(by), "authors;", len(sample), "sampled")
|