Skip to content

A live bird collage card for your Home Assistant dashboard.

added multithreading

Patrick McGuire101eba09eb2f
diff --git a/analyze.py b/analyze.py
index 9f1dcb60..564bc9f2 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.