Skip to content

Commit

Permalink
Fix missing fixture in perf test
Browse files Browse the repository at this point in the history
  • Loading branch information
goodsong81 committed Feb 19, 2024
1 parent 7cdf378 commit 24bad9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/perf/test_classification.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class TestPerfSingleLabelClassification:

@pytest.mark.parametrize("fxt_model_id", MODEL_TEMPLATES, ids=MODEL_IDS, indirect=True)
@pytest.mark.parametrize("fxt_benchmark", BENCHMARK_CONFIGS.items(), ids=BENCHMARK_CONFIGS.keys(), indirect=True)
def test_accuracy(self, fxt_model_id: str, fxt_benchmark: OTXBenchmark):
def test_accuracy(self, fxt_model_id: str, fxt_benchmark: OTXBenchmark, fxt_check_benchmark_result: Callable):
"""Benchmark accruacy metrics."""
result = fxt_benchmark.run(
model_id=fxt_model_id,
Expand Down Expand Up @@ -301,7 +301,7 @@ def test_accuracy(self, fxt_model_id: str, fxt_benchmark: OTXBenchmark, fxt_chec

@pytest.mark.parametrize("fxt_model_id", MODEL_TEMPLATES, ids=MODEL_IDS, indirect=True)
@pytest.mark.parametrize("fxt_benchmark", BENCHMARK_CONFIGS.items(), ids=BENCHMARK_CONFIGS.keys(), indirect=True)
def test_speed(self, fxt_model_id: str, fxt_benchmark: OTXBenchmark, fxt_check_benchmark_results: Callable):
def test_speed(self, fxt_model_id: str, fxt_benchmark: OTXBenchmark, fxt_check_benchmark_result: Callable):
"""Benchmark train time per iter / infer time per image."""
fxt_benchmark.track_resources = True
result = fxt_benchmark.run(
Expand Down

0 comments on commit 24bad9b

Please sign in to comment.