From f03f69cc632f7956eac34b33ea8c2b7c13f4bc8b Mon Sep 17 00:00:00 2001 From: ehpersonal38 <103586016+ehpersonal38@users.noreply.github.com> Date: Mon, 16 Jan 2023 13:21:44 -0500 Subject: [PATCH] fixes --- scripts/config.php | 4 ++-- scripts/species.py | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/config.php b/scripts/config.php index 58cb948..d9c073f 100644 --- a/scripts/config.php +++ b/scripts/config.php @@ -356,8 +356,8 @@ function sendTestNotification(e) {
style="display: none" id="soft"> - - [?]
+ + [?]
diff --git a/scripts/species.py b/scripts/species.py index 3426f61..77da697 100644 --- a/scripts/species.py +++ b/scripts/species.py @@ -71,13 +71,13 @@ def predictFilter(lat, lon, week): return M_INTERPRETER.get_tensor(M_OUTPUT_LAYER_INDEX)[0] -def explore(lat, lon, week): +def explore(lat, lon, week, threshold): # Make filter prediction l_filter = predictFilter(lat, lon, week) # Apply threshold - l_filter = np.where(l_filter >= 0.03, l_filter, 0) + l_filter = np.where(l_filter >= threshold, l_filter, 0) # Zip with labels l_filter = list(zip(l_filter, CLASSES)) @@ -92,7 +92,7 @@ def getSpeciesList(lat, lon, week, threshold=0.05, sort=False): print('Getting species list for {}/{}, Week {}...'.format(lat, lon, week), end='', flush=True) # Extract species from model - pred = explore(lat, lon, week) + pred = explore(lat, lon, week, threshold) # Make species list slist = []