From 8503f6d9a0b3c1bcc1c013ee93167e7efaef9174 Mon Sep 17 00:00:00 2001 From: Theo Date: Thu, 10 Aug 2023 20:32:46 +0300 Subject: [PATCH 1/5] upd sdk --- requirements.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 8075b21..61f796c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,5 @@ -supervisely==6.72.32 +# supervisely==6.72.32 +git+https://github.com/supervisely/supervisely.git@global-lru-cache-for-frames PyYAML easydict cython From d3d68996aa44cfbf5be717480b9d6120cff9270f Mon Sep 17 00:00:00 2001 From: Theo Date: Wed, 16 Aug 2023 17:18:46 +0300 Subject: [PATCH 2/5] set env params for smart cache --- serve/serve/src/main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/serve/serve/src/main.py b/serve/serve/src/main.py index f3b7174..5b20453 100644 --- a/serve/serve/src/main.py +++ b/serve/serve/src/main.py @@ -21,6 +21,9 @@ load_dotenv(os.path.expanduser("~/supervisely.env")) +os.environ["SMART_CACHE_TTL"] = 5 * 60 +os.environ["SMART_CACHE_SIZE"] = 512 + class MixFormer(BBoxTracking): def load_on_device( From e872bbdd5b47e012ce6e8e73fa16cd387dcce158 Mon Sep 17 00:00:00 2001 From: Theo Date: Wed, 16 Aug 2023 17:30:42 +0300 Subject: [PATCH 3/5] . --- serve/serve/src/main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/serve/serve/src/main.py b/serve/serve/src/main.py index 5b20453..247b3d8 100644 --- a/serve/serve/src/main.py +++ b/serve/serve/src/main.py @@ -17,13 +17,13 @@ NAME = os.environ.get("modal.state.modelName", "mixformer_vit_online") +os.environ["SMART_CACHE_TTL"] = 5 * 60 +os.environ["SMART_CACHE_SIZE"] = 512 + root = (Path(__file__).parent / ".." / ".." / "..").resolve().absolute() load_dotenv(os.path.expanduser("~/supervisely.env")) -os.environ["SMART_CACHE_TTL"] = 5 * 60 -os.environ["SMART_CACHE_SIZE"] = 512 - class MixFormer(BBoxTracking): def load_on_device( From ecd97251fdb662d8e180f268fceacf8b7efa1ca8 Mon Sep 17 00:00:00 2001 From: Theo Date: Wed, 16 Aug 2023 18:51:45 +0300 Subject: [PATCH 4/5] fix env set --- serve/serve/src/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/serve/serve/src/main.py b/serve/serve/src/main.py index 247b3d8..10ee786 100644 --- a/serve/serve/src/main.py +++ b/serve/serve/src/main.py @@ -17,8 +17,8 @@ NAME = os.environ.get("modal.state.modelName", "mixformer_vit_online") -os.environ["SMART_CACHE_TTL"] = 5 * 60 -os.environ["SMART_CACHE_SIZE"] = 512 +os.environ["SMART_CACHE_TTL"] = str(5 * 60) +os.environ["SMART_CACHE_SIZE"] = str(512) root = (Path(__file__).parent / ".." / ".." / "..").resolve().absolute() From 9b366ebccbc4f423058ac2d7fb2bed082debbe3e Mon Sep 17 00:00:00 2001 From: Theo Date: Wed, 23 Aug 2023 14:13:15 +0300 Subject: [PATCH 5/5] upd sdk --- requirements.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/requirements.txt b/requirements.txt index 61f796c..0bbc225 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ -# supervisely==6.72.32 -git+https://github.com/supervisely/supervisely.git@global-lru-cache-for-frames +supervisely==6.72.111 +# git+https://github.com/supervisely/supervisely.git@some-test-branch PyYAML easydict cython