From 6bcc8219cad16132271243df36d1b54895f4ec37 Mon Sep 17 00:00:00 2001 From: PMazarovich <57707673+PMazarovich@users.noreply.github.com> Date: Wed, 11 Jan 2023 22:38:51 +0300 Subject: [PATCH] Lambda manager bugfix (#5462) Constantly increasing RAM consumption in cvat_worker_low docker container while using automatic annotation with detector model in nuclio. ### How has this been tested? It was tested manually --- cvat/apps/lambda_manager/views.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cvat/apps/lambda_manager/views.py b/cvat/apps/lambda_manager/views.py index e34ee361..a539751e 100644 --- a/cvat/apps/lambda_manager/views.py +++ b/cvat/apps/lambda_manager/views.py @@ -561,11 +561,11 @@ class LambdaJob: results.append_shape(shape) - # Accumulate data during 100 frames before sumbitting results. - # It is optimization to make fewer calls to our server. Also - # it isn't possible to keep all results in memory. - if frame and frame % 100 == 0: - results.submit() + # Accumulate data during 100 frames before sumbitting results. + # It is optimization to make fewer calls to our server. Also + # it isn't possible to keep all results in memory. + if frame and frame % 100 == 0: + results.submit() results.submit()