added multithreading

This commit is contained in:
Patrick McGuire
2021-10-04 11:12:58 -04:00
parent 70fd020eb4
commit 101eba09eb
+1 -1
View File
@@ -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.