From 23a018d341592498f866fa8b195b69850fc5d2e2 Mon Sep 17 00:00:00 2001 From: Alex Young Date: Sun, 14 Apr 2024 19:33:54 +0100 Subject: [PATCH] Add some logging around warmup --- whisper_online_server.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/whisper_online_server.py b/whisper_online_server.py index 9ea8b74..247f68e 100644 --- a/whisper_online_server.py +++ b/whisper_online_server.py @@ -75,11 +75,13 @@ online = OnlineASRProcessor(asr,tokenizer,buffer_trimming=(args.buffer_trimming, demo_audio_path = "cs-maji-2.16k.wav" if os.path.exists(demo_audio_path): # load the audio into the LRU cache before we start the timer + logging.debug(f"Warming up on {demo_audio_path}") a = load_audio_chunk(demo_audio_path,0,1) # TODO: it should be tested whether it's meaningful # warm up the ASR, because the very first transcribe takes much more time than the other asr.transcribe(a) + logging.debug("Whisper is warmed up") else: logging.debug("Whisper is not warmed up")