Skip to content

Commit ec9aa5c

Browse files
fix(datasets): cast imgs_dir as Path (huggingface#915)
1 parent c8b9115 commit ec9aa5c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lerobot/common/datasets/video_utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,7 @@ def encode_video_frames(
257257
) -> None:
258258
"""More info on ffmpeg arguments tuning on `benchmark/video/README.md`"""
259259
video_path = Path(video_path)
260+
imgs_dir = Path(imgs_dir)
260261
video_path.parent.mkdir(parents=True, exist_ok=True)
261262

262263
ffmpeg_args = OrderedDict(

0 commit comments

Comments
 (0)