increated tflite interpreter's num_threads=2

This commit is contained in:
Patrick McGuire
2021-10-04 08:06:09 -04:00
parent b899e7975c
commit 38e8c0f999
2 changed files with 5 additions and 1 deletions
+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.
+4
View File
@@ -22,3 +22,7 @@
<input type="submit" value="Reboot BirdNET-system">
</form>
<form action="/scripts/shutdown_system.php">
<input type="submit" value="Shutdown BirdNET-system">
</form>