From 101eba09eb2f759a8b86d94eead8946f455db2f3 Mon Sep 17 00:00:00 2001 From: Patrick McGuire Date: Mon, 4 Oct 2021 11:12:58 -0400 Subject: [PATCH] added multithreading --- analyze.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/analyze.py b/analyze.py index 9f1dcb6..564bc9f 100644 --- a/analyze.py +++ b/analyze.py @@ -24,7 +24,7 @@ def loadModel(): print('LOADING TF LITE MODEL...', end=' ') # Load TFLite model and allocate tensors. - interpreter = tflite.Interpreter(model_path='model/BirdNET_6K_GLOBAL_MODEL.tflite') + interpreter = tflite.Interpreter(model_path='model/BirdNET_6K_GLOBAL_MODEL.tflite',num_threads=2) interpreter.allocate_tensors() # Get input and output tensors.