Spaces:
Sleeping
Sleeping
Also filter episode_id correctly in main
Browse files
main.py
CHANGED
@@ -27,7 +27,7 @@ def main() -> None:
|
|
27 |
dataset = load_dataset(args.dataset, split="train", streaming=True)
|
28 |
|
29 |
# This is for LeRobot datasets (https://huggingface.co/lerobot):
|
30 |
-
ds_subset = dataset.filter(lambda frame: "
|
31 |
|
32 |
print("Starting Rerun…")
|
33 |
rr.init(f"rerun_example_huggingface {args.dataset}", spawn=True)
|
|
|
27 |
dataset = load_dataset(args.dataset, split="train", streaming=True)
|
28 |
|
29 |
# This is for LeRobot datasets (https://huggingface.co/lerobot):
|
30 |
+
ds_subset = dataset.filter(lambda frame: "episode_index" not in frame or frame["episode_index"] == args.episode_id)
|
31 |
|
32 |
print("Starting Rerun…")
|
33 |
rr.init(f"rerun_example_huggingface {args.dataset}", spawn=True)
|