Open kyakuno opened 2 years ago
torchlibrosaモジュールのコードで、Log10を使わないように修正
class LogmelFilterBank(nn.Module):
...
def power_to_db(self, input):
...
log_spec = 10.0 * torch.log10(torch.clamp(input, min=self.amin, max=np.inf))
↓
class LogmelFilterBank(nn.Module):
...
def power_to_db(self, input):
...
x = torch.clamp(input, min=self.amin, max=np.inf)
log_spec = 10.0 * torch.log(x) / torch.log(torch.tensor(10))
https://github.com/bytedance/piano_transcription