Skip to content

Commit

Permalink
fix import
Browse files Browse the repository at this point in the history
  • Loading branch information
Borda committed Feb 12, 2024
1 parent ebd7e19 commit 924132f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/unittests/image/test_qnr.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
from unittests import BATCH_SIZE, NUM_BATCHES
from unittests.helpers import seed_all
from unittests.helpers.testers import MetricTester
from unittests.image.test_d_lambda import _baseline_d_lambda
from unittests.image.test_d_s import _baseline_d_s
from unittests.image.test_d_lambda import _reference_d_lambda
from unittests.image.test_d_s import _reference_d_s

seed_all(42)

Expand Down Expand Up @@ -87,8 +87,8 @@ def _baseline_quality_with_no_reference(
window_size: int = 7,
) -> float:
"""NumPy based implementation of Quality with No Reference, which uses D_lambda and D_s."""
d_lambda = _baseline_d_lambda(preds, ms, norm_order)
d_s = _baseline_d_s(preds, ms, pan, pan_lr, norm_order, window_size)
d_lambda = _reference_d_lambda(preds, ms, norm_order)
d_s = _reference_d_s(preds, ms, pan, pan_lr, norm_order, window_size)
return (1 - d_lambda) ** alpha * (1 - d_s) ** beta


Expand Down

0 comments on commit 924132f

Please sign in to comment.