Alex Young 2024-04-15
Add some logging around warmup
@72cf84f306bf59cd0ac5658f6c1526fedb34cec9
whisper_online_server.py
--- whisper_online_server.py
+++ whisper_online_server.py
@@ -75,11 +75,13 @@
 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")
 
Add a comment
List