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 1534cc7 commit ee4e347
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 ee4e347

Please sign in to comment.