From f6c13f06971d562a0e477423a446c7ce6c08d3ea Mon Sep 17 00:00:00 2001 From: Jason Hilton Date: Wed, 9 Dec 2020 09:03:29 -0800 Subject: [PATCH 1/2] remove limit on DATA_UPLOAD_MAX_MEMORY_SIZE eva uses posts requests to update tracks with new vehicles. By default if a post request is greater than 2.5mb, django will truncate that post requst. Setting this paramater to None disables the check that does this. Which fixes a bug where labeling stops after a large set of images. see https://docs.djangoproject.com/en/1.11/ref/settings/#data-upload-max-memory-size --- eva/settings.py | 1 + 1 file changed, 1 insertion(+) diff --git a/eva/settings.py b/eva/settings.py index d25045f..55f7b12 100644 --- a/eva/settings.py +++ b/eva/settings.py @@ -21,6 +21,7 @@ # This setting controls how small the last chunk can be. If it is smaller, # the frames are added to the previous chunk instead. MIN_FINAL_CHUNK_SIZE = VIDEO_CHUNK_SIZE // 2 +DATA_UPLOAD_MAX_MEMORY_SIZE = None # Defines extra bounding box scaling before tracking TRACKER_SCALING = 2 From 973d64759d8ed9d8485e4714e8ea57b7cc5d5d62 Mon Sep 17 00:00:00 2001 From: Jason Hilton Date: Wed, 9 Dec 2020 09:11:47 -0800 Subject: [PATCH 2/2] Comments and format --- eva/settings.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/eva/settings.py b/eva/settings.py index 55f7b12..ef20ef4 100644 --- a/eva/settings.py +++ b/eva/settings.py @@ -21,6 +21,10 @@ # This setting controls how small the last chunk can be. If it is smaller, # the frames are added to the previous chunk instead. MIN_FINAL_CHUNK_SIZE = VIDEO_CHUNK_SIZE // 2 + +#This setting disables post request truncation +# which removes the limit on how many vehicles you an add +#to a track DATA_UPLOAD_MAX_MEMORY_SIZE = None # Defines extra bounding box scaling before tracking