| from datasets import load_dataset, Features, Value, Sequence, Image | |
| # **只** 指定 train split | |
| data_files = { "train": "train/train.jsonl" } | |
| features = Features({ | |
| "instruction": Value("string"), | |
| "rgb_wrist": Image(), | |
| "rgb_gopro": Image(), | |
| "tcp_pose": Sequence(Value("float32"), length=6), | |
| "joint_states": Sequence(Value("float32"), length=6), | |
| }) | |
| ds = load_dataset("json", data_files=data_files, features=features) | |
| ds.push_to_hub("ed1son/ScanBot") | |