Skip to content

Commit

Permalink
Autoformat with black
Browse files Browse the repository at this point in the history
  • Loading branch information
brainless-bot[bot] committed Jan 15, 2024
1 parent df6e9b3 commit bfcc95a
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions benchmark/modules_speedtest.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
ConnectedComponentsInstanceApproximator,
NaiveThresholdMatching,
SemanticPair,
UnmatchedInstancePair,
UnmatchedInstancePair,
MatchedInstancePair,
)
from panoptica.instance_evaluator import evaluate_matched_instance
Expand Down Expand Up @@ -82,16 +82,21 @@ def test_input(processing_pair: SemanticPair):
processing_pair.crop_data()
#
start1 = perf_counter()
unmatched_instance_pair = instance_approximator.approximate_instances(semantic_pair=processing_pair)
unmatched_instance_pair = instance_approximator.approximate_instances(
semantic_pair=processing_pair
)
time1 = perf_counter() - start1
#
start2 = perf_counter()
matched_instance_pair = instance_matcher.match_instances(unmatched_instance_pair=unmatched_instance_pair)
matched_instance_pair = instance_matcher.match_instances(
unmatched_instance_pair=unmatched_instance_pair
)
time2 = perf_counter() - start2
#
start3 = perf_counter()
result = evaluate_matched_instance(
matched_instance_pair, decision_threshold=iou_threshold,
matched_instance_pair,
decision_threshold=iou_threshold,
)
time3 = perf_counter() - start3
return time1, time2, time3
Expand Down

0 comments on commit bfcc95a

Please sign in to comment.