schmiph2/pysepm

nan values for most metrics

jhkonan opened this issue · 1 comments

I am looking at the DNS-2020 test dataset:

https://github.com/microsoft/DNS-Challenge/tree/interspeech2020/master/datasets/test_set/synthetic/no_reverb

And I want to see the results of as many metrics as possible:

def get_evaluation(clean_speech, noisy_speech, sr = 16000):
    
    Y0 = pysepm.fwSNRseg(clean_speech, noisy_speech, sr)
    Y1 = pysepm.SNRseg(clean_speech, noisy_speech, sr)
    Y2 = pysepm.llr(clean_speech, noisy_speech, sr)
    Y3 = pysepm.wss(clean_speech, noisy_speech, sr)
    Y4 = pysepm.cepstrum_distance(clean_speech, noisy_speech, sr)
    Y5 = pysepm.stoi(clean_speech, noisy_speech, sr)
    Y6, Y7, Y8 = pysepm.csii(clean_speech, noisy_speech, sr)
    _, Y9 = pysepm.pesq(clean_speech, noisy_speech, sr)
    Y10, Y11, Y12 = pysepm.composite(clean_speech, noisy_speech, sr)
    Y13 = pysepm.ncm(clean_speech, noisy_speech, sr)
    
    return [Y0,  Y1,  Y2,  Y3,  Y4,
            Y5,  Y6,  Y7,  Y8,  Y9,
            Y10, Y11, Y12, Y13]

But my output looks like this:

[nan,
  8.621018369535282,
  0.1498153037618391,
  nan,
  1.9050031356095016,
  0.9807254867015377,
  nan,
  nan,
  nan,
  2.3495934009552,
  nan,
  nan,
  nan,
  nan]

What may be the issue?

Seems to be an environment problem. I just created a new env from scratch to resolve the issue.