机械臂训练数据
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- quick_lerobot_dataset/README.md +96 -0
- quick_lerobot_dataset/dataset.zip +3 -0
- quick_lerobot_dataset/generation_report.json +27 -0
- quick_lerobot_dataset/video_01_demo_video/frames/frame_000000.jpg +3 -0
- quick_lerobot_dataset/video_01_demo_video/frames/frame_000001.jpg +3 -0
- quick_lerobot_dataset/video_01_demo_video/frames/frame_000002.jpg +3 -0
- quick_lerobot_dataset/video_01_demo_video/frames/frame_000003.jpg +3 -0
- quick_lerobot_dataset/video_01_demo_video/frames/frame_000004.jpg +3 -0
- quick_lerobot_dataset/video_01_demo_video/frames/frame_000005.jpg +3 -0
- quick_lerobot_dataset/video_01_demo_video/frames/frame_000006.jpg +3 -0
- quick_lerobot_dataset/video_01_demo_video/frames/frame_000007.jpg +3 -0
- quick_lerobot_dataset/video_01_demo_video/frames/frame_000008.jpg +3 -0
- quick_lerobot_dataset/video_01_demo_video/frames/frame_000009.jpg +3 -0
- quick_lerobot_dataset/video_01_demo_video/frames/frame_000010.jpg +3 -0
- quick_lerobot_dataset/video_01_demo_video/frames/frame_000011.jpg +3 -0
- quick_lerobot_dataset/video_01_demo_video/frames/frame_000012.jpg +3 -0
- quick_lerobot_dataset/video_01_demo_video/frames/frame_000013.jpg +3 -0
- quick_lerobot_dataset/video_01_demo_video/frames/frame_000014.jpg +3 -0
- quick_lerobot_dataset/video_01_demo_video/frames/frame_000015.jpg +3 -0
- quick_lerobot_dataset/video_01_demo_video/frames/frame_000016.jpg +3 -0
- quick_lerobot_dataset/video_01_demo_video/frames/frame_000017.jpg +3 -0
- quick_lerobot_dataset/video_01_demo_video/frames/frame_000018.jpg +3 -0
- quick_lerobot_dataset/video_01_demo_video/frames/frame_000019.jpg +3 -0
- quick_lerobot_dataset/video_01_demo_video/frames/frame_000020.jpg +3 -0
- quick_lerobot_dataset/video_01_demo_video/frames/frame_000021.jpg +3 -0
- quick_lerobot_dataset/video_01_demo_video/frames/frame_000022.jpg +3 -0
- quick_lerobot_dataset/video_01_demo_video/frames/frame_000023.jpg +3 -0
- quick_lerobot_dataset/video_01_demo_video/frames/frame_000024.jpg +3 -0
- quick_lerobot_dataset/video_02_demo_video_10/frames/frame_000001.jpg +3 -0
- quick_lerobot_dataset/video_03_demo_video_2/frames/frame_000000.jpg +3 -0
- quick_lerobot_dataset/video_03_demo_video_2/frames/frame_000001.jpg +3 -0
- quick_lerobot_dataset/video_03_demo_video_2/frames/frame_000002.jpg +3 -0
- quick_lerobot_dataset/video_03_demo_video_2/frames/frame_000003.jpg +3 -0
- quick_lerobot_dataset/video_03_demo_video_2/frames/frame_000004.jpg +3 -0
- quick_lerobot_dataset/video_03_demo_video_2/frames/frame_000005.jpg +3 -0
- quick_lerobot_dataset/video_03_demo_video_2/frames/frame_000006.jpg +3 -0
- quick_lerobot_dataset/video_03_demo_video_2/frames/frame_000007.jpg +3 -0
- quick_lerobot_dataset/video_03_demo_video_2/frames/frame_000008.jpg +3 -0
- quick_lerobot_dataset/video_03_demo_video_2/frames/frame_000009.jpg +3 -0
- quick_lerobot_dataset/video_03_demo_video_2/frames/frame_000010.jpg +3 -0
- quick_lerobot_dataset/video_03_demo_video_2/frames/frame_000011.jpg +3 -0
- quick_lerobot_dataset/video_03_demo_video_2/frames/frame_000012.jpg +3 -0
- quick_lerobot_dataset/video_03_demo_video_2/frames/frame_000013.jpg +3 -0
- quick_lerobot_dataset/video_03_demo_video_2/frames/frame_000014.jpg +3 -0
- quick_lerobot_dataset/video_03_demo_video_2/frames/frame_000015.jpg +3 -0
- quick_lerobot_dataset/video_03_demo_video_2/frames/frame_000016.jpg +3 -0
- quick_lerobot_dataset/video_03_demo_video_2/frames/frame_000017.jpg +3 -0
- quick_lerobot_dataset/video_03_demo_video_2/frames/frame_000018.jpg +3 -0
- quick_lerobot_dataset/video_03_demo_video_2/frames/frame_000019.jpg +3 -0
- quick_lerobot_dataset/video_03_demo_video_2/frames/frame_000020.jpg +3 -0
quick_lerobot_dataset/README.md
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# 快速LeRobot数据集 - 机械臂训练专用
|
| 2 |
+
|
| 3 |
+
## 🎯 概述
|
| 4 |
+
这是为机械臂训练快速生成的LeRobot格式数据集,包含:
|
| 5 |
+
- 人脸检测和隐私保护(马赛克)
|
| 6 |
+
- 手部关键点数据(每只手21个3D关键点)
|
| 7 |
+
- 机械臂动作数据(7DOF)
|
| 8 |
+
- 视频帧数据
|
| 9 |
+
|
| 10 |
+
## 📊 数据统计
|
| 11 |
+
- **处理视频**: 6/10 个成功
|
| 12 |
+
- **总帧数**: 180 帧
|
| 13 |
+
- **每视频帧数**: 30帧
|
| 14 |
+
- **帧率**: 30fps
|
| 15 |
+
- **手部关键点**: 每帧42个关键点(左右手各21个)
|
| 16 |
+
|
| 17 |
+
## 📁 数据结构
|
| 18 |
+
```
|
| 19 |
+
quick_lerobot_dataset/
|
| 20 |
+
├── generation_report.json # 生成报告
|
| 21 |
+
├── README.md # 说明文档
|
| 22 |
+
├── video_03_demo_video_2/ # 示例视频数据
|
| 23 |
+
│ ├── frames/ # 处理后的帧
|
| 24 |
+
│ │ ├── frame_000000.jpg
|
| 25 |
+
│ │ └── ... (30帧)
|
| 26 |
+
│ ├── hand_landmarks.csv # 手部关键点DataFrame
|
| 27 |
+
│ └── lerobot_dataset.json # LeRobot格式数据
|
| 28 |
+
└── ... (其他视频目录)
|
| 29 |
+
```
|
| 30 |
+
|
| 31 |
+
## 🤖 LeRobot数据格式
|
| 32 |
+
每个`lerobot_dataset.json`包含:
|
| 33 |
+
- `episode`: 剧集编号
|
| 34 |
+
- `language_instruction`: 任务描述
|
| 35 |
+
- `fps`: 帧率
|
| 36 |
+
- `frames`: 帧数据列表
|
| 37 |
+
- `frame_index`: 帧索引
|
| 38 |
+
- `timestamp`: 时间戳
|
| 39 |
+
- `action`: 7维机械臂动作 [x, y, z, roll, pitch, yaw, gripper]
|
| 40 |
+
- `faces_detected/valid/protected`: 人脸检测统计
|
| 41 |
+
- `face_positions`: 人脸位置坐标
|
| 42 |
+
|
| 43 |
+
## 🖐️ 手部关键点数据
|
| 44 |
+
`hand_landmarks.csv`包含:
|
| 45 |
+
- `frame_index`: 帧索引
|
| 46 |
+
- `timestamp`: 时间戳
|
| 47 |
+
- `hand_left_0_x/y/z/visibility` 到 `hand_left_20_x/y/z/visibility`: 左手21个关键点
|
| 48 |
+
- `hand_right_0_x/y/z/visibility` 到 `hand_right_20_x/y/z/visibility`: 右手21个关键点
|
| 49 |
+
|
| 50 |
+
**坐标系统**: 归一化3D坐标 (0-1范围)
|
| 51 |
+
**可见性**: 0.0-1.0,表示关键点的可见程度
|
| 52 |
+
|
| 53 |
+
## 🎯 训练用途
|
| 54 |
+
这些数据适用于:
|
| 55 |
+
- 机械臂动作学习
|
| 56 |
+
- 人脸检测和保护任务
|
| 57 |
+
- 手部姿态估计
|
| 58 |
+
- 多模态机器人训练
|
| 59 |
+
|
| 60 |
+
## 🔧 使用方法
|
| 61 |
+
```python
|
| 62 |
+
import json
|
| 63 |
+
import pandas as pd
|
| 64 |
+
|
| 65 |
+
# 加载LeRobot数据
|
| 66 |
+
with open('video_03_demo_video_2/lerobot_dataset.json', 'r') as f:
|
| 67 |
+
lerobot_data = json.load(f)
|
| 68 |
+
|
| 69 |
+
# 加载手部关键点
|
| 70 |
+
hand_df = pd.read_csv('video_03_demo_video_2/hand_landmarks.csv')
|
| 71 |
+
|
| 72 |
+
# 提取动作序列
|
| 73 |
+
actions = [frame['action'] for frame in lerobot_data['frames']]
|
| 74 |
+
|
| 75 |
+
# 提取手部关键点
|
| 76 |
+
left_hand = hand_df[[col for col in hand_df.columns if 'hand_left' in col]]
|
| 77 |
+
right_hand = hand_df[[col for col in hand_df.columns if 'hand_right' in col]]
|
| 78 |
+
```
|
| 79 |
+
|
| 80 |
+
## ⚡ 快速生成命令
|
| 81 |
+
```bash
|
| 82 |
+
python quick_lerobot_generator.py
|
| 83 |
+
```
|
| 84 |
+
|
| 85 |
+
## 📝 特点
|
| 86 |
+
- ✅ 快速生成(专为训练优化)
|
| 87 |
+
- ✅ 标准LeRobot格式
|
| 88 |
+
- ✅ 包含手部关键点
|
| 89 |
+
- ✅ 人脸隐私保护
|
| 90 |
+
- ✅ 机械臂动作数据
|
| 91 |
+
- ✅ 30fps标准帧率
|
| 92 |
+
|
| 93 |
+
---
|
| 94 |
+
*生成时间: 2026-03-23*
|
| 95 |
+
*状态: 完成*
|
| 96 |
+
*用途: 机械臂训练*
|
quick_lerobot_dataset/dataset.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ccbfd6ba2cc0924cf24c1e61494597ecb6019e29080c4ddfe99718a2ac68e914
|
| 3 |
+
size 37055749
|
quick_lerobot_dataset/generation_report.json
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"generation_info": {
|
| 3 |
+
"timestamp": "2026-03-23T19:16:14.582995",
|
| 4 |
+
"method": "quick_robot_training",
|
| 5 |
+
"description": "快速生成机械臂训练数据"
|
| 6 |
+
},
|
| 7 |
+
"processing_stats": {
|
| 8 |
+
"total_videos": 10,
|
| 9 |
+
"processed_videos": 6,
|
| 10 |
+
"total_frames": 180,
|
| 11 |
+
"total_faces": 0,
|
| 12 |
+
"total_actions": 0
|
| 13 |
+
},
|
| 14 |
+
"config": {
|
| 15 |
+
"detection_scale_factor": 1.05,
|
| 16 |
+
"detection_min_neighbors": 3,
|
| 17 |
+
"detection_min_size": [
|
| 18 |
+
30,
|
| 19 |
+
30
|
| 20 |
+
],
|
| 21 |
+
"max_faces_per_frame": 5,
|
| 22 |
+
"min_face_area": 900,
|
| 23 |
+
"target_region": "left_center",
|
| 24 |
+
"fps": 30
|
| 25 |
+
},
|
| 26 |
+
"output_directory": "D:\\helloWorld2026\\MZ-AI-BirdData\\output\\quick_lerobot_dataset"
|
| 27 |
+
}
|
quick_lerobot_dataset/video_01_demo_video/frames/frame_000000.jpg
ADDED
|
Git LFS Details
|
quick_lerobot_dataset/video_01_demo_video/frames/frame_000001.jpg
ADDED
|
Git LFS Details
|
quick_lerobot_dataset/video_01_demo_video/frames/frame_000002.jpg
ADDED
|
Git LFS Details
|
quick_lerobot_dataset/video_01_demo_video/frames/frame_000003.jpg
ADDED
|
Git LFS Details
|
quick_lerobot_dataset/video_01_demo_video/frames/frame_000004.jpg
ADDED
|
Git LFS Details
|
quick_lerobot_dataset/video_01_demo_video/frames/frame_000005.jpg
ADDED
|
Git LFS Details
|
quick_lerobot_dataset/video_01_demo_video/frames/frame_000006.jpg
ADDED
|
Git LFS Details
|
quick_lerobot_dataset/video_01_demo_video/frames/frame_000007.jpg
ADDED
|
Git LFS Details
|
quick_lerobot_dataset/video_01_demo_video/frames/frame_000008.jpg
ADDED
|
Git LFS Details
|
quick_lerobot_dataset/video_01_demo_video/frames/frame_000009.jpg
ADDED
|
Git LFS Details
|
quick_lerobot_dataset/video_01_demo_video/frames/frame_000010.jpg
ADDED
|
Git LFS Details
|
quick_lerobot_dataset/video_01_demo_video/frames/frame_000011.jpg
ADDED
|
Git LFS Details
|
quick_lerobot_dataset/video_01_demo_video/frames/frame_000012.jpg
ADDED
|
Git LFS Details
|
quick_lerobot_dataset/video_01_demo_video/frames/frame_000013.jpg
ADDED
|
Git LFS Details
|
quick_lerobot_dataset/video_01_demo_video/frames/frame_000014.jpg
ADDED
|
Git LFS Details
|
quick_lerobot_dataset/video_01_demo_video/frames/frame_000015.jpg
ADDED
|
Git LFS Details
|
quick_lerobot_dataset/video_01_demo_video/frames/frame_000016.jpg
ADDED
|
Git LFS Details
|
quick_lerobot_dataset/video_01_demo_video/frames/frame_000017.jpg
ADDED
|
Git LFS Details
|
quick_lerobot_dataset/video_01_demo_video/frames/frame_000018.jpg
ADDED
|
Git LFS Details
|
quick_lerobot_dataset/video_01_demo_video/frames/frame_000019.jpg
ADDED
|
Git LFS Details
|
quick_lerobot_dataset/video_01_demo_video/frames/frame_000020.jpg
ADDED
|
Git LFS Details
|
quick_lerobot_dataset/video_01_demo_video/frames/frame_000021.jpg
ADDED
|
Git LFS Details
|
quick_lerobot_dataset/video_01_demo_video/frames/frame_000022.jpg
ADDED
|
Git LFS Details
|
quick_lerobot_dataset/video_01_demo_video/frames/frame_000023.jpg
ADDED
|
Git LFS Details
|
quick_lerobot_dataset/video_01_demo_video/frames/frame_000024.jpg
ADDED
|
Git LFS Details
|
quick_lerobot_dataset/video_02_demo_video_10/frames/frame_000001.jpg
ADDED
|
Git LFS Details
|
quick_lerobot_dataset/video_03_demo_video_2/frames/frame_000000.jpg
ADDED
|
Git LFS Details
|
quick_lerobot_dataset/video_03_demo_video_2/frames/frame_000001.jpg
ADDED
|
Git LFS Details
|
quick_lerobot_dataset/video_03_demo_video_2/frames/frame_000002.jpg
ADDED
|
Git LFS Details
|
quick_lerobot_dataset/video_03_demo_video_2/frames/frame_000003.jpg
ADDED
|
Git LFS Details
|
quick_lerobot_dataset/video_03_demo_video_2/frames/frame_000004.jpg
ADDED
|
Git LFS Details
|
quick_lerobot_dataset/video_03_demo_video_2/frames/frame_000005.jpg
ADDED
|
Git LFS Details
|
quick_lerobot_dataset/video_03_demo_video_2/frames/frame_000006.jpg
ADDED
|
Git LFS Details
|
quick_lerobot_dataset/video_03_demo_video_2/frames/frame_000007.jpg
ADDED
|
Git LFS Details
|
quick_lerobot_dataset/video_03_demo_video_2/frames/frame_000008.jpg
ADDED
|
Git LFS Details
|
quick_lerobot_dataset/video_03_demo_video_2/frames/frame_000009.jpg
ADDED
|
Git LFS Details
|
quick_lerobot_dataset/video_03_demo_video_2/frames/frame_000010.jpg
ADDED
|
Git LFS Details
|
quick_lerobot_dataset/video_03_demo_video_2/frames/frame_000011.jpg
ADDED
|
Git LFS Details
|
quick_lerobot_dataset/video_03_demo_video_2/frames/frame_000012.jpg
ADDED
|
Git LFS Details
|
quick_lerobot_dataset/video_03_demo_video_2/frames/frame_000013.jpg
ADDED
|
Git LFS Details
|
quick_lerobot_dataset/video_03_demo_video_2/frames/frame_000014.jpg
ADDED
|
Git LFS Details
|
quick_lerobot_dataset/video_03_demo_video_2/frames/frame_000015.jpg
ADDED
|
Git LFS Details
|
quick_lerobot_dataset/video_03_demo_video_2/frames/frame_000016.jpg
ADDED
|
Git LFS Details
|
quick_lerobot_dataset/video_03_demo_video_2/frames/frame_000017.jpg
ADDED
|
Git LFS Details
|
quick_lerobot_dataset/video_03_demo_video_2/frames/frame_000018.jpg
ADDED
|
Git LFS Details
|
quick_lerobot_dataset/video_03_demo_video_2/frames/frame_000019.jpg
ADDED
|
Git LFS Details
|
quick_lerobot_dataset/video_03_demo_video_2/frames/frame_000020.jpg
ADDED
|
Git LFS Details
|