dd7096573ce182331bddeef3e5168e886d8ffe68,pb_bss/evaluation/wrapper.py,InputMetrics,pesq,#InputMetrics#,89
Before Change
return np.nan
mode = {8000: "nb", 16000: "wb"}[self.sample_rate]
try:
scores = pb.evaluation.pesq(
reference=rearrange(
[self.speech_source] * self.channels,
"channels sources samples -> (sources channels) samples"
),
degraded=rearrange(
[self.observation] * self.K_source,
"sources channels samples -> (sources channels) samples"
),
rate=self.sample_rate,
mode=mode,
)
return np.reshape(scores, [self.K_source, self.channels])
except OSError:
return np.nan
@cached_property.cached_property
def invasive_sxr(self):
from pb_bss.evaluation.sxr_module import input_sxr
invasive_sxr = input_sxr(
After Change
)
mode = {8000: "nb", 16000: "wb"}[self.sample_rate]
return np.reshape([
pypesq.pypesq(ref=ref, deg=deg, fs=self.sample_rate, mode=mode)
for ref, deg in zip(
rearrange(
[self.speech_source] * self.channels,
"channels sources samples -> (sources channels) samples"
),
rearrange(
[self.observation] * self.K_source,
"sources channels samples -> (sources channels) samples"
)
)
], [self.K_source, self.channels])
@cached_property.cached_property
def invasive_sxr(self):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: fgnt/pb_bss
Commit Name: dd7096573ce182331bddeef3e5168e886d8ffe68
Time: 2019-12-03
Author: mail@lukas-drude.de
File Name: pb_bss/evaluation/wrapper.py
Class Name: InputMetrics
Method Name: pesq
Project Name: commonsense/conceptnet5
Commit Name: 952f26f1f16ac30315f799e163106a688fc05cb7
Time: 2018-05-14
Author: joanna.teresa.duda@gmail.com
File Name: conceptnet5/vectors/transforms.py
Class Name:
Method Name: choose_small_vocabulary
Project Name: fperazzi/proSR
Commit Name: 6b7b82ff60b8ca7a26b50e50210a06a46bdc848a
Time: 2018-07-09
Author: fperazzi@adobe.com
File Name: lib/prosr/models/generators.py
Class Name: ProSR
Method Name: forward