jleibs commited on
Commit
1d4c8f5
·
1 Parent(s): 3f4e81a

Also filter episode_id correctly in main

Browse files
Files changed (1) hide show
  1. main.py +1 -1
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: "episode_id" not in frame or frame["episode_id"] == args.episode_id)
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)