From 38e8c0f99934d14c734e7ddaf678a0182d02bafb Mon Sep 17 00:00:00 2001 From: Patrick McGuire Date: Mon, 4 Oct 2021 08:06:09 -0400 Subject: [PATCH] increated tflite interpreter's num_threads=2 --- analyze.py | 2 +- scripts/index.html | 4 ++++ 2 files changed, 5 insertions(+), 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. diff --git a/scripts/index.html b/scripts/index.html index 0e158b2..2fe3bd7 100644 --- a/scripts/index.html +++ b/scripts/index.html @@ -22,3 +22,7 @@ +
+ +
+