MINT-SJTU/Evo-RL
We release Evo-RL, the opensource real-world offline RL on So-101 and AgileX PiPER for easier reproduction.
Evo-RL: Real-World Reinforcement Learning Made Open
Evo-RL is an open-source project from MINT@SJTU that brings reinforcement learning (RL) out of the lab and onto real robots. It provides complete, ready-to-run pipelines for training robots to perform tasks through trial and error, with a focus on reproducibility and community collaboration.
What Does It Do?
Evo-RL lets you:
- Collect data from real robots (SO101 and AgileX PiPER/PiPER-X) by teleoperating them.
- Train a “value function” that estimates how good a robot’s current state is (how much future reward it can expect).
- Use that value signal to label your data with “advantage” scores (how much better or worse a trajectory is than average) and binary “indicators” (good/bad).
- Train a policy (the robot’s decision-making brain) using these advantage-conditioned labels.
- Deploy the policy back on the robot in a human-in-the-loop mode, collect more data, and repeat the cycle to improve.
Key Features
- Two robot platforms: SO101 (a low-cost arm) and AgileX PiPER/PiPER-X (industrial-grade arms).
- Full pipeline: from hardware setup to data collection, training, inference, and closed-loop rollout.
- Open everything: code, models, and datasets are released so others can reproduce results and build on them.
- Built on LeRobot: uses the popular LeRobot framework as its foundation, making it easy to integrate with existing tools.
- Human-in-the-loop: you can intervene during data collection or policy deployment, marking episodes as success/failure or taking over control.
How It Works (The Pipeline)
- Hardware Setup – Configure your robot arms and cameras. The README provides detailed commands for both single-arm and dual-arm setups, including stable device paths and calibration files.
- Data Collection – Use
lerobot-human-inloop-recordto record episodes. You teleoperate the robot, and the system captures camera feeds and joint positions. Hotkeys let you mark success/failure or intervene. - Value Function Training – Train a neural network (default: Pi*0.6) on the collected data to predict the expected future reward from any state.
- Value Inference – Run the trained value function on your dataset to compute three new columns:
value(expected return),advantage(relative quality), andindicator(binary good/bad tag). These are written back to the dataset. - Policy Training – Train a policy (e.g., a diffusion policy) that takes camera images and task descriptions as input. The advantage indicator is injected into the task text, teaching the policy to imitate only the good trajectories.
- Closed-loop Rollout – Deploy the trained policy on the robot in human-in-the-loop mode. The robot attempts the task, and you can intervene or mark outcomes. This new data can be appended to the existing dataset or merged for the next round of training.
Why “Advantage-Conditioned”?
The core idea is to use the value function to automatically filter out poor demonstrations. Instead of treating all human teleoperation as equally good, Evo-RL scores each episode and uses that score to condition the policy. This helps the robot learn from high-quality behavior and ignore mistakes.
Getting Started
To try it yourself, clone the repo, install dependencies (Python 3.10, pip install -e .), and follow the hardware setup guides. The README includes concrete commands for every step, from checking camera feeds to launching training.
Community and Resources
- Project website and WeChat group for community support.
- Paper on arXiv and a dataset on Hugging Face (RW-RL Dataset).
- Licensed under Apache 2.0.
Evo-RL is a practical, open toolbox for anyone wanting to apply RL to real robots, with a strong emphasis on transparency and collaboration.
Related
- Project
- Project
- Project
- Project
- Dispatch