Skip to content

Commit

Permalink
fix model loading bug in test
Browse files Browse the repository at this point in the history
  • Loading branch information
benlonnqvist committed Sep 3, 2024
1 parent 7a70121 commit 238b504
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions brainscore_vision/benchmarks/lonnqvist2024/test.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import pytest
from pytest import approx

from brainscore_vision import benchmark_registry, load_benchmark
from brainscore_vision import benchmark_registry, load_benchmark, load_model


@pytest.mark.parametrize('benchmark', [
Expand Down Expand Up @@ -39,7 +39,7 @@ def test_model(self, dataset, expected_raw_score):
else:
benchmark = f"Lonnqvist2024_{dataset}"
benchmark = load_benchmark(benchmark)
model = 'alexnet'
model = load_model('alexnet')
score = benchmark(model)
raw_score = score.raw
# division by ceiling <= 1 should result in higher score
Expand All @@ -53,7 +53,7 @@ class TestEngineering:
])
def test_accuracy(self, dataset, expected_accuracy):
benchmark = load_benchmark(f"Lonnqvist2024_{dataset}")
model = 'alexnet'
model = load_model('alexnet')
score = benchmark(model)
raw_score = score.raw
# division by ceiling <= 1 should result in higher score
Expand Down

0 comments on commit 238b504

Please sign in to comment.