Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.xiph.org/xiph/opus.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Buethe <jbuethe@amazon.de>2023-11-06 19:50:48 +0300
committerJan Buethe <jbuethe@amazon.de>2023-11-06 19:50:48 +0300
commit2386a60ec644fadc437155cd6e5f6d4c561940d4 (patch)
tree2266fb6c1908ac934974e2bf810f22e11294a3f1
parent544b3e576c8edd1785914c988882b62d60652f26 (diff)
updated moc to match results in ietf118 presentation
-rw-r--r--dnn/torch/osce/utils/moc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/dnn/torch/osce/utils/moc.py b/dnn/torch/osce/utils/moc.py
index a29f9338..3dffcfd0 100644
--- a/dnn/torch/osce/utils/moc.py
+++ b/dnn/torch/osce/utils/moc.py
@@ -114,7 +114,7 @@ def compare(x, y, apply_vad=False):
# distortion metric
re = masked_psd_y / masked_psd_x
- im = re - np.log(re) - 1
+ im = np.log(re) ** 2
Eb = ((im @ fb.T) / np.sum(fb, axis=1))
Ef = np.mean(Eb , axis=1)