while other metrics accept (estimates, reference) in function call, SISDR takes (reference, estimates) in function call which makes confusing and easy-to-mistake. need change!
|
def forward(self, x: AudioSignal, y: AudioSignal): |
|
eps = 1e-8 |
|
# nb, nc, nt |
|
if isinstance(x, AudioSignal): |
|
references = x.audio_data |
|
estimates = y.audio_data |
|
else: |
|
references = x |
|
estimates = y |
while other metrics accept (estimates, reference) in function call, SISDR takes (reference, estimates) in function call which makes confusing and easy-to-mistake. need change!
audiotools/audiotools/metrics/distance.py
Lines 83 to 91 in 49b8b6b