alibabasglab commited on
Commit
d67d869
1 Parent(s): 144c7ec

Update scores/bsseval.py

Browse files
Files changed (1) hide show
  1. scores/bsseval.py +1 -1
scores/bsseval.py CHANGED
@@ -12,7 +12,7 @@ class BSSEval(ScoreBasis):
12
  bss_hop = np.inf
13
  from museval.metrics import bss_eval
14
  if len(audios) != 2:
15
- raise ValueError('BSSEval needs a reference and a test signals.')
16
 
17
  result = bss_eval(reference_sources=audios[1][None,...], # shape: [nsrc, nsample, nchannels]
18
  estimated_sources=audios[0][None,...],
 
12
  bss_hop = np.inf
13
  from museval.metrics import bss_eval
14
  if len(audios) != 2:
15
+ return None
16
 
17
  result = bss_eval(reference_sources=audios[1][None,...], # shape: [nsrc, nsample, nchannels]
18
  estimated_sources=audios[0][None,...],