Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvain-morin committed Feb 15, 2024
1 parent e5ecc71 commit c8b25a1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
7 changes: 3 additions & 4 deletions lib/inat_inferrer.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@

MINIMUM_GEO_SCORE = 0.005

TIME_DOWNLOAD = 0
TIME_RESIZE = 0
TIME_TOTAL = 0

class InatInferrer:

def __init__(self, config):
Expand All @@ -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(
Expand Down
5 changes: 3 additions & 2 deletions lib/inat_vision_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit c8b25a1

Please sign in to comment.