alibabasglab commited on
Commit
10306e3
1 Parent(s): c07bd3d

Update scores/csig.py

Browse files
Files changed (1) hide show
  1. scores/csig.py +1 -1
scores/csig.py CHANGED
@@ -10,7 +10,7 @@ class CSIG(ScoreBasis):
10
 
11
  def windowed_scoring(self, audios, score_rate):
12
  if len(audios) != 2:
13
- raise ValueError('CSIG needs a reference and a test signals.')
14
  return cal_CSIG(audios[0], audios[1], score_rate)
15
 
16
  def cal_CSIG(target_wav, pred_wav, fs):
 
10
 
11
  def windowed_scoring(self, audios, score_rate):
12
  if len(audios) != 2:
13
+ return None
14
  return cal_CSIG(audios[0], audios[1], score_rate)
15
 
16
  def cal_CSIG(target_wav, pred_wav, fs):