MCPcopy
hub / github.com/Audio-AGI/AudioSep / spectrogram

Method spectrogram

models/base.py:79–81  ·  view source on GitHub ↗
(self, input, eps=0.)

Source from the content-addressed store, hash-verified

77 pass
78
79 def spectrogram(self, input, eps=0.):
80 (real, imag) = self.stft(input)
81 return torch.clamp(real ** 2 + imag ** 2, eps, np.inf) ** 0.5
82
83 def spectrogram_phase(self, input, eps=0.):
84 (real, imag) = self.stft(input)

Callers 1

wav_to_spectrogramMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected