From c8b25a15fb3dbb57eb09c60cea17e6321f6f6325 Mon Sep 17 00:00:00 2001 From: sylvain-morin Date: Thu, 15 Feb 2024 12:14:32 +0100 Subject: [PATCH] Test --- lib/inat_inferrer.py | 7 +++---- lib/inat_vision_api.py | 5 +++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/inat_inferrer.py b/lib/inat_inferrer.py index 70143ab..8002b9b 100644 --- a/lib/inat_inferrer.py +++ b/lib/inat_inferrer.py @@ -18,10 +18,6 @@ MINIMUM_GEO_SCORE = 0.005 -TIME_DOWNLOAD = 0 -TIME_RESIZE = 0 -TIME_TOTAL = 0 - class InatInferrer: def __init__(self, config): @@ -31,6 +27,9 @@ def __init__(self, config): self.setup_elevation_dataframe(config) self.setup_geo_model(config) self.upload_folder = "static/" + self.TIME_DOWNLOAD = 0 + self.TIME_RESIZE = 0 + self.TIME_TOTAL = 0 def setup_taxonomy(self, config): self.taxonomy = ModelTaxonomyDataframe( diff --git a/lib/inat_vision_api.py b/lib/inat_vision_api.py index fd57477..20898de 100644 --- a/lib/inat_vision_api.py +++ b/lib/inat_vision_api.py @@ -84,8 +84,9 @@ def bench_route(self): for i in range(start, start + count): observation_id = str( i ) form = ImageForm() - form.score_without_geo.data = "true" - form.aggregated.data = "true" + form.score_without_geo.data = "false" + form.aggregated.data = "false" + form.geomodel.data = "true" print("TIME-EXP: score " + observation_id) START_TIME_TOTAL = time.time()