pyFDN.MatchSpectrogram#
- class pyFDN.MatchSpectrogram(target, *, nfft=(256, 512, 1024), device=None, **kwargs)[source]#
Multi-resolution STFT distance to a reference impulse response.
Wraps FLAMO’s
mss_loss.nfftis the tuple of STFT window sizes; the loss’s own frequency resolution therefore comes from these, independent of the model’snfft.- __init__(target, *, nfft=(256, 512, 1024), device=None, **kwargs)#
Methods
__init__(target, *[, nfft, device])check(model)Preflight against the model it will train, before the first step.
terms()Flatten into
(weight, loss)leaves.Attributes
nameShort label, used as the key in
pyFDN.TrainLog.loss_log.