Skip to content

Commit

Permalink
Update conversion script to shuffle deterministically
Browse files Browse the repository at this point in the history
  • Loading branch information
apockill committed Jan 7, 2025
1 parent cb25789 commit c810242
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/myarm_ai/myarm_ai/scripts/convert_isaac_to_lerobot.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def convert(input_dataset: Path, repo_id: str, fps: int, task: str) -> LeRobotDa
shuffled_renders = list(traj_dataset.renders)

# Deterministic shuffle
shuffled_renders.sort()
shuffled_renders.sort(key=lambda x: x.episode_json_path)
random.seed(1337)
random.shuffle(shuffled_renders)

Expand Down

0 comments on commit c810242

Please sign in to comment.