Why Does My Dataset Collection Process Fail with Errors on Initialization?
-
Experts, I encountered an error when starting the dataset collection process. What could be the cause?
python lerobot/scripts/control_robot.py \
--robot.type=so100 \
--control.type=record \
--control.fps=30 \
--control.single_task="Grasp a lego block and put it in the bin." \
--control.repo_id=hgmtest/so100_test \
--control.tags='["so100","tutorial"]' \
--control.warmup_time_s=5 \
--control.episode_time_s=30 \
--control.reset_time_s=30 \
--control.num_episodes=2 \
--control.push_to_hub=false
INFO 2025-05-12 20:35:00 ol_robot.py:369 {'control': {'display_cameras': True,
'episode_time_s': 30,
'fps': 30,
'num_episodes': 2,
'num_image_writer_processes': 0,
'num_image_writer_threads_per_camera': 4,
'play_sounds': True,
'policy': None,
'private': False,
'push_to_hub': False,
'repo_id': 'hgmtest/so100_test',
'reset_time_s': 30,
'resume': False,
'root': None,
'single_task': 'Grasp a lego block and put it in the bin.',
'tags': ['so100', 'tutorial'],
'video': True,
'warmup_time_s': 5},
'robot': {'calibration_dir': '.cache/calibration/so100',
'cameras': {'laptop': {'camera_index': 2,
'channels': 3,
'color_mode': 'rgb',
'fps': 30,
'height': 480,
'mock': False,
'rotation': None,
'width': 640},
'phone': {'camera_index': 4,
'channels': 3,
'color_mode': 'rgb',
'fps': 30,
'height': 480,
'mock': False,
'rotation': None,
'width': 640}},
'follower_arms': {'main': {'mock': False,
'motors': {'elbow_flex': [3, 'sts3215'],
'gripper': [6, 'sts3215'],
'shoulder_lift': [2,
'sts3215'],
'shoulder_pan': [1, 'sts3215'],
'wrist_flex': [4, 'sts3215'],
'wrist_roll': [5, 'sts3215']},
'port': '/dev/ttyACM1'}},
'gripper_open_degree': None,
'leader_arms': {'main': {'mock': False,
'motors': {'elbow_flex': [3, 'sts3215'],
'gripper': [6, 'sts3215'],
'shoulder_lift': [2, 'sts3215'],
'shoulder_pan': [1, 'sts3215'],
'wrist_flex': [4, 'sts3215'],
'wrist_roll': [5, 'sts3215']},
'port': '/dev/ttyACM0'}},
'max_relative_target': None,
'mock': False}}
Traceback (most recent call last):
File "/home/zry/lerobot-main/lerobot/scripts/control_robot.py", line 393, in <module>
control_robot()
File "/home/zry/lerobot-main/lerobot/configs/parser.py", line 227, in wrapper_inner
response = fn(cfg, *args, **kwargs)
File "/home/zry/lerobot-main/lerobot/scripts/control_robot.py", line 378, in control_robot
record(robot, cfg.control)
File "/home/zry/lerobot-main/lerobot/common/robot_devices/utils.py", line 42, in wrapper
raise e
File "/home/zry/lerobot-main/lerobot/common/robot_devices/utils.py", line 38, in wrapper
return func(robot, *args, **kwargs)
File "/home/zry/lerobot-main/lerobot/scripts/control_robot.py", line 259, in record
dataset = LeRobotDataset.create(
File "/home/zry/lerobot-main/lerobot/common/datasets/lerobot_dataset.py", line 1004, in create
obj.meta = LeRobotDatasetMetadata.create(
File "/home/zry/lerobot-main/lerobot/common/datasets/lerobot_dataset.py", line 318, in create
obj.root.mkdir(parents=True, exist_ok=False)
File "/home/zry/anaconda3/envs/lerobot/lib/python3.10/pathlib.py", line 1175, in mkdir
self._accessor.mkdir(self, mode)
FileExistsError: [Errno 17] File exists: '/home/zry/.cache/huggingface/lerobot/hgmtest/so100_test'
-