diff --git a/clmr_magnatagatune.py b/clmr_magnatagatune.py index 428af7d..8a0c671 100644 --- a/clmr_magnatagatune.py +++ b/clmr_magnatagatune.py @@ -72,12 +72,6 @@ class ClmrMagnatagatune(NNOperator): self.model.to(self.device) def __call__(self, data: List[AudioFrame]) -> numpy.ndarray: - audio_tensors = self.preprocess(data).to(self.device) - features = self.model(audio_tensors) - outs = features.to("cpu") - return outs.detach().numpy() - - def preprocess(self, data: List[AudioFrame]) -> numpy.ndarray: _sr = 22050 audio_length = 59049