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 aadd81b commit 7aa0508
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/inat_vision_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ def h3_04_bounds_route(self):
def bench_route(self):
start = int(request.args["start"])
count = int(request.args["count"])
delay = int(request.args["delay"])
self.inferrer.TIME_DOWNLOAD = 0
self.inferrer.TIME_RESIZE = 0
self.inferrer.TIME_TOTAL = 0
Expand All @@ -88,6 +89,8 @@ def bench_route(self):
form.aggregated.data = "false"
form.geomodel.data = "true"
geomodel = form.geomodel.data

time.sleep(delay)

print("TIME-EXP: #" + TOTAL_OBS)
print("TIME-EXP: score " + observation_id)
Expand Down

0 comments on commit 7aa0508

Please sign in to comment.