Spaces:
Running
Running
Update scores/sisdr.py
Browse files- scores/sisdr.py +1 -1
scores/sisdr.py
CHANGED
|
@@ -12,7 +12,7 @@ class SISDR(ScoreBasis):
|
|
| 12 |
# and one estimate.
|
| 13 |
# see original code here: https://github.com/sigsep/bsseval/issues/3#issuecomment-494995846
|
| 14 |
if len(audios) != 2:
|
| 15 |
-
|
| 16 |
eps = np.finfo(audios[0].dtype).eps
|
| 17 |
reference = audios[1].reshape(audios[1].size, 1)
|
| 18 |
estimate = audios[0].reshape(audios[0].size, 1)
|
|
|
|
| 12 |
# and one estimate.
|
| 13 |
# see original code here: https://github.com/sigsep/bsseval/issues/3#issuecomment-494995846
|
| 14 |
if len(audios) != 2:
|
| 15 |
+
return None
|
| 16 |
eps = np.finfo(audios[0].dtype).eps
|
| 17 |
reference = audios[1].reshape(audios[1].size, 1)
|
| 18 |
estimate = audios[0].reshape(audios[0].size, 1)
|