Skip to content
This repository has been archived by the owner on Dec 1, 2021. It is now read-only.

Commit

Permalink
Remove first result from measurement (#1019)
Browse files Browse the repository at this point in the history
  • Loading branch information
tk26eng authored May 7, 2020
1 parent e578430 commit 1f0b9d0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions output_template/python/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,11 @@ def run_prediction(input_image, model, config_file, trial=1):
pre_process = build_pre_process(config.PRE_PROCESSOR)
post_process = build_post_process(config.POST_PROCESSOR)

# call functions once to exclude the first result which include some initializations
init_output = _pre_process(image_data, pre_process, config.DATA_FORMAT)
init_output = _run(nn, init_output)
init_output = _post_process(init_output, post_process)

results_total = []
results_pre = []
results_run = []
Expand Down

0 comments on commit 1f0b9d0

Please sign in to comment.