From ee4e347eb6f090c91e47e3abefa6f62c2b4acc67 Mon Sep 17 00:00:00 2001 From: Maxim Zhiltsov Date: Fri, 4 Oct 2024 20:49:52 +0300 Subject: [PATCH] Fix static chunk creation for gt segments --- cvat/apps/engine/task.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cvat/apps/engine/task.py b/cvat/apps/engine/task.py index d87ef7ecdd49..459a6ddd4b30 100644 --- a/cvat/apps/engine/task.py +++ b/cvat/apps/engine/task.py @@ -1659,7 +1659,7 @@ def _get_frame_size(frame_tuple: Tuple[av.VideoFrame, Any, Any]) -> int: (abs_frame_id - media_extractor.start) // media_extractor.step for abs_frame_id in ( frame_map.get(frame, frame) - for frame in db_segment.frame_set + for frame in sorted(db_segment.frame_set) ) ), lambda _: next(frame_counter) // db_data.chunk_size