Add files using upload-large-folder tool
Browse files12345678910111213141516172 unmodified lines2021222324252627282930313233343536373839# chess-sim: SO-101 chess pick-and-place in simulationScripted-expert demonstrations of an SO-101 arm moving one chess piece from a square to another square or into a capture tray, recorded in MuJoCo with domain randomisation. Made for fine-tuning SmolVLA (phase 2 of the play-machanize project).## Contents- `datasets/varied_2000/`: LeRobot v3.0 dataset, 2000 episodes, 594702 frames at 30 fps. Cameras: overhead, rover, wrist (640x480), with the source square highlighted translucent red and the destination (square or tray) translucent blue. `observation.state` and `action`: 5 arm joints in degrees and the gripper 0-100 (LeRobot's SO-101 follower with `use_degrees=True`). One instruction for every frame: "move the piece on the red square to the blue square". `phase2_episodes.jsonl` has per-episode notes (piece, squares, board position, piece set).- `review/varied_2000.mp4`: ten random episodes, the three cameras side by side, read back through LeRobot.- `reports/`: grasp validation of the expert (every piece type on every square).- `code/`: the simulation, expert and export code and assets that produced the data.`datasets/pilot_60/` is the earlier 60-episode pilot (nominal board and tray, narrower lighting and camera variety), kept for reference.## What varies- **Board and tray:** 22-25 mm squares, 6-22 mm border, 3-20 mm thick, pieces scaled to the squares. The robot plays white or black. The board's angle and position vary within reach; the tray varies in side, angle, size and colour.- **Table:** slides so its edges and corners, with the floor, come into view. Matte to glossy tables, with varied floors and walls.2 unmodified lines- **Clutter:** a laptop, phone, mug, notebook, pen and cables around the board.- **Overhead camera:** anywhere a person would mount it (35-80 cm up, up to 45 degrees from vertical, any side but behind the robot, 38-62 degree lenses). The wrist and rover cameras vary only by small mounting errors.- **Webcam look:** auto-exposure, white balance, blur, noise, JPEG and vignetting.Expert validation: 99.02% of 1536 trials (target above 99.0%).Generation: 2000 successful episodes kept of 2027 attempts; failed episodes are discarded.## LoadLeRobot expects a dataset at the top of a folder, so download it first:```bashhf download Machanize/playful --repo-type dataset --include "chess-sim/datasets/varied_2000/*" --local-dir playful``````pythonfrom lerobot.datasets.lerobot_dataset import LeRobotDatasetds = LeRobotDataset("local/so101_chess_sim", root="playful/chess-sim/datasets/varied_2000")```12345678910111213141516171819202 unmodified lines232425262728293031323334353637383940414243444546474849505152# chess-sim: SO-101 chess pick-and-place in simulationScripted-expert demonstrations of an SO-101 arm moving one chess piece from a square to another square or into a capture tray, recorded in MuJoCo. Made for training SmolVLA (phase 2 of the play-machanize project).Every dataset is LeRobot v3.0 at 30 fps, 640x480 images, with the source square highlighted red and the destination (square or tray) blue. `observation.state` and `action`: 5 arm joints in degrees and the gripper 0-100 (LeRobot's SO-101 follower with `use_degrees=True`). One instruction for every frame: "move the piece on the red square to the blue square". `phase2_episodes.jsonl` has per-episode notes (seed, piece, squares, board, piece set, lighting, cameras).## Datasets| folder | episodes | frames | cameras | video | notes ||---|---|---|---|---|---|| `datasets/baseline_v1/` | 300 | 89008 | overhead, wrist | h264 yuv444p | The simple baseline (see *Baseline scene*): one fixed scene and ten fixed opening moves. Trains `Machanize/chess_phase_smolvla_baseline`. || `datasets/pilot_60/` | 60 | 17829 | overhead, rover, wrist | h264 yuv420p | The first pilot: nominal board and tray, narrower lighting and camera variety. Kept for reference. || `datasets/varied_2000/` | 2000 | 594702 | overhead, rover, wrist | h264 yuv420p | Heavy randomisation (see *What varies*). Trained `Machanize/chess_phase_smolvla`. |`review/<name>.mp4`: random episodes of a dataset, read back through LeRobot. `reports/`: expert validation, policy tests and diagnostics. `code/`: the simulation, expert and export code that produced the data.## What varies (varied_2000)- **Board and tray:** 22-25 mm squares, 6-22 mm border, 3-20 mm thick, pieces scaled to the squares. The robot plays white or black. The board's angle and position vary within reach; the tray varies in side, angle, size and colour.- **Table:** slides so its edges and corners, with the floor, come into view. Matte to glossy tables, with varied floors and walls.2 unmodified lines- **Clutter:** a laptop, phone, mug, notebook, pen and cables around the board.- **Overhead camera:** anywhere a person would mount it (35-80 cm up, up to 45 degrees from vertical, any side but behind the robot, 38-62 degree lenses). The wrist and rover cameras vary only by small mounting errors.- **Webcam look:** auto-exposure, white balance, blur, noise, JPEG and vignetting.- **Video:** LeRobot's default encoding (H.264, CRF 30, 4:2:0 chroma), which washes out the small red and blue squares.## Baseline scene (baseline_v1)Everything fixed, to get reliable closed-loop success before adding variety back one change at a time (settings: `code/sim/phase2_baseline.toml`).- The nominal board (25 mm squares) square to the robot and flush against its deck; the robot plays black. Reference piece set, black and white pieces, white arm.- Tray on the right, fixed table, the scene's window and ceiling lamps, no clutter.- An overhead camera like the owner's (65 cm up, straight down, 44 degree lens, the arm at the top edge) and the wrist camera, no mounting error, a clean webcam (no noise, blur or colour effects, light JPEG).- Ten opening moves from the start position: e7e5, d7d5, g8f6, b8c6, c7c5 (the robot's side) and e2e4, d2d4, g1f3, b1c3, c2c4 (the far side).- Markers with an opaque 2 px outline; pieces centred in their squares.- Sharper video: H.264 at CRF 18 with full 4:4:4 chroma.Expert validation (random layouts): 99.02% of 1536 trials (target above 99.0%).## LoadLeRobot expects a dataset at the top of a folder, so download it first (replace `<name>`):```bashhf download Machanize/playful --repo-type dataset --include "chess-sim/datasets/<name>/*" --local-dir playful``````pythonfrom lerobot.datasets.lerobot_dataset import LeRobotDatasetds = LeRobotDataset("local/so101_chess_sim", root="playful/chess-sim/datasets/<name>")```
chess-sim/README.md+26-13