From e6ff21b3455c56a2b251aba0b3cf6d4ddca4edcd Mon Sep 17 00:00:00 2001 From: yoni13 Date: Sun, 12 Jan 2025 16:05:18 +0800 Subject: [PATCH] set default thread num to 2, not everyone has 8 gigs of ram --- machine-learning/app/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/machine-learning/app/config.py b/machine-learning/app/config.py index e6d63368b2..2782b82b45 100644 --- a/machine-learning/app/config.py +++ b/machine-learning/app/config.py @@ -46,8 +46,8 @@ class Settings(BaseSettings): ann_tuning_level: int = 2 rknn: bool = True rknn_textual_threads: int = 1 - rknn_visual_threads: int = 2 - rknn_facial_detection_threads: int = 2 + rknn_visual_threads: int = 1 + rknn_facial_detection_threads: int = 1 preload: PreloadModelData | None = None max_batch_size: MaxBatchSize | None = None