Skip to content

Commit

Permalink
fix benchmark typo (#657)
Browse files Browse the repository at this point in the history
  • Loading branch information
czaloom authored Jul 5, 2024
1 parent 5eff5be commit 80b74af
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,8 @@ def ingest_groundtruths_and_predictions(
)
)

for gt in groundtruths:
dset.add_groundtruth(gt)

for pred in predictions:
model.add_prediction(dset, pred)
dset.add_groundtruths(groundtruths, timeout=15)
model.add_predictions(dset, predictions, timeout=15)

dset.finalize()
model.finalize_inferences(dataset=dset)
Expand Down Expand Up @@ -198,7 +195,7 @@ def run_benchmarking_analysis(
results = {
"number_of_datums": limit,
"number_of_unique_labels": eval_.meta["labels"],
"number_of_annotations": eval_.meta["labels"],
"number_of_annotations": eval_.meta["annotations"],
"ingest_runtime": f"{(ingest_time):.1f} seconds",
"eval_runtime": f"{(eval_.meta['duration']):.1f} seconds",
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ def run_benchmarking_analysis(
results = {
"number_of_datums": limit,
"number_of_unique_labels": eval_.meta["labels"],
"number_of_annotations": eval_.meta["labels"],
"number_of_annotations": eval_.meta["annotations"],
"ingest_runtime": f"{(ingest_time):.1f} seconds",
"eval_runtime": f"{(eval_.meta['duration']):.1f} seconds",
}
Expand Down

0 comments on commit 80b74af

Please sign in to comment.