KillzoneCC commited on
Commit ·
aa48715
1
Parent(s): 1133b11
21
Browse files- collect_and_upload.py +3 -1
collect_and_upload.py
CHANGED
|
@@ -142,6 +142,7 @@ def create_readme(repo_id, info, root_dir):
|
|
| 142 |
robot_type = info.get("robot_type", "unknown")
|
| 143 |
fps = info.get("fps", 0)
|
| 144 |
|
|
|
|
| 145 |
readme_content = f"""---
|
| 146 |
license: apache-2.0
|
| 147 |
task_categories:
|
|
@@ -150,7 +151,7 @@ tags:
|
|
| 150 |
- LeRobot
|
| 151 |
configs:
|
| 152 |
- config_name: default
|
| 153 |
-
|
| 154 |
---
|
| 155 |
|
| 156 |
# Ainex Robot Dataset
|
|
@@ -198,6 +199,7 @@ def create_video(frames, video_path):
|
|
| 198 |
video_writer.release()
|
| 199 |
print(f"Видеофайл успешно создан: {video_path}")
|
| 200 |
|
|
|
|
| 201 |
def collect_data_and_save():
|
| 202 |
global running
|
| 203 |
|
|
|
|
| 142 |
robot_type = info.get("robot_type", "unknown")
|
| 143 |
fps = info.get("fps", 0)
|
| 144 |
|
| 145 |
+
# Исправленное форматирование YAML
|
| 146 |
readme_content = f"""---
|
| 147 |
license: apache-2.0
|
| 148 |
task_categories:
|
|
|
|
| 151 |
- LeRobot
|
| 152 |
configs:
|
| 153 |
- config_name: default
|
| 154 |
+
data_files: data/*/*.parquet
|
| 155 |
---
|
| 156 |
|
| 157 |
# Ainex Robot Dataset
|
|
|
|
| 199 |
video_writer.release()
|
| 200 |
print(f"Видеофайл успешно создан: {video_path}")
|
| 201 |
|
| 202 |
+
|
| 203 |
def collect_data_and_save():
|
| 204 |
global running
|
| 205 |
|