Spaces:
Running
Running
alibabasglab
commited on
Commit
•
3082625
1
Parent(s):
7eb38fb
Update scores/dnsmos/dnsmos.py
Browse files- scores/dnsmos/dnsmos.py +1 -4
scores/dnsmos/dnsmos.py
CHANGED
@@ -22,10 +22,7 @@ class DNSMOS(ScoreBasis):
|
|
22 |
self.compute_score = ComputeScore(self.primary_model_path, self.p808_model_path)
|
23 |
|
24 |
def windowed_scoring(self, audios, rate):
|
25 |
-
|
26 |
-
return self.compute_score.cal_mos(audios[1], rate)
|
27 |
-
else:
|
28 |
-
return self.compute_score.cal_mos(audios[0], rate)
|
29 |
|
30 |
class ComputeScore:
|
31 |
def __init__(self, primary_model_path, p808_model_path) -> None:
|
|
|
22 |
self.compute_score = ComputeScore(self.primary_model_path, self.p808_model_path)
|
23 |
|
24 |
def windowed_scoring(self, audios, rate):
|
25 |
+
return self.compute_score.cal_mos(audios[0], rate)
|
|
|
|
|
|
|
26 |
|
27 |
class ComputeScore:
|
28 |
def __init__(self, primary_model_path, p808_model_path) -> None:
|