From 112f40e19256ce76c7cfc6469fe30de240a62f1d Mon Sep 17 00:00:00 2001 From: ehpersonal38 <103586016+ehpersonal38@users.noreply.github.com> Date: Sat, 14 Jan 2023 17:41:59 -0500 Subject: [PATCH] Update server.py --- scripts/server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/server.py b/scripts/server.py index 6f4997b..28d37eb 100755 --- a/scripts/server.py +++ b/scripts/server.py @@ -64,7 +64,7 @@ def loadModel(): print('LOADING TF LITE MODEL...', end=' ') # Load TFLite model and allocate tensors. - # model will either be BirdNET_GLOBAL_3K_V2.2_MData_Model_FP16 (new) or BirdNET_6K_GLOBAL_MODEL (old) + # model will either be BirdNET_GLOBAL_3K_V2.2_Model_FP16 (new) or BirdNET_6K_GLOBAL_MODEL (old) modelpath = userDir + '/BirdNET-Pi/model/'+model+'.tflite' myinterpreter = tflite.Interpreter(model_path=modelpath, num_threads=2) myinterpreter.allocate_tensors() @@ -263,7 +263,7 @@ def analyzeAudioData(chunks, lat, lon, week, sensitivity, overlap,): start = time.time() print('ANALYZING AUDIO...', end=' ', flush=True) - if model == "BirdNET_GLOBAL_3K_V2.2_MData_Model_FP16": + if model == "BirdNET_GLOBAL_3K_V2.2_Model_FP16": if len(PREDICTED_SPECIES_LIST) == 0: predictSpeciesList(lat,lon,week)