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?
<!-- Please describe in detail how you tested your changes.
Include details of your testing environment, and the tests you ran to
see how your change affects other areas of the code, etc. -->
It was tested manually
main
PMazarovich 3 years ago committed by GitHub
parent 6b41630144
commit 6bcc8219ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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()

Loading…
Cancel
Save