Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1546)

Unified Diff: webrtc/modules/audio_processing/test/py_quality_assessment/quality_assessment/evaluation.py

Issue 2714543005: Evaluation controller, evaluation score abstract class, and score data access. (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/modules/audio_processing/test/py_quality_assessment/quality_assessment/evaluation.py
diff --git a/webrtc/modules/audio_processing/test/py_quality_assessment/quality_assessment/evaluation.py b/webrtc/modules/audio_processing/test/py_quality_assessment/quality_assessment/evaluation.py
new file mode 100644
index 0000000000000000000000000000000000000000..78446a1e187bcd313de65e48c2a8ec4a18f3f38b
--- /dev/null
+++ b/webrtc/modules/audio_processing/test/py_quality_assessment/quality_assessment/evaluation.py
@@ -0,0 +1,32 @@
+# Copyright (c) 2017 The WebRTC project authors. All Rights Reserved.
+#
+# Use of this source code is governed by a BSD-style license
+# that can be found in the LICENSE file in the root of the source
+# tree. An additional intellectual property rights grant can be found
+# in the file PATENTS. All contributing project authors may
+# be found in the AUTHORS file in the root of the source tree.
+
+import logging
+
+class ApmModuleEvaluator(object):
+
+ def __init__(self):
+ pass
+
+ @classmethod
+ def run(cls, evaluation_score_workers, apm_output_filepath,
+ reference_input_filepath, output_path):
aleloi2 2017/03/02 17:42:23 Why is it called reference_input? Since it's compa
+ # Init.
+ scores = {}
+
+ for evaluation_score_worker in evaluation_score_workers:
+ logging.info(' computing <%s> score', evaluation_score_worker.NAME)
+ evaluation_score_worker.set_reference_signal_filepath(
+ reference_input_filepath)
+ evaluation_score_worker.set_tested_signal_filepath(
+ apm_output_filepath)
+
+ evaluation_score_worker.run(output_path)
+ scores[evaluation_score_worker.NAME] = evaluation_score_worker.score
+
+ return scores

Powered by Google App Engine
This is Rietveld 408576698