fix(datasets): cast imgs_dir as Path (#915)

This commit is contained in:
Steven Palma
2025-03-28 18:08:12 +01:00
committed by GitHub
parent ae9c81ac39
commit b568de35ad

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(