MCPcopy Create free account
hub / github.com/ICTMCG/FakeSV / _preprocess

Method _preprocess

code/utils/vggish_modified.py:187–194  ·  view source on GitHub ↗
(self, x, fs)

Source from the content-addressed store, hash-verified

185 return x
186
187 def _preprocess(self, x, fs):
188 if isinstance(x, np.ndarray):
189 x = vggish_input.waveform_to_examples(x, fs)
190 elif isinstance(x, str):
191 x = vggish_input.wavfile_to_examples(x)
192 else:
193 raise AttributeError
194 return x
195
196 def _postprocess(self, x):
197 return self.pproc(x)

Callers 1

forwardMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected