Skip to content

Commit 3a7dc18

Browse files
fix(empty concat): check for empty paths list before data files concatenation
1 parent 3b4b082 commit 3a7dc18

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lerobot/datasets/v30/convert_dataset_v21_to_v30.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,8 @@ def convert_data(root: Path, new_root: Path, data_file_size_in_mb: int):
204204
paths_to_cat.append(ep_path)
205205
continue
206206

207-
concat_data_files(paths_to_cat, new_root, chunk_idx, file_idx, image_keys)
207+
if paths_to_cat:
208+
concat_data_files(paths_to_cat, new_root, chunk_idx, file_idx, image_keys)
208209

209210
# Reset for the next file
210211
size_in_mb = ep_size_in_mb

0 commit comments

Comments
 (0)