Datasets:
update
Browse files- README.md +2 -2
- push_dataset.py +15 -0
README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
---
|
2 |
pretty_name: ScanBot
|
3 |
license: cc-by-4.0
|
4 |
language:
|
@@ -25,7 +25,7 @@ task_categories:
|
|
25 |
# dtype: string
|
26 |
data_files:
|
27 |
- path: train/train.jsonl
|
28 |
-
---
|
29 |
|
30 |
|
31 |
|
|
|
1 |
+
<!-- ---
|
2 |
pretty_name: ScanBot
|
3 |
license: cc-by-4.0
|
4 |
language:
|
|
|
25 |
# dtype: string
|
26 |
data_files:
|
27 |
- path: train/train.jsonl
|
28 |
+
--- -->
|
29 |
|
30 |
|
31 |
|
push_dataset.py
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from datasets import load_dataset, Features, Value, Sequence, Image
|
2 |
+
|
3 |
+
# **只** 指定 train split
|
4 |
+
data_files = { "train": "train/train.jsonl" }
|
5 |
+
|
6 |
+
features = Features({
|
7 |
+
"instruction": Value("string"),
|
8 |
+
"rgb_wrist": Image(),
|
9 |
+
"rgb_gopro": Image(),
|
10 |
+
"tcp_pose": Sequence(Value("float32"), length=6),
|
11 |
+
"joint_states": Sequence(Value("float32"), length=6),
|
12 |
+
})
|
13 |
+
|
14 |
+
ds = load_dataset("json", data_files=data_files, features=features)
|
15 |
+
ds.push_to_hub("ed1son/ScanBot")
|