Set running threads from env

This commit is contained in:
yoni13
2025-01-12 01:02:16 +08:00
parent 665718b09e
commit efaf70eb9d
2 changed files with 11 additions and 2 deletions
+3
View File
@@ -45,6 +45,9 @@ class Settings(BaseSettings):
ann_fp16_turbo: bool = False
ann_tuning_level: int = 2
rknn: bool = True
rknn_textual_threads: int = 1
rknn_visual_threads: int = 2
rknn_facial_detection_threads: int = 2
preload: PreloadModelData | None = None
max_batch_size: MaxBatchSize | None = None