espnet2.enh.loss.criterions.time_domain.CISDRLoss
espnet2.enh.loss.criterions.time_domain.CISDRLoss
class espnet2.enh.loss.criterions.time_domain.CISDRLoss(filter_length=512, name=None, only_for_test=False, is_noise_loss=False, is_dereverb_loss=False)
Bases: TimeDomainLoss
CI-SDR loss
Reference: : Convolutive Transfer Function Invariant SDR Training Criteria for Multi-Channel Reverberant Speech Separation; C. Boeddeker et al., 2021; https://arxiv.org/abs/2011.15003
- Parameters:
- ref – (Batch, samples)
- inf – (Batch, samples)
- filter_length (int) – a time-invariant filter that allows slight distortion via filtering
- Returns: (Batch,)
- Return type: loss
Initializes internal Module state, shared by both nn.Module and ScriptModule.
forward(ref: Tensor, inf: Tensor) → Tensor
Defines the computation performed at every call.
Should be overridden by all subclasses.
NOTE
Although the recipe for forward pass needs to be defined within this function, one should call the Module
instance afterwards instead of this since the former takes care of running the registered hooks while the latter silently ignores them.