ppg-vc icon indicating copy to clipboard operation
ppg-vc copied to clipboard

why std.sqrt() is performed twice in utterance_mvn?

Open lastsongforu opened this issue 3 years ago • 0 comments

I notice in utterance_mvn(), if norm_means is True, then std.sqrt() is performed twice? is there any explanation?

if norm_means:
        x -= mean

        if norm_vars:
            var = x.pow(2).sum(dim=1, keepdim=True) / ilens_
            std = torch.clamp(var.sqrt(), min=eps)
            x = x / std.sqrt()
        return x, ilens

lastsongforu avatar Jan 12 '22 09:01 lastsongforu