docs: make Chinese README the default
Quality / Run Pre-commit Hooks (Lint, Format & Static Analysis) (push) Has been cancelled
Security / Secret Leaks Scan (push) Has been cancelled

This commit is contained in:
wehub-resource-sync
2026-07-13 09:57:10 +00:00
parent c001e84d80
commit 2f48a08c0c
+54 -48
View File
@@ -1,3 +1,9 @@
<!-- WEHUB_ZH_README -->
> [!NOTE]
> 本文档由 WeHub 基于上游 README 翻译整理,属于社区翻译,非官方中文文档。
> [English](./README.en.md) · [原始项目](https://github.com/huggingface/lerobot) · [上游 README](https://github.com/huggingface/lerobot/blob/HEAD/README.md)
> 原作者、版权与许可证归属以原始项目及本仓库 LICENSE 文件为准。
<p align="center">
<img alt="LeRobot, Hugging Face Robotics Library" src="./media/readme/lerobot-logo-thumbnail.png" width="100%">
</p>
@@ -15,19 +21,19 @@
</div>
**LeRobot** aims to provide models, datasets, and tools for real-world robotics in PyTorch. The goal is to lower the barrier to entry so that everyone can contribute to and benefit from shared datasets and pretrained models.
**LeRobot** 旨在为 PyTorch 中的真实世界机器人技术提供模型、数据集和工具。目标是降低入门门槛,让每个人都能为共享数据集和预训练模型做出贡献并从中受益。
🤗 A hardware-agnostic, Python-native interface that standardizes control across diverse platforms, from low-cost arms (SO-100) to humanoids.
🤗 与硬件无关、原生 Python 的接口,可在多样化平台上标准化控制,从低成本机械臂(SO-100)到人形机器人。
🤗 A standardized, scalable LeRobotDataset format (Parquet + MP4 or images) hosted on the Hugging Face Hub, enabling efficient storage, streaming and visualization of massive robotic datasets.
🤗 标准化、可扩展的 LeRobotDataset 格式(Parquet + MP4 或图像),托管于 Hugging Face Hub,支持海量机器人数据集的高效存储、流式传输与可视化。
🤗 State-of-the-art policies that have been shown to transfer to the real-world ready for training and deployment.
🤗 经过验证可在真实世界中迁移的最先进(state-of-the-art)策略,可直接用于训练与部署。
🤗 Comprehensive support for the open-source ecosystem to democratize physical AI.
🤗 全面支持开源生态,推动物理 AIPhysical AI)的普及。
## Quick Start
## 快速入门
LeRobot can be installed directly from PyPI.
LeRobot 可直接从 PyPI 安装。
```bash
pip install lerobot
@@ -35,15 +41,15 @@ lerobot-info
```
> [!IMPORTANT]
> For detailed installation guide, please see the [Installation Documentation](https://huggingface.co/docs/lerobot/installation).
> 详细的安装指南请参阅 [安装文档](https://huggingface.co/docs/lerobot/installation).
## Robots & Control
## 机器人与控制
<div align="center">
<img src="./media/readme/robots_control_video.webp" width="640px" alt="Reachy 2 Demo">
</div>
LeRobot provides a unified `Robot` class interface that decouples control logic from hardware specifics. It supports a wide range of robots and teleoperation devices.
LeRobot 提供统一的 `Robot` 类接口,将控制逻辑与硬件细节解耦。它支持广泛的机器人和遥操作设备。
```python
from lerobot.robots.myrobot import MyRobot
@@ -58,19 +64,19 @@ action = model.select_action(obs)
robot.send_action(action)
```
**Supported Hardware:** SO100, LeKiwi, Koch, HopeJR, OMX, EarthRover, Reachy2, Gamepads, Keyboards, Phones, OpenARM, Unitree G1, reBot B601.
**支持的硬件:** SO100LeKiwiKochHopeJROMXEarthRoverReachy2GamepadsKeyboardsPhonesOpenARMUnitree G1reBot B601
While these devices are natively integrated into the LeRobot codebase, the library is designed to be extensible. You can easily implement the Robot interface to utilize LeRobot's data collection, training, and visualization tools for your own custom robot.
虽然这些设备已原生集成到 LeRobot 代码库中,但该库设计为可扩展。你可以轻松实现 Robot 接口,将 LeRobot 的数据采集、训练与可视化工具用于你自己的定制机器人。
For detailed hardware setup guides, see the [Hardware Documentation](https://huggingface.co/docs/lerobot/integrate_hardware).
详细的硬件设置指南请参阅 [硬件文档](https://huggingface.co/docs/lerobot/integrate_hardware).
## LeRobot Dataset
## LeRobot 数据集
To solve the data fragmentation problem in robotics, we utilize the **LeRobotDataset** format.
为解决机器人领域的数据碎片化问题,我们采用 **LeRobotDataset** 格式。
- **Structure:** Synchronized MP4 videos (or images) for vision and Parquet files for state/action data.
- **HF Hub Integration:** Explore thousands of robotics datasets on the [Hugging Face Hub](https://huggingface.co/lerobot).
- **Tools:** Seamlessly delete episodes, split by indices/fractions, add/remove features, and merge multiple datasets.
- **结构:** 为视觉同步的 MP4 视频(或图像),以及用于状态/动作数据的 Parquet 文件。
- **HF Hub 集成:** 在 [Hugging Face Hub](https://huggingface.co/lerobot). 上探索数千个机器人数据集。
- **工具:** 无缝删除 episode、按索引/比例拆分、添加/移除特征,以及合并多个数据集。
```python
from lerobot.datasets.lerobot_dataset import LeRobotDataset
@@ -83,17 +89,17 @@ episode_index=0
print(f"{dataset[episode_index]['action'].shape=}\n")
```
Learn more about it in the [LeRobotDataset Documentation](https://huggingface.co/docs/lerobot/lerobot-dataset-v3)
更多信息请参阅 [LeRobotDataset 文档](https://huggingface.co/docs/lerobot/lerobot-dataset-v3)
## SoTA Models
## 最先进模型(SoTA Models
LeRobot implements state-of-the-art policies in pure PyTorch, covering Imitation Learning, Reinforcement Learning, Vision-Language-Action (VLA) models, World Models, and Reward Models, with more coming soon. It also provides you with the tools to instrument and inspect your training process.
LeRobot 以纯 PyTorch 实现最先进策略,涵盖模仿学习(Imitation Learning)、强化学习(Reinforcement Learning)、视觉-语言-动作(Vision-Language-Action, VLA)模型、世界模型(World Models)和奖励模型(Reward Models),更多即将推出。它还提供用于检测与检查训练过程的工具。
<p align="center">
<img alt="Gr00t Architecture" src="./media/readme/VLA_architecture.jpg" width="640px">
</p>
Training a policy is as simple as running a script configuration:
训练策略只需运行脚本配置即可:
```bash
lerobot-train \
@@ -101,21 +107,21 @@ lerobot-train \
--dataset.repo_id=lerobot/aloha_mobile_cabinet
```
| Category | Models |
| 类别 | 模型 |
| -------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **Imitation Learning** | [ACT](./docs/source/policy_act_README.md), [Diffusion](./docs/source/policy_diffusion_README.md), [VQ-BeT](./docs/source/policy_vqbet_README.md), [Multitask DiT Policy](./docs/source/policy_multi_task_dit_README.md) |
| **Reinforcement Learning** | [HIL-SERL](./docs/source/hilserl.mdx), [TDMPC](./docs/source/policy_tdmpc_README.md) & QC-FQL (coming soon) |
| **VLAs Models** | [Pi0](./docs/source/pi0.mdx), [Pi0Fast](./docs/source/pi0fast.mdx), [Pi0.5](./docs/source/pi05.mdx), [GR00T N1.7](./docs/source/policy_groot_README.md), [SmolVLA](./docs/source/policy_smolvla_README.md), [XVLA](./docs/source/xvla.mdx), [EO-1](./docs/source/eo1.mdx), [MolmoAct2](./docs/source/molmoact2.mdx), [WALL-OSS](./docs/source/walloss.mdx), [EVO1](./docs/source/evo1.mdx) |
| **World Models** | [VLA-JEPA](./docs/source/vla_jepa.mdx), [LingBot-VA](./docs/source/lingbot_va.mdx), [FastWAM](./docs/source/fastwam.mdx) |
| **Reward Models** | [SARM](./docs/source/sarm.mdx), [TOPReward](./docs/source/topreward.mdx), [Robometer](./docs/source/robometer.mdx) |
| **模仿学习(Imitation Learning** | [ACT](./docs/source/policy_act_README.md), [Diffusion](./docs/source/policy_diffusion_README.md), [VQ-BeT](./docs/source/policy_vqbet_README.md), [Multitask DiT Policy](./docs/source/policy_multi_task_dit_README.md) |
| **强化学习(Reinforcement Learning** | [HIL-SERL](./docs/source/hilserl.mdx), [TDMPC](./docs/source/policy_tdmpc_README.md) & QC-FQL (coming soon) |
| **VLA 模型(VLAs Models** | [Pi0](./docs/source/pi0.mdx), [Pi0Fast](./docs/source/pi0fast.mdx), [Pi0.5](./docs/source/pi05.mdx), [GR00T N1.7](./docs/source/policy_groot_README.md), [SmolVLA](./docs/source/policy_smolvla_README.md), [XVLA](./docs/source/xvla.mdx), [EO-1](./docs/source/eo1.mdx), [MolmoAct2](./docs/source/molmoact2.mdx), [WALL-OSS](./docs/source/walloss.mdx), [EVO1](./docs/source/evo1.mdx) |
| **世界模型(World Models** | [VLA-JEPA](./docs/source/vla_jepa.mdx), [LingBot-VA](./docs/source/lingbot_va.mdx), [FastWAM](./docs/source/fastwam.mdx) |
| **奖励模型(Reward Models** | [SARM](./docs/source/sarm.mdx), [TOPReward](./docs/source/topreward.mdx), [Robometer](./docs/source/robometer.mdx) |
Similarly to the hardware, you can easily implement your own policy & leverage LeRobot's data collection, training, and visualization tools, and share your model to the HF Hub
与硬件类似,你可以轻松实现自己的策略,利用 LeRobot 的数据采集、训练与可视化工具,并将模型分享到 HF Hub
For detailed policy setup guides, see the [Policy Documentation](https://huggingface.co/docs/lerobot/bring_your_own_policies). For GPU/RAM requirements and expected training time per policy, see the [Compute Hardware Guide](https://huggingface.co/docs/lerobot/hardware_guide).
详细的策略设置指南请参阅 [策略文档](https://huggingface.co/docs/lerobot/bring_your_own_policies). 有关各策略的 GPU/RAM 要求与预期训练时间,请参阅 [计算硬件指南](https://huggingface.co/docs/lerobot/hardware_guide).
## Inference & Evaluation
## 推理与评估
Evaluate your policies in simulation or on real hardware using the unified evaluation script. LeRobot supports standard benchmarks like **LIBERO**, **MetaWorld** and more to come.
使用统一的评估脚本,在仿真或真实硬件上评估你的策略。LeRobot 支持 **LIBERO****MetaWorld** 等标准基准测试,并将持续增加更多。
```bash
# Evaluate a policy on the LIBERO benchmark
@@ -126,21 +132,21 @@ lerobot-eval \
--eval.n_episodes=10
```
Learn how to implement your own simulation environment or benchmark and distribute it from the HF Hub by following the [EnvHub Documentation](https://huggingface.co/docs/lerobot/envhub)
了解如何实现你自己的仿真环境或基准测试,并通过 [EnvHub 文档](https://huggingface.co/docs/lerobot/envhub) 从 HF Hub 分发。
## Resources
## 资源
- **[Documentation](https://huggingface.co/docs/lerobot/index):** The complete guide to tutorials & API.
- **[Chinese Tutorials: LeRobot+SO-ARM101中文教程-同济子豪兄](https://zihao-ai.feishu.cn/wiki/space/7589642043471924447)** Detailed doc for assembling, teleoperate, dataset, train, deploy. Verified by Seed Studio and 5 global hackathon players.
- **[Discord](https://discord.gg/q8Dzzpym3f):** Join the `LeRobot` server to discuss with the community.
- **[X](https://x.com/LeRobotHF):** Follow us on X to stay up-to-date with the latest developments.
- **[Robot Learning Tutorial](https://huggingface.co/spaces/lerobot/robot-learning-tutorial):** A free, hands-on course to learn robot learning using LeRobot.
- **[T-Shirt Folding Experiment](https://huggingface.co/spaces/lerobot/robot-folding):** An end-to-end demonstration of folding t-shirts with LeRobot.
- **[LeLab](https://github.com/huggingface/leLab):** A web interface for LeRobot — teleoperate, calibrate, record datasets, replay, and train your SO arm from the browser, no CLI required.
- **[文档](https://huggingface.co/docs/lerobot/index):** 教程与 API 的完整指南。
- **[中文教程:LeRobot+SO-ARM101中文教程-同济子豪兄](https://zihao-ai.feishu.cn/wiki/space/7589642043471924447)** 涵盖组装、遥操作、数据集、训练、部署的详细文档。经 Seed Studio 和 5 位全球黑客松参赛者验证。
- **[Discord](https://discord.gg/q8Dzzpym3f):** 加入 `LeRobot` 服务器,与社区交流讨论。
- **[X](https://x.com/LeRobotHF):** 在 X 上关注我们,获取最新进展。
- **[机器人学习教程](https://huggingface.co/spaces/lerobot/robot-learning-tutorial):** 一门免费的实践课程,教你使用 LeRobot 学习机器人学习。
- **[T 恤折叠实验](https://huggingface.co/spaces/lerobot/robot-folding):** 使用 LeRobot 折叠 T 恤的端到端演示。
- **[LeLab](https://github.com/huggingface/leLab):** LeRobot 的 Web 界面——在浏览器中遥操作、校准、录制数据集、回放并训练你的 SO 机械臂,无需 CLI。
## Citation
## 引用
If you use LeRobot in your project, please cite the GitHub repository to acknowledge the ongoing development and contributors:
如果你在项目中使用 LeRobot,请引用 GitHub 仓库,以致谢持续开发与贡献者:
```bibtex
@misc{cadene2024lerobot,
@@ -151,10 +157,10 @@ If you use LeRobot in your project, please cite the GitHub repository to acknowl
}
```
If you are referencing our research or the academic paper, please also cite our ICLR publication:
如果你在引用我们的研究或学术论文,也请引用我们的 ICLR 论文:
<details>
<summary><b>ICLR 2026 Paper</b></summary>
<summary><b>ICLR 2026 论文</b></summary>
```bibtex
@inproceedings{cadenelerobot,
@@ -168,14 +174,14 @@ If you are referencing our research or the academic paper, please also cite our
</details>
## Contribute
## 贡献
We welcome contributions from everyone in the community! To get started, please read our [CONTRIBUTING.md](https://github.com/huggingface/lerobot/blob/main/CONTRIBUTING.md) guide. Whether you're adding a new feature, improving documentation, or fixing a bug, your help and feedback are invaluable. We're incredibly excited about the future of open-source robotics and can't wait to work with you on what's next—thank you for your support!
我们欢迎社区中的每一位成员参与贡献!入门请先阅读我们的 [CONTRIBUTING.md](https://github.com/huggingface/lerobot/blob/main/CONTRIBUTING.md) 指南。无论你是添加新功能、改进文档,还是修复 bug,你的帮助与反馈都弥足珍贵。我们对开源机器人技术的未来充满期待,迫不及待想与你携手共创下一步——感谢你的支持!
<p align="center">
<img alt="SO101 Video" src="./media/readme/so100_video.webp" width="640px">
</p>
<div align="center">
<sub>Built by the <a href="https://huggingface.co/lerobot">LeRobot</a> team at <a href="https://huggingface.co">Hugging Face</a> with ❤️</sub>
<sub> <a href="https://huggingface.co">Hugging Face</a> 的 <a href="https://huggingface.co/lerobot">LeRobot</a> 团队用 ❤️ 打造</sub>
</div>