Skip to content

Commit

Permalink
Update run_benchmark.sh
Browse files Browse the repository at this point in the history
Signed-off-by: Wang, Mengni <[email protected]>
  • Loading branch information
mengniwang95 authored Aug 16, 2024
1 parent 206bf96 commit 77db4f3
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,11 @@ function run_benchmark {
extra_cmd=$extra_cmd"--image_path=${image_path} "
fi

python main.py \
--model_path="${input_model}" \
--batch_size="${batch_size-1}" \
--benchmark \
${extra_cmd}

if [ "$batch_size" ]; then
extra_cmd=$extra_cmd"--batch_size=${batch_size} "
fi
extra_cmd=$extra_cmd"--benchmark"
eval "python main.py --model_path=${input_model} ${extra_cmd}"
}

main "$@"
Expand Down

0 comments on commit 77db4f3

Please sign in to comment.