Skip to content

Commit

Permalink
Fix static chunk creation for gt segments
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiltsov-max committed Oct 4, 2024
1 parent d424b5c commit 01a2207
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cvat/apps/engine/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 01a2207

Please sign in to comment.