fix(datasets): cast imgs_dir as Path ()

This commit is contained in:
Steven Palma 2025-03-28 18:08:12 +01:00 committed by GitHub
parent ae9c81ac39
commit b568de35ad
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions
lerobot/common/datasets

View File

@ -257,6 +257,7 @@ def encode_video_frames(
) -> None:
"""More info on ffmpeg arguments tuning on `benchmark/video/README.md`"""
video_path = Path(video_path)
imgs_dir = Path(imgs_dir)
video_path.parent.mkdir(parents=True, exist_ok=True)
ffmpeg_args = OrderedDict(