From e3c360962e283ba231e0fbfcad2fb7b07987468a Mon Sep 17 00:00:00 2001 From: qw87rt <130150002+qw87rt@users.noreply.github.com> Date: Mon, 1 May 2023 21:40:16 +0800 Subject: [PATCH] Refactor: Remove unnecessary print statement in caption method. Removing this print statement can improve the performance of the method. --- audio_to_text/inference_waveform.py | 1 - 1 file changed, 1 deletion(-) diff --git a/audio_to_text/inference_waveform.py b/audio_to_text/inference_waveform.py index aba3961..05199cd 100644 --- a/audio_to_text/inference_waveform.py +++ b/audio_to_text/inference_waveform.py @@ -86,7 +86,6 @@ def caption(self,audio_list): "specaug": False, "sample_method": "beam", } - print(input_dict) out_dict = self.model(input_dict) caption_batch = [decode_caption(seq, self.vocabulary) for seq in \ out_dict["seq"].cpu().numpy()]