From b30359f4dace9907b7783997008538ed1cf554ec Mon Sep 17 00:00:00 2001 From: Jael Gu Date: Tue, 30 May 2023 17:30:15 +0800 Subject: [PATCH] Update Signed-off-by: Jael Gu --- clmr_magnatagatune.py | 6 ------ 1 file changed, 6 deletions(-) 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