Skip to content

Commit

Permalink
do not prefetch video
Browse files Browse the repository at this point in the history
  • Loading branch information
Eldies committed Nov 17, 2024
1 parent b205652 commit 3a5a26d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cvat/apps/dataset_manager/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@ def add_prefetch_info(cls, queryset: QuerySet, prefetch_images: bool = True):
])
label_qs = JobData.add_prefetch_info(label_qs)

task_data_queryset = models.Data.objects.select_related('video')
task_data_queryset = models.Data.objects.all()
if prefetch_images:
task_data_queryset = task_data_queryset.prefetch_related(
task_data_queryset = task_data_queryset.select_related('video').prefetch_related(
Prefetch('images', queryset=models.Image.objects.order_by('frame'))
)

Expand Down

0 comments on commit 3a5a26d

Please sign in to comment.