Skip to content

Commit

Permalink
update predict verbose (#514)
Browse files Browse the repository at this point in the history
  • Loading branch information
fcakyon authored Jun 28, 2022
1 parent 5e45d75 commit 70b039f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sahi/predict.py
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,10 @@ def predict(

durations_in_seconds["prediction"] += prediction_result.durations_in_seconds["prediction"]
# Show prediction time
tqdm.write("Prediction time is: {:.2f} ms".format(prediction_result.durations_in_seconds["prediction"] * 1000))
if verbose:
tqdm.write(
"Prediction time is: {:.2f} ms".format(prediction_result.durations_in_seconds["prediction"] * 1000)
)

if dataset_json_path:
if source_is_video is True:
Expand Down

0 comments on commit 70b039f

Please sign in to comment.